Exemple #1
0
        public GameFrame(Game pmGame)
        {
            game=	pmGame;
            frame=	new PCGameWindow();
            viewport=	new PCViewport();
            resizeComponents=	defaultResizeComponents;

            ((PCGameWindow)frame).setDoubleBuffered(true);
            viewport.clearColor=	new Color("#f0ffff");
            frame.title=	"Game";
            frame.size=	new Size2(800, 640);
            frame.onResize+=	frameResize;

            frame.addControl(viewport);
            resizeComponents();
        }