public override void Init() { Block.BLOCK_SIZE = 1280 / WorldRenderer.WIDTH; this.camera = new Camera2D(GetGraphics(), 1280, 720); this.world = new World(); this.renderer = new WorldRenderer(this); this.score = START_SCORE; this.lives = DEFAULT_LIFES; }
public WorldRenderer(GameScreen game) { this.world = game.GetWorld(); this.camera = game.GetCamera(); this.game = game; }