- Timestamp:
- 2013-07-04 11:06:02 (10 years ago)
- Location:
- 2013/27/TeemuM/Game
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/27/TeemuM/Game
- Property svn:ignore
-
old new 1 1 Game.suo 2 Game.suo
-
- Property svn:ignore
-
2013/27/TeemuM/Game/Game/Game/Game.cs
r4424 r4425 159 159 private void SpawnZombie() 160 160 { 161 Zombie zombie = new Zombie(50, 50, RandomGen.NextDouble(Level.Left, Level.Right), RandomGen.NextDouble(Level.Bottom, Level.Top), 100); 161 double i = 100; 162 Double x = 0; 163 Double y = 0; 164 165 if (RandomGen.NextBool()) 166 { 167 x = RandomGen.SelectOne(Screen.Left-i, Screen.Right+i); 168 y = RandomGen.NextDouble(Screen.Bottom-i, Screen.Top+i); 169 } 170 else 171 { 172 x = RandomGen.NextDouble(Screen.Left-i, Screen.Right+i); 173 y = RandomGen.SelectOne(Screen.Bottom-i, Screen.Top+i); 174 } 175 Zombie zombie = new Zombie(50, 50, x+player.X, y+player.Y, 100); 162 176 enemies.Add(zombie); 163 177 Add(zombie);
Note: See TracChangeset
for help on using the changeset viewer.