public FreezeBullet(MainNode mainNode, Vector2F position, Vector2F moveVelocity) : base(mainNode, position) { _moveVelocity = moveVelocity; Texture = Texture2D.LoadStrict("Resources/FreezeBullet.png"); collider.Size = Texture.Size; }
public NomalEnemy(MainNode mainNode, Vector2F potision, Vector2F moveVelociy, Player playerInfo) : base(mainNode, potision, moveVelociy, playerInfo) { _bulletFireTimeSpan = 90; _count = 0; Score = 100; }
public Enemy(MainNode mainNode, Vector2F position, Vector2F moveVelocity, Player playerInfo) : base(mainNode, position) { _moveVelocity = moveVelocity; _playerInfo = playerInfo; Texture = Texture2D.LoadStrict("Resources/Enemy.png"); doSurvey = true; collider.Size = Texture.Size; }
public EnemyBullet(MainNode mainNode, Vector2F position, Vector2F moveVelocity) : base(mainNode, position) { Texture = Texture2D.LoadStrict("Resources/EnemyBullet.png"); //Position = position; _moveVelocity = moveVelocity; collider.Size = Texture.Size; }
public PlayerBullet(MainNode mainNode, Vector2F position, Vector2F moveVelocity, Player player, float chargeTime = 1.0f) : base(mainNode, position) { Texture = Texture2D.LoadStrict("Resources/EnemyBullet.png"); //Position = position; _moveVelocity = moveVelocity; collider.Size = Texture.Size; _playerInfo = player; }
public EnemySpawner(MainNode mainNode, int numberOfEnemy, int intervalCount, StageData stageData, string EnemyClassName, Player player) { isInterval = false; _mainNode = mainNode; _numberOfEnemy = numberOfEnemy; _intervalCount = intervalCount; _stageDatas = stageData; _count = 0; _player = player; _enemyName = EnemyClassName; }
public Player(MainNode mainNode, Vector2F position) : base(mainNode, position) { Texture = Texture2D.LoadStrict("Resources/player.png"); doSurvey = true; //Position = position; _moveDistanceX = new Vector2F(4.0f, 0.0f); _moveDistanceY = new Vector2F(0.0f, 4.0f); chargeTime = 0.0f; collider.Size = Texture.Size; _maxBulletCountInWindow = 3; _hp = 10; _checkDefrostCount = 0; _maxFrozenCount = 120; _playersHealth = PlayersHealth.Nomal; }
static void Main(string[] args) { Engine.Initialize("SpaceBox", 960, 720); //Player player = new Player(new Vector2F(100,100)); //Engine.AddNode(player); //NomalEnemy nomalEnemy = new NomalEnemy(new Vector2F(200, 100), new Vector2F(0.0f, 0.0f), player); //Engine.AddNode(nomalEnemy); MainNode mainNode = new MainNode(); Engine.AddNode(mainNode); // 音ファイルを読み込みます。 // 効果音の場合は第2引数を true に設定して事前にファイルを解凍することが推奨されている。 while (Engine.DoEvents()) { Engine.Update(); if (Engine.Keyboard.GetKeyState(Key.Escape) == ButtonState.Push) { break; } } Engine.Terminate(); }
public WeavingEnemy(MainNode mainNode, Vector2F position, Vector2F moveVelocity, Player player) : base(mainNode, position, moveVelocity, player) { }
public CollidableObject(MainNode mainNode, Vector2F position) { _mainNode = mainNode; Position = position; collider.Position = position; }
public FreezeBulletEnemy(MainNode mainNode, Vector2F position, Vector2F moveVelocity, Player player) : base(mainNode, position, moveVelocity, player) { _bulletFireTimeSpan = 90; Score = 100; }