Changeset 5247
- Timestamp:
- 2014-07-01 14:57:07 (9 years ago)
- Location:
- 2014/27/NoelV/turhakepeli
- Files:
-
- 2 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/ContentPipeline-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}.xml
r5228 r5247 28 28 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\valikko.xnb</Output> 29 29 <Time>2014-07-01T11:01:20.4060218+03:00</Time> 30 </Item> 31 <Item> 32 <Source>hyokkaus.png</Source> 33 <Name>hyokkaus</Name> 34 <Importer>TextureImporter</Importer> 35 <Processor>TextureProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hyokkaus.xnb</Output> 38 <Time>2014-07-01T14:53:10.4065277+03:00</Time> 30 39 </Item> 31 40 <BuildSuccessful>true</BuildSuccessful> -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/cachefile-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}-targetpath.txt
r5210 r5247 2 2 Content\kentta.xnb 3 3 Content\valikko.xnb 4 Content\hyokkaus.xnb -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/turhakepeli.csproj.FileListAbsolute.txt
r5210 r5247 10 10 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\kentta.xnb 11 11 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\valikko.xnb 12 C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hyokkaus.xnb -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.cs
r5228 r5247 12 12 Image hahmo = LoadImage("pelaaja"); 13 13 Image valikonKuva = LoadImage("valikko"); 14 Image hyokkauksenKuva = LoadImage("hyokkaus"); 14 15 15 16 public override void Begin() … … 19 20 20 21 LuoKentta(); 22 21 23 LisaaOhjaimet(); 24 25 22 26 23 27 … … 47 51 Keyboard.Listen(Key.A, ButtonState.Down, Liiku, null, new Vector(-1000, 0)); 48 52 Keyboard.Listen(Key.A, ButtonState.Released, Liiku, null, Vector.Zero); 53 Keyboard.Listen(Key.Space, ButtonState.Pressed, Hyokkaa, null); 54 49 55 Keyboard.Listen(Key.Escape, ButtonState.Pressed, KysyPoistumista, "Lopeta peli"); 50 56 } … … 102 108 103 109 Timer vihunLuontiAjastin = new Timer(); 104 vihunLuontiAjastin.Interval = 2.0;110 vihunLuontiAjastin.Interval = 10.0; 105 111 vihunLuontiAjastin.Timeout += delegate { LuoVihollinen(new Vector(RandomGen.NextDouble(Level.Left, Level.Right), Level.Top)); }; 106 112 vihunLuontiAjastin.Start(); … … 163 169 164 170 } 171 void Hyokkaa() 172 { 173 PhysicsObject hyokkaus = new PhysicsObject(30, 30); 174 hyokkaus.Position = pelaaja.Position; 175 hyokkaus.Image = hyokkauksenKuva; 176 Add(hyokkaus); 177 178 Timer.SingleShot(0.5, delegate { hyokkaus.Destroy(); }); 179 //AddCollisionHandler(hyokkaus, "vihu", ); 180 181 } 182 183 void HyokkausOsuu() 184 { 185 186 } 187 165 188 166 189 } -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.csproj.Debug.cachefile
r5210 r5247 2 2 Content\kentta.xnb 3 3 Content\valikko.xnb 4 Content\hyokkaus.xnb -
2014/27/NoelV/turhakepeli/turhakepeli/turhakepeliContent/turhakepeliContent.contentproj
r5210 r5247 66 66 </Compile> 67 67 </ItemGroup> 68 <ItemGroup> 69 <Compile Include="hyokkaus.png"> 70 <Name>hyokkaus</Name> 71 <Importer>TextureImporter</Importer> 72 <Processor>TextureProcessor</Processor> 73 </Compile> 74 </ItemGroup> 68 75 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 69 76 <!-- 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.