Changeset 8971 for 2017/27/KasmirK
- Timestamp:
- 2017-07-06 14:58:34 (6 years ago)
- Location:
- 2017/27/KasmirK
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2.cs
r8930 r8971 9 9 public class Tasohyppelypeli2 : PhysicsGame 10 10 { 11 12 11 12 Image taustakuva = LoadImage(""); 13 13 const double nopeus = 300; 14 14 const double hyppyNopeus = 50; … … 34 34 Camera.StayInLevel = true; 35 35 } 36 37 36 void LuoKentta() 38 37 { 39 //ColorTileMap ruudut = ColorTileMap.FromLevelAsset("levelmap");40 //ruudut.Execute(20, 20);38 ColorTileMap ruudut = ColorTileMap.FromLevelAsset("levelmap"); 39 ruudut.Execute(20, 20); 41 40 GameObject tausta = new GameObject(Level.Width, Level.Height); 42 41 … … 44 43 Level.Background.CreateGradient(Color.DarkBrown, Color.Black); 45 44 Level.AmbientLight = 0.1; 46 valo = new Light();47 valo.Intensity = 1.4;48 valo.Distance = 18;49 valo.Position = pelaaja1.Position;50 Add(valo);45 //valo = new Light(); 46 //valo.Intensity = 1.4; 47 //valo.Distance = 18; 48 //valo.Position = pelaaja1.Position; 49 //Add(valo); 51 50 } 52 51 53 52 protected override void Paint(Canvas canvas) 54 53 { 55 valo.Position = pelaaja1.Position;54 //valo.Position = pelaaja1.Position; 56 55 base.Paint(canvas); 57 56 } … … 121 120 { 122 121 maaliAani.Play(); 123 MessageDisplay.Add(" N-Nani??~");122 MessageDisplay.Add(""); 124 123 tahti.Destroy(); 125 124 }
Note: See TracChangeset
for help on using the changeset viewer.