コード例 #1
0
ファイル: Enemy.cs プロジェクト: vdikun/GGJ2013
        /// <summary>
        /// Constructs a new Enemy.
        /// </summary>
        public Enemy(Level level, Vector2 position, string spriteSet)
        {
            this.level = level;
            this.position = position;

            LoadContent(spriteSet);
        }
コード例 #2
0
ファイル: Gem.cs プロジェクト: vdikun/GGJ2013
        /// <summary>
        /// Constructs a new gem.
        /// </summary>
        public Gem(Level level, Vector2 position)
        {
            this.level = level;
            this.basePosition = position;

            LoadContent();
        }
コード例 #3
0
ファイル: Player.cs プロジェクト: vdikun/GGJ2013
        /// <summary>
        /// Constructors a new player.
        /// </summary>
        public Player(Level level, Vector2 position)
        {
            this.level = level;

            LoadContent();

            Reset(position);
        }