Changeset 8880
- Timestamp:
- 2017-07-04 14:09:08 (6 years ago)
- Location:
- 2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/Tasohyppelypeli/ninjakissanhikileikit.cs
r8874 r8880 8 8 9 9 public class Tasohyppelypeli1 : PhysicsGame 10 { 10 { } 11 11 double nopeus = 650; 12 12 double hyppyNopeus = 500; … … 21 21 Vector alkupaikka; 22 22 Image doggokuva = LoadImage("doggo"); 23 Image hela = LoadImage("heali"); 23 24 public override void Begin() 24 25 { … … 33 34 Camera.ZoomFactor = 1.2; 34 35 Camera.StayInLevel = true; 36 35 37 36 38 … … 46 48 kentta.SetTileMethod('W', Lisaamaali); 47 49 kentta.SetTileMethod('V', lisaavihollinen); 50 kentta.SetTileMethod('H', ineedheals); 48 51 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 49 52 Level.CreateBorders(); … … 185 188 nopeus = 3500; 186 189 } 190 if (vastaus[0]== "mercy plz") 191 { 192 193 } 187 194 if (vastaus[0] == "win") 188 195 { … … 332 339 Begin(); 333 340 } 341 void ineedheals(Vector paikka, double korkeus, double leveys) 342 { 343 PhysicsObject heals = new PhysicsObject(leveys, korkeus); 344 Add(heals); 345 346 } 334 347 } -
2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/TasohyppelypeliContent/TasohyppelypeliContent.contentproj
r8871 r8880 123 123 </Compile> 124 124 </ItemGroup> 125 <ItemGroup> 126 <Compile Include="heali.png"> 127 <Name>heali</Name> 128 <Importer>TextureImporter</Importer> 129 <Processor>TextureProcessor</Processor> 130 </Compile> 131 </ItemGroup> 125 132 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 126 133 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2016/koodauskerho/VilleH/Tasohyppelypeli/Tasohyppelypeli/TasohyppelypeliContent/kentta1.txt
r8871 r8880 9 9 10 10 11 N11 H N 12 12 ###################...........................# 13 13 ..................#...........................#
Note: See TracChangeset
for help on using the changeset viewer.