- Timestamp:
- 2014-07-23 14:11:58 (9 years ago)
- Location:
- 2014/30/AarniAR
- Files:
-
- 9 added
- 1 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid.cs
r5575 r5584 9 9 public class AdventureOfStarKid : PhysicsGame 10 10 { 11 private Image[] running = LoadImages("running1", "running2"); 12 private Image[] standinganimation = LoadImages("standinganimation"); 13 private Image[] shootinganimation = LoadImages("shootinganimation"); 11 14 const double nopeus = 200; 12 15 const double hyppyNopeus = 750; 13 16 const int RUUDUN_KOKO = 40; 17 PlasmaCannon pelaajan1Ase; 18 14 19 15 20 PlatformCharacter pelaaja1; … … 70 75 AddCollisionHandler(pelaaja1, "stumper", TormaaTahteen); 71 76 Add(pelaaja1); 77 pelaaja1.AnimWalk = new Animation(running); 78 pelaaja1.AnimIdle = new Animation(standinganimation); 79 pelaajan1Ase = new PlasmaCannon(1.0, 1.0); 80 pelaajan1Ase.InfiniteAmmo = true; 81 pelaaja1.Weapon = pelaajan1Ase; 72 82 } 73 83 … … 80 90 Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 81 91 Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 92 Keyboard.Listen(Key. C, ButtonState.Pressed, Ammu, "Ampuu", pelaajan1Ase); 93 82 94 83 95 ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); … … 106 118 //stumper.Destroy(); 107 119 } 120 void Ammu(PlasmaCannon Ase) 121 { 122 Ase.Shoot(); 123 pelaaja1.Animation = new Animation(shootinganimation); 124 pelaaja1.Animation.Start(); 125 } 108 126 } -
2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid.csproj.Debug.cachefile
r5566 r5584 5 5 Content\Standinganimation.xnb 6 6 Content\stumper(Enemy).xnb 7 Content\running1.xnb 8 Content\running2.xnb 9 Content\Shootinganimation.xnb -
2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid/obj/x86/Debug/AdventureOfStarKid.csproj.FileListAbsolute.txt
r5566 r5584 13 13 C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\Standinganimation.xnb 14 14 C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\stumper(Enemy).xnb 15 C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\running1.xnb 16 C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\running2.xnb 17 C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\Shootinganimation.xnb -
2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid/obj/x86/Debug/ContentPipeline-{ECF942E0-B21C-45ED-8977-79F4B42A7C44}.xml
r5575 r5584 36 36 <Options>None</Options> 37 37 <Output>C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2014-07-23T1 0:17:36.9409535+03:00</Time>38 <Time>2014-07-23T13:05:58.0977535+03:00</Time> 39 39 </Item> 40 40 <Item> … … 55 55 <Output>C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\stumper(Enemy).xnb</Output> 56 56 <Time>2014-07-23T10:41:21.8751535+03:00</Time> 57 </Item> 58 <Item> 59 <Source>running1.png</Source> 60 <Name>running1</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\running1.xnb</Output> 65 <Time>2014-07-23T12:50:05.6069535+03:00</Time> 66 </Item> 67 <Item> 68 <Source>running2.png</Source> 69 <Name>running2</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\running2.xnb</Output> 74 <Time>2014-07-23T12:50:13.3133535+03:00</Time> 75 </Item> 76 <Item> 77 <Source>Shootinganimation.png</Source> 78 <Name>Shootinganimation</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\Shootinganimation.xnb</Output> 83 <Time>2014-07-23T14:10:21.4057535+03:00</Time> 57 84 </Item> 58 85 <BuildSuccessful>true</BuildSuccessful> -
2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid/obj/x86/Debug/cachefile-{ECF942E0-B21C-45ED-8977-79F4B42A7C44}-targetpath.txt
r5566 r5584 5 5 Content\Standinganimation.xnb 6 6 Content\stumper(Enemy).xnb 7 Content\running1.xnb 8 Content\running2.xnb 9 Content\Shootinganimation.xnb -
2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKidContent/AdventureOfStarKidContent.contentproj
r5575 r5584 81 81 </Compile> 82 82 </ItemGroup> 83 <ItemGroup> 84 <Compile Include="running1.png"> 85 <Name>running1</Name> 86 <Importer>TextureImporter</Importer> 87 <Processor>TextureProcessor</Processor> 88 </Compile> 89 </ItemGroup> 90 <ItemGroup> 91 <Compile Include="running2.png"> 92 <Name>running2</Name> 93 <Importer>TextureImporter</Importer> 94 <Processor>TextureProcessor</Processor> 95 </Compile> 96 </ItemGroup> 97 <ItemGroup> 98 <Compile Include="Shootinganimation.png"> 99 <Name>Shootinganimation</Name> 100 <Importer>TextureImporter</Importer> 101 <Processor>TextureProcessor</Processor> 102 </Compile> 103 </ItemGroup> 83 104 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 84 105 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKidContent/kentta1.txt
r5566 r5584 1 * 2 ## 1 * * 2 ## ## ## 3 3 4 4 * * … … 15 15 16 16 N 17 ###################### 17 ####################################
Note: See TracChangeset
for help on using the changeset viewer.