예제 #1
0
 /// <summary>
 /// Loads every animation for the player
 /// </summary>
 /// <param name="Content"></param>
 public void LoadContent(ContentManager Content)
 {
     SpriteHandler.AddSprite("Player_Idle", new Sprite(Content.Load <Texture2D>("idle"), 4, 64, 128));
     SpriteHandler.SetInfo("Player_Idle", 0.1f, 1);
     SpriteHandler.AddSprite("Player_Jump", new Sprite(Content.Load <Texture2D>("jump"), 15, 64, 128));
     SpriteHandler.SetInfo("Player_Jump", 0.1f, 1);
     SpriteHandler.AddSprite("Player_JumpCharge", new Sprite(Content.Load <Texture2D>("jumpCharge"), 10, 64, 128));
     SpriteHandler.SetInfo("Player_JumpCharge", 0.1f, 1);
     SpriteHandler.AddSprite("Player_Accelerate", new Sprite(Content.Load <Texture2D>("accelerate"), 15, 64, 128));
     SpriteHandler.SetInfo("Player_Accelerate", 0.1f, 1);
 }
예제 #2
0
 /// <summary>
 /// Loads all the decks and tapes, etc
 /// </summary>
 /// <param name="Content"></param>
 public void LoadContent(ContentManager Content)
 {
     SpriteHandler.AddSprite("Tape_Default", new Sprite(Content.Load <Texture2D>("Tape_Default")));
     SpriteHandler.AddSprite("Deck_Default", new Sprite(Content.Load <Texture2D>("Deck_Default")));
     SpriteHandler.AddSprite("SimpleBoard", new Sprite(Content.Load <Texture2D>("board")));
 }