Example #1
0
        /// <summary>
        /// Constructs a new Enemy.
        /// </summary>
        public Enemy(Level level, Vector2 position, string spriteSet)
        {
            Level = level;
            Position = position;

            LoadContent(spriteSet);
        }
Example #2
0
        /// <summary>
        /// Constructs a new gem.
        /// </summary>
        public Gem(Level level, Vector2 position)
        {
            Level = level;
            basePosition = position;

            LoadContent();
        }
Example #3
0
        /// <summary>
        /// Constructors a new player.
        /// </summary>
        public Player(Level level, Vector2 position)
        {
            Level = level;

            LoadContent();

            Reset(position);
        }