public ShootingGame(Key key, string scriptPath) { OwnChar = new OwnCharacter(this, new Position(320.0, 400.0)); OwnBullets = new List<Bullet>(); Enemies = new List<Enemy>(); EnemyBullets = new List<Bullet>(); this.key = key; // スクリプト読み込み this.ScriptPath = scriptPath; var loader = new ScriptLoader(this); var script = loader.Load(this.ScriptPath); runner = new ScriptRunner(this, script); }
public ShootingGame(Key key, string scriptPath) { OwnChar = new OwnCharacter(this, new Position(320.0, 400.0)); OwnBullets = new List <Bullet>(); Enemies = new List <Enemy>(); EnemyBullets = new List <Bullet>(); this.key = key; // スクリプト読み込み this.ScriptPath = scriptPath; var loader = new ScriptLoader(this); var script = loader.Load(this.ScriptPath); runner = new ScriptRunner(this, script); }