Beispiel #1
0
 private GameEngine(Hero heroClass, int currentLevel)
 {
     this.Hero = heroClass;
     this.CurrentLevel = currentLevel;
     this.Loot = Loot.Create(this.CurrentLevel);
     this.LoadDefaultInfo();
     this.Enemies = new List<Npc>();
     this.LoadBosses();
     this.GenerateTreasureChests();
 }
Beispiel #2
0
 public PlayerSprite(Texture2D sprite, Dictionary<AnimationKey, Animation> animation, Hero hero)
     : base(sprite, animation)
 {
     this.mSpriteTexture = sprite;
     this.Hero = hero;
     //initialize variables
     mDirection = Vector2.Zero;
     mSpeed = Vector2.Zero;
     currentLookingPosition = LookingPosition.LookDown;
     this.Position = new Vector2((float)hero.Location.X, (float)hero.Location.Y);
 }
Beispiel #3
0
 public InventoryScreen(MainGame mGame)
     : base(mGame)
 {
     this.hero = this.MGame.Engine.Hero;
 }
Beispiel #4
0
 public static GameEngine Start(Hero hero, int level)
 {
     return new GameEngine(hero, level);
 }