Changeset 4652


Ignore:
Timestamp:
2013-07-25 11:08:05 (6 years ago)
Author:
viosfilp
Message:

Talletus.

Location:
2013/30/VilleF/Lentokone/Lentokone
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/VilleF/Lentokone/Lentokone/Lentokone/Lentokone.cs

    r4651 r4652  
    99public class Lentokone : PhysicsGame 
    1010{ 
     11    private Animation rasa; 
     12 
    1113    private Animation sauruksenLento; 
    1214    private Animation juusto; 
     
    2123    PhysicsObject pelaaja; 
    2224    PhysicsObject pommi; 
    23     //PhysicsObject ukkeli1; 
     25    PhysicsObject Rasa; 
    2426 
    2527    Timer komboLaskurinAjastin; 
     
    3941        juusto = LoadAnimation("ukkeli"); 
    4042        sauruksenLento = LoadAnimation("animaatio"); 
     43        rasa = LoadAnimation("rasanen"); 
     44 
    4145        Level.Width = 1920; 
    4246        Level.Height = 1080; 
     
    6468        Keyboard.Listen(Key.V, ButtonState.Released, LisaaVihollinen, "Ammu"); 
    6569        Keyboard.Listen(Key.P, ButtonState.Pressed, Pause, "Pysäyttää pelin"); 
     70 
     71        Keyboard.Listen(Key.B, ButtonState.Released, tiputamuu, "Pysäyttää pelin"); 
     72    } 
     73    void tiputamuu() 
     74    { 
     75 
     76        Rasa = new PhysicsObject(100, 100); 
     77        //pommi.Shape = Shape.FromImage("pommik"); 
     78        Rasa.Position = pelaaja.Position; 
     79        Rasa.Animation = rasa; 
     80        Rasa.Animation.Start(); 
     81        Rasa.Animation.FPS = 3; 
     82        Add(Rasa); 
     83         
    6684    } 
    6785    void LuoPistelaskuri() 
  • 2013/30/VilleF/Lentokone/Lentokone/LentokoneContent/LentokoneContent.contentproj

    r4626 r4652  
    132132    </Compile> 
    133133  </ItemGroup> 
     134  <ItemGroup> 
     135    <Compile Include="rasanen.anim"> 
     136      <Name>rasanen</Name> 
     137      <Importer>AnimationImporter</Importer> 
     138      <Processor>AnimationContentProcessor</Processor> 
     139    </Compile> 
     140  </ItemGroup> 
    134141  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    135142  <!--  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.