Changeset 2876 for 2012/23/HannesM/The Game of Rooms/The Game of Rooms/The Game of Rooms/The_Game_of_Rooms.cs
- Timestamp:
- 2012-06-08 12:48:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/23/HannesM/The Game of Rooms/The Game of Rooms/The Game of Rooms/The_Game_of_Rooms.cs
r2873 r2876 24 24 void luoKentta() 25 25 { 26 26 27 TileMap ruudut = TileMap.FromLevelAsset("The Game Of Rooms (map1)"); 27 28 … … 38 39 ruudut.SetTileMethod('S', luoseina2); 39 40 ruudut.SetTileMethod('R', luoseina3); 40 ruudut.SetTileMethod(' B', luoseina4);41 ruudut.SetTileMethod('Z', luoseina4); 41 42 ruudut.SetTileMethod('E', luoseina5); 42 43 ruudut.SetTileMethod('*', luoseina6); … … 57 58 Laskuri(); 58 59 60 Camera.Follow ( pelaaja ); 61 Camera.Zoom(1.5); 62 59 63 Level.BackgroundColor = Color.White; 60 64 … … 96 100 AddCollisionHandler(pelaaja, "Enu", Elamapakki); 97 101 AddCollisionHandler(pelaaja, "Ammuu", ammusPakki); 102 AddCollisionHandler(pelaaja, "END", Teksti); 98 103 99 104 Keyboard.Listen(Key.A, ButtonState.Down, … … 290 295 lopetus.Shape = Shape.Rectangle; 291 296 lopetus.IgnoresCollisionResponse = true; 297 lopetus.Tag = "END"; 292 298 Add(lopetus); 293 299 … … 467 473 void Laskuri() 468 474 { 469 AmmusLaskuri = new IntMeter( 6, 0, 20);475 AmmusLaskuri = new IntMeter(7, 0, 100); 470 476 471 477 Label ammusNaytto = new Label(); … … 479 485 } 480 486 487 void Teksti(PhysicsObject pelaaja, PhysicsObject END) 488 { 489 MessageDisplay.Add("Onneksi olkoon! Paina 'O' avataksesi kenttävalikon"); 490 } 491 481 492 } 482 493
Note: See TracChangeset
for help on using the changeset viewer.