예제 #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();
 }
예제 #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);
 }
예제 #3
0
 public InventoryScreen(MainGame mGame)
     : base(mGame)
 {
     this.hero = this.MGame.Engine.Hero;
 }
예제 #4
0
 public static GameEngine Start(Hero hero, int level)
 {
     return new GameEngine(hero, level);
 }