Exemple #1
0
 public Weapon(Game game, Point location)
     : base(game, location)
 {
     this.game = game;
     this.location = location;
     pickedUp = false;
 }
 public Mangual(Game game, Point location)
     : base(game, location)
 {
 }
Exemple #3
0
 public Bat(Game game, Point location, Size spriteSize)
     : base(game, location, 6, spriteSize)
 {
 }
Exemple #4
0
 public Ghost(Game game, Point location, Size spriteSize)
     : base(game, location, 8, spriteSize)
 {
 }
Exemple #5
0
 public Player(Game game, Point location, Size spriteSize)
     : base(game, location)
 {
     hitPoints = 10;
     SpriteSize = spriteSize;
 }
        private void Form1_Load(object sender, EventArgs e)
        {
            // Set offset of top-left corner of icon to center
            iconOffset.X = player.Width / 2;
            iconOffset.Y = player.Height / 2;

            // Initialize game object
            game = new Game(new Rectangle(78 + iconOffset.X, 57 + iconOffset.Y, 423, 161));
            game.NewLevel(random);

            // Set characters in the game
            UpdateCharacters();

            // Initialize controls
            RemoveAllInventorySelections();
            SetMoveDirections();
            SetAttackDirections();
            SetLevelLabel();
            grpbBoxPlayStyle.Visible = false;
            actionTimer.Interval = gameSpeed;
        }
Exemple #7
0
 public Sword(Game game, Point location)
 : base(game, location) { }
 public RedPotion(Game game, Point location)
     : base(game, location)
 {
 }
 public BluePotion(Game game, Point location)
     : base(game, location)
 {
 }
Exemple #10
0
 public Ghoul(Game game, Point location, Size spriteSize)
     : base(game, location, 10, spriteSize)
 {
 }
 public Morte(Game game, Point location)
     : base(game, location, 10)
 {
 }
 public Wizard(Game game, Point location)
     : base(game, location, hitPoints)
 {
 }
 public Fantasma(Game game, Point location)
     : base(game, location, 8)
 {
 }
Exemple #14
0
 public Ghoul(Game game, Point location)
     : base(game, location, hitPoints)
 {
 }
 public Arco(Game game, Point location)
     : base(game, location)
 {
 }
 private void frmTheQuest_Load(object sender, EventArgs e)
 {
     game = new Game(new Rectangle(78, 57, 420, 155));
     game.NewLevel(random);
     UpdateCharacters();
 }
Exemple #17
0
 public Mace(Game game, Point location)
     : base(game, location)
 {
 }
 public BattleAxe(Game game, Point location)
     : base(game, location)
 {
 }
Exemple #19
0
 public Ghost(Game game, Point location)
     : base(game, location, 8)
 { }
Exemple #20
0
 public Player(Game game, Point location)
     : base(game, location)
 {
     hitPoints = 10;
 }
 public Shield(Game game, Point location)
     : base(game, location)
 {
 }
Exemple #22
0
 public BluePotion(Game game, Point location)
     : base(game, location)
 {
     Used = false;
 }
Exemple #23
0
 public Bat(Game game, Point location)
     : base(game, location, 6)
 { }
Exemple #24
0
 public Bat(Game game, Point location)
     : base(game, location, hitPoints)
 {
 }
Exemple #25
0
 public Enemy(Game game, Point location, int hitPoints, Size spriteSize)
     : base(game, location)
 {
     this.hitPoints = hitPoints;
     SpriteSize = spriteSize;
 }
 public Quiver(Game game, Point location)
     : base(game, location)
 {
 }
 public Weapon(Game game, Point location)
     : base(game, location)
 {
     PickedUp = false;
 }
 public Espada(Game game, Point location)
     : base(game, location)
 {
 }
Exemple #29
0
 public Enemy(Game game, Point location, int hitPoints)
     : base(game, location)
 {
     HitPoints = hitPoints;
 }
Exemple #30
0
 public Mover(Game game, Point location)
 {
     this.game = game;
     this.location = location;
 }