Changeset 4425


Ignore:
Timestamp:
2013-07-04 11:06:02 (6 years ago)
Author:
teematma
Message:
 
Location:
2013/27/TeemuM/Game
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2013/27/TeemuM/Game

    • Property svn:ignore
      •  

        old new  
        11Game.suo 
         2Game.suo 
  • 2013/27/TeemuM/Game/Game/Game/Game.cs

    r4424 r4425  
    159159    private void SpawnZombie() 
    160160    { 
    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); 
    162176        enemies.Add(zombie); 
    163177        Add(zombie); 
Note: See TracChangeset for help on using the changeset viewer.