Changeset 5584 for 2014


Ignore:
Timestamp:
2014-07-23 14:11:58 (9 years ago)
Author:
aajualal
Message:

texture

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  
    99public class AdventureOfStarKid : PhysicsGame 
    1010{ 
     11    private Image[] running = LoadImages("running1", "running2"); 
     12    private Image[] standinganimation = LoadImages("standinganimation"); 
     13    private Image[] shootinganimation = LoadImages("shootinganimation"); 
    1114    const double nopeus = 200; 
    1215    const double hyppyNopeus = 750; 
    1316    const int RUUDUN_KOKO = 40; 
     17   PlasmaCannon pelaajan1Ase; 
     18    
    1419 
    1520    PlatformCharacter pelaaja1; 
     
    7075        AddCollisionHandler(pelaaja1, "stumper", TormaaTahteen); 
    7176        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; 
    7282    } 
    7383 
     
    8090        Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 
    8191        Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 
     92        Keyboard.Listen(Key. C, ButtonState.Pressed, Ammu, "Ampuu", pelaajan1Ase); 
     93 
    8294 
    8395        ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); 
     
    106118        //stumper.Destroy(); 
    107119    } 
     120    void Ammu(PlasmaCannon Ase) 
     121    { 
     122        Ase.Shoot(); 
     123        pelaaja1.Animation = new Animation(shootinganimation); 
     124        pelaaja1.Animation.Start(); 
     125    } 
    108126} 
  • 2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid.csproj.Debug.cachefile

    r5566 r5584  
    55Content\Standinganimation.xnb 
    66Content\stumper(Enemy).xnb 
     7Content\running1.xnb 
     8Content\running2.xnb 
     9Content\Shootinganimation.xnb 
  • 2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid/obj/x86/Debug/AdventureOfStarKid.csproj.FileListAbsolute.txt

    r5566 r5584  
    1313C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\Standinganimation.xnb 
    1414C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\stumper(Enemy).xnb 
     15C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\running1.xnb 
     16C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\running2.xnb 
     17C:\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  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2014-07-23T10:17:36.9409535+03:00</Time> 
     38      <Time>2014-07-23T13:05:58.0977535+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
     
    5555      <Output>C:\MyTemp\AarniAR\AdventureOfStarKid\AdventureOfStarKid\AdventureOfStarKid\bin\x86\Debug\Content\stumper(Enemy).xnb</Output> 
    5656      <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> 
    5784    </Item> 
    5885    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKid/obj/x86/Debug/cachefile-{ECF942E0-B21C-45ED-8977-79F4B42A7C44}-targetpath.txt

    r5566 r5584  
    55Content\Standinganimation.xnb 
    66Content\stumper(Enemy).xnb 
     7Content\running1.xnb 
     8Content\running2.xnb 
     9Content\Shootinganimation.xnb 
  • 2014/30/AarniAR/AdventureOfStarKid/AdventureOfStarKid/AdventureOfStarKidContent/AdventureOfStarKidContent.contentproj

    r5575 r5584  
    8181    </Compile> 
    8282  </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> 
    83104  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    84105  <!--  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         ##             ##  ## 
    33 
    44       *    * 
     
    1515 
    1616        N 
    17 ###################### 
     17#################################### 
Note: See TracChangeset for help on using the changeset viewer.