- Timestamp:
- 2010-06-10 11:42:17 (13 years ago)
- Location:
- 2010/23/eearleht/Siikapeli
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/23/eearleht/Siikapeli/Peli.cs
r613 r661 3 3 using Jypeli.ScreenObjects; 4 4 using Jypeli.Assets; 5 using System.Collections.Generic; 5 6 6 7 … … 9 10 class Tasohyppely : PhysicsGame 10 11 { 12 const int ruudunLeveys = 50; 13 const int ruudunKorkeus = 50; 11 14 const double nopeus = 200; 12 const double hyppyVoima = 5000;15 const double hyppyVoima = 10000; 13 16 14 17 IntMeter pisteLaskuri; … … 66 69 Level.CreateBorders(); 67 70 Level.Background.CreateGradient(Color.White, Color.White); 68 71 Level.Background.Image = LoadImage("Ice fishing"); 69 72 lisaaTaso(0, 0); 70 73 lisaaMaali(); 71 74 lisaaPelaajat(); 75 76 var merkit = new Dictionary<char, ObjectCreator>(); 77 merkit['x'] = LuoPalikka; 78 merkit['*'] = LuoTahti; 79 80 char[,] ruudut = Tiles.ReadFromFile("kentta1.txt"); 81 Tiles.Insert(this, ruudut, merkit, ruudunLeveys, ruudunKorkeus); 82 } 83 84 PhysicsObject LuoPalikka() 85 { 86 PhysicsObject palikka = PhysicsObject.CreateStaticObject(50.0, 50.0); 87 return palikka; 88 } 89 90 PhysicsObject LuoTahti() 91 { 92 PhysicsObject tahti = PhysicsObject.CreateStaticObject(25.0, 25.0); 93 return tahti; 94 72 95 } 73 96 … … 144 167 seuraavaKentta(); 145 168 MessageDisplay.Add("Pääsit läpi kentän " + kenttaNro + ". Pisteitä: " + edellisenKentanPisteet); 146 169 170 171 172 147 173 } 148 } 174 } 149 175 } 150 176 } -
2010/23/eearleht/Siikapeli/Siikapeli.csproj
r555 r661 89 89 <Content Include="Game.ico" /> 90 90 <Content Include="GameThumbnail.png" /> 91 <Content Include="kentta1.txt"> 92 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 93 </Content> 91 94 </ItemGroup> 92 95 <ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.