Esempio n. 1
0
 public UiObject(GameScene owner, Color defaultColor, Vector2 position, string drawKeyword)
 {
     this.owner = owner;
     this.textureList = new Dictionary<string,Texture2D>();
     this.color = defaultColor;
     this.position = position;
     this.drawKeyword = drawKeyword;
 }
Esempio n. 2
0
 public StageManager(Game game, GraphicsDeviceManager graphics, GameScene owner)
 {
     this.game = game;
     this.graphics = graphics;
     this.owner = owner;
     this.clearScore = 0;
     gameStageList = new Dictionary<string, GameStage>();
     this.checkKey = "test";
 }
Esempio n. 3
0
 public GameStage(Game game, GraphicsDeviceManager graphics, GameScene owner)
 {
     this.game = game;
     this.graphics = graphics;
     this.content = game.Content;
     this.owner = owner;
     this.nowGameMainState = GameMainState.TargetRock;
     this.prevGameMainState = this.nowGameMainState;
     this.stagePlayer = new PlayerObject(owner, Color.White, new Rectangle(680, 430, 96, 150), "lwbg_player_normal");
     this.randomObject = new System.Random();
     this.stageUiList = new Dictionary<string, GameObject>();
 }
Esempio n. 4
0
 public EnemyBase(GameScene owner, Color defaultColor, Rectangle rectData, string drawKeyword, int enemyLife, Vector2 targetPosition)
 {
     this.owner = owner;
     this.textureList = new Dictionary<string, Texture2D>();
     this.color = defaultColor;
     this.rectData = rectData;
     this.drawKeyword = drawKeyword;
     this.enemyLife = enemyLife;
     this.enemyInitLife = this.enemyLife;
     this.animCount = 0;
     this.animFlg = false;
     double rotation = Math.Atan2(targetPosition.Y - this.rectData.Center.Y, targetPosition.X - this.rectData.Center.X);
     this.moveSpeed = new Vector2(float.Parse((5 * Math.Cos(rotation)).ToString()), float.Parse((5*Math.Sin(rotation)).ToString()));
 }
Esempio n. 5
0
 public PlayerObject(GameScene owner, Color defaultColor, Rectangle rectData, string drawKeyword)
 {
     this.owner = owner;
     this.textureList = new Dictionary<string, Texture2D>();
     this.color = defaultColor;
     this.rectData = rectData;
     this.drawKeyword = drawKeyword;
     this.playerLife = 3;
     this.strikeCount = 0;
     this.stageSelectUfoKey = 0;
     this.nowBateerState = PlayerActionState.Stand;
     this.battingHitTime = 0;
     this.stageUfoCount = 100;
     this.nowBattingResult = BattingResult.NoSwing;
     this.targetPos = new Vector2(10, 560);
 }
Esempio n. 6
0
 public void AddScene(GameScene addScene, String sceneName)
 {
     scenes.Add(sceneName, addScene);
 }
Esempio n. 7
0
 // 連携テスト
 public NormalEnemy(GameScene owner, Color defaultColor, Rectangle rectData, string drawKeyword, int enemyLife, Vector2 targetPosition)
     : base(owner, defaultColor, rectData, drawKeyword, enemyLife, targetPosition)
 {
     this.enemyTypeCode = EnemyManager.NORMAL_UFOTYPE_STR;
 }