Changeset 1909 for 2011/23/jopontin/skate peli.cs
- Timestamp:
- 2011-06-10 12:39:56 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/23/jopontin/skate peli.cs
r1876 r1909 7 7 using Jypeli.Widgets; 8 8 9 public class Peli : PhysicsGame 9 public class Peli : PhysicsGame //joonas Pöntinen 10 10 { 11 11 const int ruudunLeveys = 20; … … 83 83 ukko.Mass = 1; 84 84 ukko.CanRotate = false; 85 ukko.X = - 5800;86 ukko.Y = - 150;85 ukko.X = -6100; 86 ukko.Y = -350; 87 87 88 88 Add(ukko); … … 151 151 pisteLaskuri2.Value -= 1; 152 152 153 if (pisteLaskuri2.Value == 0) { ukko.Destroy();} 153 if (pisteLaskuri2.Value == 0) { ukko.Destroy(); 154 155 Label teksti = new Label("Game Over"); 156 teksti.X = Screen.Right - 800; 157 teksti.Y = Screen.Top - 400; 158 teksti.TextColor = Color.Black; 159 160 Add(teksti); 161 162 } 154 163 } 155 164 … … 203 212 } 204 213 205 void loppu() 206 { 207 Label gameover = new Label(); 208 gameover.X = Screen.Center; 209 gameover.Y = Screen.Center; 210 gameover.Title = 'Game Over'; 211 Add (gameover); 212 } 214 213 215 214 216
Note: See TracChangeset
for help on using the changeset viewer.