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)); }
public GameScreen(AbstractGame abstractGame) { this.game = abstractGame; g = game.graphics; }