示例#1
0
        public Shiitake(PlayScene playScene, Vector2 pos) : base(playScene)
        {
            this.pos.X = pos.X;
            this.pos.Y = pos.Y;

            imageWidth         = 32;
            imageHeight        = 32;
            hitboxOffsetLeft   = 0;
            hitboxOffsetRight  = 0;
            hitboxOffsetTop    = 0;
            hitboxOffsetBottom = 0;
        }
示例#2
0
        public UpStairs(PlayScene playScene, Vector2 pos) : base(playScene)
        {
            this.pos.X = pos.X;
            this.pos.Y = pos.Y;

            imageWidth         = 100;
            imageHeight        = 36;
            hitboxOffsetLeft   = 0;
            hitboxOffsetRight  = 0;
            hitboxOffsetTop    = 0;
            hitboxOffsetBottom = 0;
        }
示例#3
0
        public Player(PlayScene playScene, Vector2 pos) : base(playScene)
        {
            this.pos.X = pos.X;
            this.pos.Y = pos.Y;

            imageWidth         = 60;
            imageHeight        = 140;
            hitboxOffsetLeft   = 17;
            hitboxOffsetRight  = 17;
            hitboxOffsetTop    = 9;
            hitboxOffsetBottom = 10;

            viewTop    = -50;
            viewBottom = 22;
            viewLeft   = 197;
            viewRight  = 17;

            curMoney = 0;

            hp           = initialHp;
            surinukeLock = initSurinukeLock;
        }
示例#4
0
        Direction MoveDirection; // 移動方向

        public People(PlayScene playScene, Vector2 pos) : base(playScene)
        {
            this.pos.X = pos.X;
            this.pos.Y = pos.Y;

            imageWidth  = 60;
            imageHeight = 140;

            hitboxOffsetLeft   = 17;
            hitboxOffsetRight  = 17;
            hitboxOffsetTop    = 9;
            hitboxOffsetBottom = 3;

            viewTop    = -50;
            viewBottom = 3;
            viewLeft   = 130;
            viewRight  = 17;

            hp            = initialHp;
            Amount        = initialAmount;
            dontMoveFream = 0;
            turnFream     = 0;
        }
示例#5
0
        Direction MoveDirection; // 移動方向

        public Guardman(PlayScene playScene, Vector2 pos) : base(playScene)
        {
            this.pos.X = pos.X;
            this.pos.Y = pos.Y;

            imageWidth  = 60;
            imageHeight = 140;

            hitboxOffsetLeft   = 17;
            hitboxOffsetRight  = 17;
            hitboxOffsetTop    = 9;
            hitboxOffsetBottom = 9;

            viewTop    = -50;
            viewBottom = 22;
            viewLeft   = 130;
            viewRight  = 17;

            hp            = initialHp;
            Amount        = initialAmount;
            dontMoveFream = 0;
            findPlayer    = false;
        }
示例#6
0
        int[,] terrain;                 // 地形データ

        // コンストラクタ
        public Map(PlayScene playScene, string stageName)
        {
            this.playScene = playScene;
            LoadTerrain("res/Map/" + stageName + "_terrain.csv");
            LoadObjects("res/Map/" + stageName + "_object.csv");
        }
示例#7
0
        protected int viewRight  = 0;         // 視野の右端

        // コンストラクタ
        public GameObject(PlayScene playScene)
        {
            this.playScene = playScene;
        }