예제 #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)
 {
 }
예제 #3
0
 public Bat(Game game, Point location, Size spriteSize)
     : base(game, location, 6, spriteSize)
 {
 }
예제 #4
0
 public Ghost(Game game, Point location, Size spriteSize)
     : base(game, location, 8, spriteSize)
 {
 }
예제 #5
0
 public Player(Game game, Point location, Size spriteSize)
     : base(game, location)
 {
     hitPoints = 10;
     SpriteSize = spriteSize;
 }
예제 #6
0
        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;
        }
예제 #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)
 {
 }
예제 #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)
 {
 }
예제 #12
0
 public Wizard(Game game, Point location)
     : base(game, location, hitPoints)
 {
 }
 public Fantasma(Game game, Point location)
     : base(game, location, 8)
 {
 }
예제 #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();
 }
예제 #17
0
 public Mace(Game game, Point location)
     : base(game, location)
 {
 }
예제 #18
0
 public BattleAxe(Game game, Point location)
     : base(game, location)
 {
 }
예제 #19
0
 public Ghost(Game game, Point location)
     : base(game, location, 8)
 { }
예제 #20
0
 public Player(Game game, Point location)
     : base(game, location)
 {
     hitPoints = 10;
 }
예제 #21
0
 public Shield(Game game, Point location)
     : base(game, location)
 {
 }
예제 #22
0
 public BluePotion(Game game, Point location)
     : base(game, location)
 {
     Used = false;
 }
예제 #23
0
파일: Bat.cs 프로젝트: DutchSoldier/FHSICT
 public Bat(Game game, Point location)
     : base(game, location, 6)
 { }
예제 #24
0
 public Bat(Game game, Point location)
     : base(game, location, hitPoints)
 {
 }
예제 #25
0
 public Enemy(Game game, Point location, int hitPoints, Size spriteSize)
     : base(game, location)
 {
     this.hitPoints = hitPoints;
     SpriteSize = spriteSize;
 }
예제 #26
0
 public Quiver(Game game, Point location)
     : base(game, location)
 {
 }
예제 #27
0
 public Weapon(Game game, Point location)
     : base(game, location)
 {
     PickedUp = false;
 }
 public Espada(Game game, Point location)
     : base(game, location)
 {
 }
예제 #29
0
 public Enemy(Game game, Point location, int hitPoints)
     : base(game, location)
 {
     HitPoints = hitPoints;
 }
예제 #30
0
 public Mover(Game game, Point location)
 {
     this.game = game;
     this.location = location;
 }