public LeaderBoardState(GraphicsDevice graphicsDevice, NameObject player, GraphicsDeviceManager gman, AudioManager audio)
     : base(graphicsDevice)
 {
     name         = player;
     gManager     = gman;
     audioManager = audio;
 }
 public NameEnterCommand(GraphicsDevice graphics, NameObject playerName, GraphicsDeviceManager gManager, AudioManager audio)
 {
     graph  = graphics;
     name   = playerName;
     gman   = gManager;
     _audio = audio;
 }
 public PlayerNameState(GraphicsDevice graphicsDevice, NameObject player, AudioManager audio, GraphicsDeviceManager gManager, int score)
     : base(graphicsDevice)
 {
     playerName       = player;
     playerName.score = score;
     gman             = gManager;
     _audio           = audio;
 }
 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)
         },
     };
 }
 public NameRightCommand(NameObject player)
 {
     recv = player;
 }
示例#6
0
 public NameLeftCommand(NameObject player)
 {
     recv = player;
 }
示例#7
0
 public NameUpCommand(NameObject player)
 {
     recv = player;
 }
示例#8
0
 public NameDownCommand(NameObject player)
 {
     recv = player;
 }