Ejemplo n.º 1
0
 public LeaderBoardState(GraphicsDevice graphicsDevice, NameObject player, GraphicsDeviceManager gman, AudioManager audio)
     : base(graphicsDevice)
 {
     name         = player;
     gManager     = gman;
     audioManager = audio;
 }
Ejemplo n.º 2
0
 public NameEnterCommand(GraphicsDevice graphics, NameObject playerName, GraphicsDeviceManager gManager, AudioManager audio)
 {
     graph  = graphics;
     name   = playerName;
     gman   = gManager;
     _audio = audio;
 }
Ejemplo n.º 3
0
 public PlayerNameState(GraphicsDevice graphicsDevice, NameObject player, AudioManager audio, GraphicsDeviceManager gManager, int score)
     : base(graphicsDevice)
 {
     playerName       = player;
     playerName.score = score;
     gman             = gManager;
     _audio           = audio;
 }
Ejemplo n.º 4
0
 public override void Initialize()
 {
     controllers         = new List <IController>();
     collision           = new Collision(windowWidth, windowHeight, (windowWidth / 10), (windowHeight / 10));
     name                = new NameObject(graphics);
     gameObjectsToAdd    = new List <AbsObject>();
     gameObjectsToRemove = new List <AbsObject>();
     camera              = new Camera(graphics.Viewport)
     {
         Limits = new Rectangle(0, 0, windowWidth, 3548)
     };
     layers = new List <Layer>
     {
         //background = 0 foreground = 1 platforms in 2 for now
         new Layer(camera)
         {
             Parallax = new Vector2(0.5f, 1.0f)
         },
         new Layer(camera)
         {
             Parallax = new Vector2(1.0f, 1.0f)
         },
     };
 }
Ejemplo n.º 5
0
 public NameRightCommand(NameObject player)
 {
     recv = player;
 }
Ejemplo n.º 6
0
 public NameLeftCommand(NameObject player)
 {
     recv = player;
 }
Ejemplo n.º 7
0
 public NameUpCommand(NameObject player)
 {
     recv = player;
 }
Ejemplo n.º 8
0
 public NameDownCommand(NameObject player)
 {
     recv = player;
 }