示例#1
0
 // --- Constructors ---
 public BattleMap(ref GameExt pmGame, GSGameplay pmGState, int pmWidth, int pmHeight)
 {
     game=	pmGame;
     gstate=	pmGState;
     tiles=	new Grid<Tile>(pmWidth, pmHeight);
     teams=	new List<Team>();
     currTeamID=	-1;
     currUnitID=	0;
     bGameOver=	false;
     psystem=	new ParticleSystem();
     allowPlayerInput=	true;
 }
示例#2
0
        // --- Constructors ---
        public LevelUpPS(ref ParticleSystem ps, ref GameExt game, int[] mapPos)
        {
            parent=	ps;
            minSpeed=	0.1f;
            maxSpeed=	0.2f;
            minFade=	1f;
            maxFade=	1f;
            minDuration=	1000f;
            maxDuration=	2048f;
            minScale=	0.2f;
            maxScale=	0.4f;
            maxParticles=	25;
            duration=	3200f;
            startRegion.Center=	new Vector3(-mapPos[0]*Tile.size+Tile.size/2f, 0f, mapPos[1]*Tile.size-Tile.size/2f);
            endRegion.Radius=	4f*Tile.size;

            init(game, Start.rng);
        }