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; }
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; }
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; }
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; }
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; }
int[,] terrain; // 地形データ // コンストラクタ public Map(PlayScene playScene, string stageName) { this.playScene = playScene; LoadTerrain("res/Map/" + stageName + "_terrain.csv"); LoadObjects("res/Map/" + stageName + "_object.csv"); }
protected int viewRight = 0; // 視野の右端 // コンストラクタ public GameObject(PlayScene playScene) { this.playScene = playScene; }