Beispiel #1
0
 public void init()
 {
     canvas   = new Bitmap(GAME_WIDTH, GAME_HEIGHT, PixelFormat.Format24bppRgb);
     graphics = new GameGraphics(canvas);
     renderer = new GameRenderer(this, scaleX = 0.0f, scaleY = 0.0f);
     inputs   = new GameInputs(this);
     loadScreen(new testScreen(this));
 }
Beispiel #2
0
 public GameScreen(AbstractGame abstractGame)
 {
     this.game = abstractGame;
     g         = game.graphics;
 }