Changeset 3496
- Timestamp:
- 2012-07-03 15:05:43 (9 years ago)
- Location:
- 2012/27/HenriM/kaljaadventures/kaljaadventures
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/27/HenriM/kaljaadventures/kaljaadventures/kaljaadventures/kaljaadventures.cs
r3474 r3496 17 17 Image pelaajanKuva = LoadImage("kalja"); 18 18 Image mursuKuva = LoadImage("mursunrasva"); 19 Image soppaKuva = LoadImage("soppa"); 19 20 20 21 SoundEffect maaliAani = LoadSoundEffect("maali"); … … 22 23 public override void Begin() 23 24 { 25 AloitaPeli(); 26 } 27 28 void AloitaPeli() 29 { 30 ClearAll(); 24 31 Gravity = new Vector(0, -1000); 25 32 … … 31 38 Camera.StayInLevel = true; 32 39 } 33 34 40 void LuoKentta() 35 41 { … … 38 44 kentta.SetTileMethod('*', LisaaRasva); 39 45 kentta.SetTileMethod('N', LisaaPelaaja); 46 kentta.SetTileMethod('S', LisaaSoppa); 40 47 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 41 48 Level.CreateBorders(); … … 59 66 mursunrasva.Tag = "mursunrasva"; 60 67 Add(mursunrasva); 68 } 69 70 void LisaaSoppa(Vector paikka, double leveys, double korkeus) 71 { 72 PhysicsObject soppa = PhysicsObject.CreateStaticObject(leveys, korkeus); 73 soppa.IgnoresCollisionResponse = true; 74 soppa.Position = paikka; 75 soppa.Image = soppaKuva; 76 soppa.Tag = "soppa"; 77 Add(soppa); 61 78 } 62 79 -
2012/27/HenriM/kaljaadventures/kaljaadventures/kaljaadventuresContent/kaljaadventuresContent.contentproj
r3474 r3496 80 80 </Compile> 81 81 </ItemGroup> 82 <ItemGroup> 83 <Compile Include="soppa.png"> 84 <Name>soppa</Name> 85 <Importer>TextureImporter</Importer> 86 <Processor>TextureProcessor</Processor> 87 </Compile> 88 </ItemGroup> 82 89 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 83 90 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2012/27/HenriM/kaljaadventures/kaljaadventures/kaljaadventuresContent/kentta1.txt
r3460 r3496 8 8 ## ## ## 9 9 10 * * **10 * S* *S S* 11 11 ## ## ## ## 12 12 13 * * 13 * * S * * 14 14 ## ## ## ## ## 15 15
Note: See TracChangeset
for help on using the changeset viewer.