コード例 #1
0
ファイル: Level.cs プロジェクト: icefoxen/games-lost3
        // Yay, since C# has poor introspection and no macros, what we get
        // instead is a FUCKTON OF COPY PASTE CODE.
        // There MIGHT be a way around this, sort of.
        public IGameObj MakeTurret(Vector2d loc, double facing)
        {
            AIController c = new TurretController();
            Turret       t = new Turret(loc, facing, c);

            t.Vel = Misc.PointBetween(1, 10);
            return(t);
        }
コード例 #2
0
ファイル: Level.cs プロジェクト: icefoxen/games-lost3
        public IGameObj MakeDeathTurret(Vector2d loc, double facing)
        {
            IController c = new TurretController();
            DeathTurret t = new DeathTurret(loc, facing, c);

            t.Vel    = Misc.PointBetween(1, 10);
            t.Facing = Misc.Rand.NextDouble() * Misc.TWOPI;
            return(t);
        }