Changeset 5293
- Timestamp:
- 2014-07-02 14:56:49 (9 years ago)
- Location:
- 2014/27/NikiV/untitled
- Files:
-
- 9 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/NikiV/untitled/untitled/untitled/obj/x86/Debug/ContentPipeline-{55E0D8F8-FAC8-4519-84A8-18979ABAD7C1}.xml
r5275 r5293 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2014-07-02T 09:37:34.2470468+03:00</Time>38 <Time>2014-07-02T12:27:52.170346+03:00</Time> 39 39 </Item> 40 40 <Item> … … 73 73 <Output>C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\exp_gem.xnb</Output> 74 74 <Time>2014-07-01T13:19:42.5608366+03:00</Time> 75 </Item> 76 <Item> 77 <Source>hahmo2.png</Source> 78 <Name>hahmo2</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\hahmo2.xnb</Output> 83 <Time>2014-07-02T13:02:00.1371222+03:00</Time> 84 </Item> 85 <Item> 86 <Source>hahmo3.png</Source> 87 <Name>hahmo3</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\hahmo3.xnb</Output> 92 <Time>2014-07-02T13:17:40.0000991+03:00</Time> 93 </Item> 94 <Item> 95 <Source>crystal.png</Source> 96 <Name>crystal</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\crystal.xnb</Output> 101 <Time>2014-07-01T13:46:32.1315931+03:00</Time> 102 </Item> 103 <Item> 104 <Source>ruby.png</Source> 105 <Name>ruby</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\ruby.xnb</Output> 110 <Time>2014-07-01T13:55:07.382113+03:00</Time> 75 111 </Item> 76 112 <BuildSuccessful>true</BuildSuccessful> -
2014/27/NikiV/untitled/untitled/untitled/obj/x86/Debug/cachefile-{55E0D8F8-FAC8-4519-84A8-18979ABAD7C1}-targetpath.txt
r5244 r5293 7 7 Content\bowser.xnb 8 8 Content\exp_gem.xnb 9 Content\hahmo2.xnb 10 Content\hahmo3.xnb 11 Content\crystal.xnb 12 Content\ruby.xnb -
2014/27/NikiV/untitled/untitled/untitled/obj/x86/Debug/untitled.csproj.FileListAbsolute.txt
r5244 r5293 15 15 C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\lieska.xnb 16 16 C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\exp_gem.xnb 17 C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\hahmo2.xnb 18 C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\hahmo3.xnb 19 C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\crystal.xnb 20 C:\MyTemp\NikiV\untitled\untitled\untitled\bin\x86\Debug\Content\ruby.xnb -
2014/27/NikiV/untitled/untitled/untitled/untitled.cs
r5244 r5293 9 9 public class untitled : PhysicsGame 10 10 { 11 11 12 DoubleMeter elamaLaskuri; 12 const double nopeus = 200;13 const double nopeus = 300; 13 14 const double hyppyNopeus = 750; 14 15 const int RUUDUN_KOKO = 40; … … 23 24 Image lieska = LoadImage("lieska"); 24 25 Image geminkuva = LoadImage("exp_gem"); 26 Image paikallaanAnimaatio = LoadImage("hahmo2"); 25 27 26 28 SoundEffect maaliAani = LoadSoundEffect("maali"); 27 29 Weapon vihunase; 30 private Image[] ukkelinKavely = LoadImages("hahmo", "hahmo2", "hahmo3"); 31 28 32 public override void Begin() 29 33 { 34 SmoothTextures = false; 30 35 Gravity = new Vector(0, -1000); 31 36 32 37 LuoKentta(); 33 38 LisaaNappaimet(); 39 LuoElamaLaskuri(); 34 40 35 41 Camera.Follow(pelaaja1); … … 89 95 pelaaja1 = new PlatformCharacter(leveys, korkeus); 90 96 pelaaja1.Position = paikka; 91 pelaaja1.Mass = 4.0;97 pelaaja1.Mass = 3.5; 92 98 pelaaja1.Image = pelaajanKuva; 99 pelaaja1.AnimWalk = new Animation(ukkelinKavely); 100 pelaaja1.AnimWalk.FPS = 20; 101 pelaaja1.AnimIdle = new Animation(paikallaanAnimaatio); 93 102 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 94 103 AddCollisionHandler(pelaaja1, "gem", tormaagemiin); 104 //AddCollisionHandler(pelaaja1, "vihu", Tormaavihuun); 95 105 Add(pelaaja1); 106 96 107 pelaajan1Ase = new AssaultRifle(30, 10); 97 108 … … 112 123 vihu.Image = vihunkuva; 113 124 vihu.CanRotate = false; 125 vihu.Tag = "vihu"; 114 126 vihunase = new AssaultRifle(50, 60); 115 127 vihunase.Color = Color.Transparent; … … 118 130 Timer ajastin = new Timer(); 119 131 ajastin.Interval = 1.5; 120 ajastin.Timeout += vihunase.Shoot;132 121 133 ajastin.Start(); 122 134 Add(vihu); … … 182 194 //ammus.Size *= 3; 183 195 ammus.CanRotate = false; 196 AddCollisionHandler(ammus, "vihu", osuma); 184 197 //ammus.Image = ... 185 198 ammus.MaximumLifetime = TimeSpan.FromSeconds(1.0); … … 189 202 void AmmusOsuu(PhysicsObject ammus, PlatformCharacter vihu) 190 203 { 191 AddCollisionHandler(ammus, vihu, osuma);204 192 205 193 206 } … … 208 221 { 209 222 MessageDisplay.Add("Game over!"); 223 pelaaja1.Destroy(); 210 224 } 211 225 212 226 213 void osuma(PhysicsObject ammus, P latformCharactervihu)227 void osuma(PhysicsObject ammus, PhysicsObject vihu) 214 228 { 215 229 ammus.Destroy(); 216 MessageDisplay.Add(" osuma");230 MessageDisplay.Add("HIT!"); 217 231 } 218 232 … … 227 241 //ammus.MaximumLifetime = TimeSpan.FromSeconds(2.0); 228 242 } 243 244 } 245 void Tormaavihuun(PlatformCharacter pelaaja1, PhysicsObject vihu) 246 { 247 229 248 } 230 249 -
2014/27/NikiV/untitled/untitled/untitled/untitled.csproj.Debug.cachefile
r5244 r5293 7 7 Content\bowser.xnb 8 8 Content\exp_gem.xnb 9 Content\hahmo2.xnb 10 Content\hahmo3.xnb 11 Content\crystal.xnb 12 Content\ruby.xnb -
2014/27/NikiV/untitled/untitled/untitledContent/kentta1.txt
r5275 r5293 9 9 10 10 * * * * 11 ## ## ## ## b 11 ## ## ## ## b b b b b 12 12 13 13 * * * * -
2014/27/NikiV/untitled/untitled/untitledContent/untitledContent.contentproj
r5244 r5293 95 95 </Compile> 96 96 </ItemGroup> 97 <ItemGroup> 98 <Compile Include="hahmo2.png"> 99 <Name>hahmo2</Name> 100 <Importer>TextureImporter</Importer> 101 <Processor>TextureProcessor</Processor> 102 </Compile> 103 </ItemGroup> 104 <ItemGroup> 105 <Compile Include="hahmo3.png"> 106 <Name>hahmo3</Name> 107 <Importer>TextureImporter</Importer> 108 <Processor>TextureProcessor</Processor> 109 </Compile> 110 </ItemGroup> 111 <ItemGroup> 112 <Compile Include="crystal.png"> 113 <Name>crystal</Name> 114 <Importer>TextureImporter</Importer> 115 <Processor>TextureProcessor</Processor> 116 </Compile> 117 </ItemGroup> 118 <ItemGroup> 119 <Compile Include="ruby.png"> 120 <Name>ruby</Name> 121 <Importer>TextureImporter</Importer> 122 <Processor>TextureProcessor</Processor> 123 </Compile> 124 </ItemGroup> 97 125 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 98 126 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.