Beispiel #1
0
        /// <summary>
        /// Constructs a new gem.
        /// </summary>
        public PowerUp(Level level, Vector2 position, string type)
        {
            this.level = level;
            this.basePosition = position;
            this.type = type;

            LoadContent();
        }
Beispiel #2
0
        /// <summary>
        /// Constructors a new player.
        /// </summary>
        public Bobo(GameScreen screen, Level level, Vector2 position)
        {
            this.level = level;

            LoadContent(screen);

            Reset(position);
        }
Beispiel #3
0
 public Fireball(GameScreen screen ,Level level, string fireballname)
 {
     this.level = level;
     LoadContent(screen, fireballname);
 }
Beispiel #4
0
 //    : base(g)
 public Enemy(Level level, Vector2 position, string enemy)
 {
     this.level = level;
     this.enemy = enemy;
     if (enemy == "enemy")
         Health = 0;
     else
         Health = 1;
     LoadContent();
     Reset(position);
 }