- Timestamp:
- 2012-06-08 12:48:35 (11 years ago)
- Location:
- 2012/23/HannesM/The Game of Rooms/The Game of Rooms
- Files:
-
- 2 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 -
2012/23/HannesM/The Game of Rooms/The Game of Rooms/The Game of RoomsContent/The Game Of Rooms (map1).txt
r2857 r2876 1 ?============== B=================================<1 ?==============Z=================================< 2 2 R O R 3 3 R D LL R 4 4 R V D V V V V LL R 5 *==StttE==== B====================================Y5 *==StttE====Z====================================Y 6 6 R ttt O R 7 7 R ttt D R 8 8 R ttt V D V V V R 9 RtttE======== B===================B===========StttR9 RtttE========Z===================Z===========StttR 10 10 Rttt R R tttR 11 11 Rttt R R tttR
Note: See TracChangeset
for help on using the changeset viewer.