Changeset 658 for 2010/23/rikaroih/Autopeli1/Peli.cs
- Timestamp:
- 2010-06-10 11:41:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/23/rikaroih/Autopeli1/Peli.cs
r635 r658 8 8 public class Peli : TopDownPhysicsGame 9 9 { 10 SoundEffect taustamusiikki; 11 10 12 Automobile auto; 11 13 Automobile auto2; … … 36 38 Level.BackgroundColor = Color.Black; 37 39 Level.Background.Image = LoadImage("avaruus"); 40 taustamusiikki = LoadSoundEffect("taustamusiikki"); 41 taustamusiikki.Play(); 42 38 43 } 39 44 … … 161 166 if ( target.Equals(pallo) || target.Equals(pallo2) || target.Equals(pallo3) || target.Equals(pallo4)) 162 167 { 168 Explosion rajahdys = new Explosion(200); 169 rajahdys.Position = auto.Position; 170 rajahdys.Force = 100; 171 Add(rajahdys); 172 163 173 auto.Destroy(); 164 174 }
Note: See TracChangeset
for help on using the changeset viewer.