Ignore:
Timestamp:
2014-07-01 14:57:07 (5 years ago)
Author:
novaanan
Message:
 
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  
    2828      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\valikko.xnb</Output> 
    2929      <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> 
    3039    </Item> 
    3140    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/cachefile-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}-targetpath.txt

    r5210 r5247  
    22Content\kentta.xnb 
    33Content\valikko.xnb 
     4Content\hyokkaus.xnb 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/turhakepeli.csproj.FileListAbsolute.txt

    r5210 r5247  
    1010C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\kentta.xnb 
    1111C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\valikko.xnb 
     12C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\hyokkaus.xnb 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.cs

    r5228 r5247  
    1212    Image hahmo = LoadImage("pelaaja"); 
    1313    Image valikonKuva = LoadImage("valikko"); 
     14    Image hyokkauksenKuva = LoadImage("hyokkaus"); 
    1415 
    1516    public override void Begin() 
     
    1920 
    2021        LuoKentta(); 
     22        
    2123        LisaaOhjaimet(); 
     24 
     25       
    2226        
    2327 
     
    4751        Keyboard.Listen(Key.A, ButtonState.Down, Liiku, null, new Vector(-1000, 0)); 
    4852        Keyboard.Listen(Key.A, ButtonState.Released, Liiku, null, Vector.Zero); 
     53        Keyboard.Listen(Key.Space, ButtonState.Pressed, Hyokkaa, null); 
     54 
    4955        Keyboard.Listen(Key.Escape, ButtonState.Pressed, KysyPoistumista, "Lopeta peli"); 
    5056    } 
     
    102108 
    103109        Timer vihunLuontiAjastin = new Timer(); 
    104         vihunLuontiAjastin.Interval = 2.0; 
     110        vihunLuontiAjastin.Interval = 10.0; 
    105111        vihunLuontiAjastin.Timeout += delegate { LuoVihollinen(new Vector(RandomGen.NextDouble(Level.Left, Level.Right), Level.Top)); }; 
    106112        vihunLuontiAjastin.Start(); 
     
    163169 
    164170    } 
     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    
    165188 
    166189} 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.csproj.Debug.cachefile

    r5210 r5247  
    22Content\kentta.xnb 
    33Content\valikko.xnb 
     4Content\hyokkaus.xnb 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeliContent/turhakepeliContent.contentproj

    r5210 r5247  
    6666    </Compile> 
    6767  </ItemGroup> 
     68  <ItemGroup> 
     69    <Compile Include="hyokkaus.png"> 
     70      <Name>hyokkaus</Name> 
     71      <Importer>TextureImporter</Importer> 
     72      <Processor>TextureProcessor</Processor> 
     73    </Compile> 
     74  </ItemGroup> 
    6875  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    6976  <!--  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.