Changeset 3857 for 2012/26/EliasY


Ignore:
Timestamp:
2012-09-22 16:17:41 (7 years ago)
Author:
anlakane
Message:

Talletus.

Location:
2012/26/EliasY/test1
Files:
2 added
12 edited

Legend:

Unmodified
Added
Removed
  • 2012/26/EliasY/test1/test1/test1/obj/x86/Debug/test1.csproj.FileListAbsolute.txt

    r3827 r3857  
    2929C:\MyTemp\EliasY\test1\test1\test1\bin\x86\Debug\Content\Silence.wma 
    3030C:\MyTemp\EliasY\test1\test1\test1\bin\x86\Debug\Content\tahtain.xnb 
     31C:\MyTemp\EliasY\test1\test1\test1\bin\x86\Debug\Content\pimeys.xnb 
  • 2012/26/EliasY/test1/test1/test1/test1.cs

    r3827 r3857  
    106106    void Tahtaa(AnalogState hiirenLiike) 
    107107    { 
    108         Vector suunta = (Mouse.PositionOnWorld - pelaaja.AbsolutePosition).Normalize(); 
     108        Vector suunta = (Mouse.PositionOnWorld - pelaaja.AbsolutePosition); 
     109        if (suunta != Vector.Zero) 
     110        { 
    109111        pelaaja.Angle = suunta.Angle; 
     112        } 
    110113    } 
    111114 
     
    153156    void Pimenna() 
    154157    { 
    155         pimeys = new GameObject(new Animation(LoadImage("pimeys2"))); 
     158        pimeys = new GameObject(new Animation(LoadImage("pimeys"))); 
    156159        pimeys.Width = 1350; 
    157160        pimeys.Height = 1350; 
     
    223226    PhysicsObject LuoAmmoBox() 
    224227    { 
    225         PhysicsObject ammobox = PhysicsObject.CreateStaticObject(40.0, 30.0); 
     228        PhysicsObject ammobox = PhysicsObject.CreateStaticObject(40.0, 40.0); 
    226229        ammobox.Image = LoadImage("ammobox"); 
    227230        AddCollisionHandler(pelaaja, ammobox, delegate { ammobox.Destroy(); kivaari.Ammo.AddValue(50); }); 
     
    231234    PhysicsObject LuoMedikit() 
    232235    { 
    233         PhysicsObject medikit = PhysicsObject.CreateStaticObject(40.0, 30.0); 
     236        PhysicsObject medikit = PhysicsObject.CreateStaticObject(40.0, 40.0); 
    234237        medikit.Image = LoadImage("medikit"); 
    235238        AddCollisionHandler(pelaaja, medikit, delegate { medikit.Destroy(); pelaajanterveys.Value = 5; }); 
  • 2012/26/EliasY/test1/test1/test1/test1.csproj.Debug.cachefile

    r3827 r3857  
    1919Content\Silence.xnb 
    2020Content\tahtain.xnb 
     21Content\pimeys.xnb 
    2122Content\Silence.wma 
    2223kentta.txt 
  • 2012/26/EliasY/test1/test1/test1Content/test1Content.contentproj

    r3827 r3857  
    176176    </Compile> 
    177177  </ItemGroup> 
     178  <ItemGroup> 
     179    <Compile Include="pimeys.png"> 
     180      <Name>pimeys</Name> 
     181      <Importer>TextureImporter</Importer> 
     182      <Processor>TextureProcessor</Processor> 
     183    </Compile> 
     184  </ItemGroup> 
    178185  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    179186  <!--  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.