コード例 #1
0
 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;
 }
コード例 #2
0
 public WorldRenderer(GameScreen game)
 {
     this.world = game.GetWorld();
     this.camera = game.GetCamera();
     this.game = game;
 }