Ejemplo n.º 1
0
        public PlayerController(PlayerModel player, InputType type, PlayerIndex playerIndex)
        {
            this.player = player;
              inputManager = new InputManager(type, playerIndex);
              keyMap = new Dictionary<PlayerAction, Inputs>();

              // Map actions to keys
              keyMap.Add(PlayerAction.MoveDown, Inputs.Down);
              keyMap.Add(PlayerAction.MoveLeft, Inputs.Left);
              keyMap.Add(PlayerAction.MoveRight, Inputs.Right);
              keyMap.Add(PlayerAction.ActionA, Inputs.A);
              keyMap.Add(PlayerAction.Jump, Inputs.B);
        }
Ejemplo n.º 2
0
 public PlayerDebugView(PlayerModel player)
 {
     this.player = player;
 }
Ejemplo n.º 3
0
        public World()
        {
            // Object Instantiation
              player1 = new PlayerModel(this, new Vector2(100, 100), 64, 96);
              cameraModel = new CameraModel(this);

              // LoadLevelFromFile("Level.bin");
              LoadLevel("Level.bin");
        }