- Timestamp:
- 2010-06-09 15:00:52 (13 years ago)
- Location:
- 2010/23/almiilhi
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/23/almiilhi/Tasohyppely2/Content/Content.contentproj
r604 r638 75 75 </Compile> 76 76 </ItemGroup> 77 <ItemGroup> 78 <Compile Include="N-16.png"> 79 <Name>N-16</Name> 80 <Importer>TextureImporter</Importer> 81 <Processor>TextureProcessor</Processor> 82 </Compile> 83 </ItemGroup> 77 84 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 78 85 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2010/23/almiilhi/Tasohyppely2/Peli.cs
r604 r638 4 4 using Jypeli.Assets; 5 5 using System.Collections.Generic; 6 6 7 7 8 … … 12 13 const double nopeus = 200; 13 14 const double hyppyVoima = 6000; 15 AssaultRifle pyssy; 14 16 15 17 IntMeter pisteLaskuri; … … 25 27 protected override void Begin() 26 28 { 29 27 30 kenttaNro = 0; 28 31 Level.Width = 50000; … … 173 176 palikka.Color = Color.Gray; 174 177 return palikka; 178 175 179 } 180 181 182 void lisaaPyssy() 183 { 184 pyssy = new AssaultRifle(20, 5); 185 pelaaja1.Weapon = new AssaultRifle( 20, 5 ); 176 186 187 pyssy.Ammo.Value = 500; 188 189 Keyboard.Listen(Key.Space, ButtonState.Down, pelaaja1.Weapon.Use, "Ammu"); 190 191 192 193 } 177 194 178 195 }
Note: See TracChangeset
for help on using the changeset viewer.