コード例 #1
0
 public InputManager(Game1 game, Player player, Level level, Target target, PlayerManager playerManager, Screen[] screens, MindRead mindRead)
 {
     this.game = game;
     this.player = player;
     this.level = level;
     this.target = target;
     this.playerManager = playerManager;
     this.mindRead = mindRead;
     this.collisionManager = new CollisionManager(player, level);
     this.velocity = player.getVelocity();
     this.width = game.getWidth();
     this.height = game.getHeight() - 40;
     this.font = game.getDropFont();
     this.gameState = GameState.Normal;
     this.prevLevel = level;
 }
コード例 #2
0
ファイル: Level.cs プロジェクト: jdoiron94/Outside-The-Box
 /// <summary>
 /// Sets the game screens
 /// </summary>
 /// <param name="screens">The screens to set</param>
 public void setScreens(Screen[] screens)
 {
     this.screens = screens;
 }