- Timestamp:
- 2014-07-25 11:18:16 (9 years ago)
- Location:
- 2014/30/LauriR
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/obj/x86/Debug/ContentPipeline-{D6EAC6A9-8675-4ACB-8A67-C6CE954765FB}.xml
r5642 r5673 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2014-07-2 4T14:53:43.0376121+03:00</Time>38 <Time>2014-07-25T11:16:08.7243146+03:00</Time> 39 39 </Item> 40 40 <Item> -
2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus.cs
r5642 r5673 9 9 public class tesohyppelytestaus : PhysicsGame 10 10 { 11 11 12 12 13 const double nopeus = 200; … … 144 145 MessageDisplay.Add("Keräsit kranaatin :/"); 145 146 tahti.Destroy(); 147 148 pisteLaskuri.Value += 2; 146 149 } 147 150 … … 161 164 MessageDisplay.Add("Keräsit kultaisensienen JEE :D"); 162 165 sieni.Destroy(); 166 167 pisteLaskuri.Value += 5; 163 168 } 164 169 … … 177 182 { 178 183 maaliAani.Play(); 179 MessageDisplay.Add("oisuit kissaan hävisit pelin");184 MessageDisplay.Add("oisuit kissaan auts"); 180 185 //hahmo.Destroy(); 181 186 hahmo.Position = viimeisinCheckpoint; 187 188 pisteLaskuri.Value -= 2; 182 189 } 183 190 … … 200 207 //hahmo.Destroy(); 201 208 hahmo.Position = viimeisinCheckpoint; 209 210 pisteLaskuri.Value -= 2; 202 211 } 203 212 … … 214 223 { 215 224 maaliAani.Play(); 216 MessageDisplay.Add("voitto"); 225 MessageDisplay.Add("voitit pelin!"); 226 pisteLaskuri.Value += 50; //49 217 227 } 218 228 … … 247 257 pisteNaytto.BindTo(pisteLaskuri); 248 258 Add(pisteNaytto); 249 } 250 251 259 260 IntMeter keratytEsineet = new IntMeter(0); 261 pisteLaskuri.MaxValue = 99; 262 pisteLaskuri.UpperLimit += KaikkiKeratty; 263 264 IntMeter pelaajanElamat = new IntMeter(3); 265 pisteLaskuri.MinValue = -50; 266 pisteLaskuri.LowerLimit += PelaajaHaviaa; 267 } 268 269 void KaikkiKeratty() 270 { 271 MessageDisplay.Add("Pelaaja 1 voitti pelin."); 272 } 273 274 void PelaajaHaviaa() 275 { 276 MessageDisplay.Add("Pelaaja 1 hävisi pelin."); 277 } 252 278 253 279 -
2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestausContent/kentta1.txt
r5642 r5673 4 4 S 5 5 # 6 ## * * * K * 6 ## * * * K * 7 7 ## ## ## ## ## ## ## 8 8 9 K S K * K * 9 K S K * K *M 10 10 ## ## ## ## ## ## ## ## 11 11 M 12 P *#PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 12 P *#PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP * 13 13 # ########################################## 14 14 # # … … 23 23 # M # 24 24 P # P# #PP##PPP##PP##PP##PP#### 25 # ## #SSSSSSSSSSSSSSSSSSSSSS# 25 # ## #SSSSSSSSSSSSSSSSSSSSSS# 26 26 #* *# #SSSSSSSSSSSSSSSSSSSSSS# 27 ### ### #SSSSSSSSSSSSSSSSSSSSSS# 28 #* #SSSSSSSSSSSSSSSSSSSSSS# 29 # M *#SSSSSSSSSSSSSSSSSSSSSS# 30 #####################################PPPPPPPPPPPPPPPPPPPPPPP PPPPPPPPPPPP 31 # # 32 # E # 33 # # 34 ###### 27 ### ### #SSSSSSSSSSSSSSSSSSSSSS# # # 28 #* #SSSSSSSSSSSSSSSSSSSSSS# # 29 # M *#SSSSSSSSSSSSSSSSSSSSSS#S # 30 #######################################PPPPPPPPPPPPPPPPPPPPP PPPPPPPPPPPP 31 ########################################################### # 32 # ############## 33 # # 34 # E # 35 # # 36 ######PPP########## 35 37 36 38
Note: See TracChangeset
for help on using the changeset viewer.