- Timestamp:
- 2013-06-28 10:51:55 (8 years ago)
- Location:
- 2013/26/RoopeR/The Random game/The Random game
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/26/RoopeR/The Random game/The Random game/The Random game/The_Random_game.cs
r4276 r4294 78 78 //else if (kenttaNro > 17) Exit(); 79 79 80 Gravity = new Vector(0, - 3000);80 Gravity = new Vector(0, -4000); 81 81 82 82 LisaaNappaimet(); … … 157 157 pelaaja1.Position = paikka; 158 158 pelaaja1.Mass = 5.0; 159 pelaaja1.Restitution = 1.0;159 pelaaja1.Restitution = 0.0; 160 160 pelaaja1.Image = pelaajakuva; 161 161 AddCollisionHandler(pelaaja1, "random", TormaaTahteen); 162 162 AddCollisionHandler(pelaaja1, "maali", TormaaMaaliin); 163 163 Add(pelaaja1); 164 pelaaja1.LifetimeLeft = TimeSpan.FromSeconds( 60);164 pelaaja1.LifetimeLeft = TimeSpan.FromSeconds(120); 165 165 pelaaja1.Push(new Vector(1, 0)); 166 166 } … … 189 189 Hyppaa, null, pelaaja1, 1000.0); 190 190 ControllerOne.Listen(Button.A, ButtonState.Pressed, Hyppaa, "Hyppää", pelaaja1, 1000.0); 191 ControllerOne.Listen(Button.B, ButtonState.Pressed, SeuraavaKentta, "Aloittaa kentaän uudestaan"); 192 ControllerOne.Listen(Button.X, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 193 ControllerOne.Listen(Button.Y, ButtonState.Pressed, Pause, "Pysäyttää pelin"); 194 // ControllerOne.Vibrate(100.0, 100.0, 100.0, 100.0, 100.1); 191 195 192 196 } … … 208 212 void Hyppaa(PlatformCharacter hahmo, double nopeus) 209 213 { 210 hahmo.Jump(nopeus * 2);214 hahmo.Jump(nopeus *5); 211 215 } 212 216 213 217 void TormaaTahteen(PhysicsObject hahmo, PhysicsObject tahti) 214 218 { 215 //maaliAani.Play();219 maaliAani.Play(); 216 220 MessageDisplay.Add("Onnea keräsit merkin!!! :)"); 217 221 tahti.Destroy(); … … 240 244 Timer aikaLaskuri = new Timer(); 241 245 //aikaLaskuri.Interval = 30.0; 242 aikaLaskuri.GetType().GetField("trigInterval", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.GetField | System.Reflection.BindingFlags.Instance).SetValue(aikaLaskuri, TimeSpan.FromSeconds( 300));246 aikaLaskuri.GetType().GetField("trigInterval", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.GetField | System.Reflection.BindingFlags.Instance).SetValue(aikaLaskuri, TimeSpan.FromSeconds(125)); 243 247 aikaLaskuri.Timeout += AikaLoppui; 244 248 aikaLaskuri.Start(1); -
2013/26/RoopeR/The Random game/The Random game/The Random gameContent/kentta1.txt
r4276 r4294 3 3 4 4 * * 5 ## ## M5 ## ## 6 6 7 7 * * * … … 10 10 * * * * 11 11 ############### 12 12 13 13 * * * * * 14 14 ## ## ## ## ## 15 15 16 N 16 N M 17 17 ###################### -
2013/26/RoopeR/The Random game/The Random game/The Random gameContent/kentta17.txt
r4276 r4294 14 14 15 15 N 16 # 16 #M 17 17 18 18 -
2013/26/RoopeR/The Random game/The Random game/The Random gameContent/kentta2.txt
r4276 r4294 5 5 ######### ########## 6 6 7 8 7 # # # # # # # 9 8 -
2013/26/RoopeR/The Random game/The Random game/The Random gameContent/kentta3.txt
r4276 r4294 6 6 ********* ********* 7 7 ########## ########### 8 9 8 N 10 9 ######################## -
2013/26/RoopeR/The Random game/The Random game/The Random gameContent/kentta4.txt
r4276 r4294 4 4 ********** ************************* 5 5 ######################## ################### ################ ########### # 6 7 8 6 N**********************************************************************************************M 9 7 ################################################################################################# -
2013/26/RoopeR/The Random game/The Random game/The Random gameContent/kentta5.txt
r4276 r4294 1 1 2 ************************************************************************ 3 ************************************************************************ 4 ************************************************************************ 5 ************************************************************************ 6 ************************************************************************ 7 ************************************************************************ 8 ************************************************************************ 2 3 4 5 6 7 8 9 9 ************************************************************************ 10 10 *N********************************************************************** -
2013/26/RoopeR/The Random game/The Random game/The Random gameContent/kentta7.txt
r4276 r4294 4 4 ***** *********** 5 5 ##### ############ 6 7 6 ! N ! 8 7 #########################
Note: See TracChangeset
for help on using the changeset viewer.