示例#1
0
        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);
        }
示例#2
0
        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);
        }