Ignore:
Timestamp:
2016-07-27 09:21:10 (3 years ago)
Author:
jotapoti
Message:

1 satunnainen pallo luotu.

Location:
2016/30/luennot/Pallopeli/Pallopeli/Pallopeli
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 2016/30/luennot/Pallopeli/Pallopeli/Pallopeli/Pallopeli.cs

    r8128 r8129  
    2222        LuoVihollinen(); 
    2323 
    24         // TODO tee pallo sattumanvaraiseen paikkaan 
     24        double satunnainenX = RandomGen.NextDouble(Level.Left + 50.0, Level.Right - 50.0); 
     25        double satunnainenY = RandomGen.NextDouble(Level.Bottom + 50.0, Level.Top - 50.0); 
     26        LuoPallo(satunnainenX, satunnainenY, Color.Brown); 
     27         
    2528        LuoPallo(-100.0, -20.5, Color.HotPink); 
    2629        LuoPallo(200.0, 0.0, Color.MidnightBlue); 
Note: See TracChangeset for help on using the changeset viewer.