Changeset 3314 for 2012/26/EliasY


Ignore:
Timestamp:
2012-06-28 14:09:26 (7 years ago)
Author:
elalylon
Message:

Talletus.

Location:
2012/26/EliasY/test1
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • 2012/26/EliasY/test1/test1/test1/obj/x86/Debug/ContentPipeline-{BFB255A8-81A7-4A34-AF08-16AEFBF6C543}.xml

    r3311 r3314  
    110110      <Time>2012-06-28T13:33:14.7107259+03:00</Time> 
    111111    </Item> 
     112    <Item> 
     113      <Source>konepistooli.png</Source> 
     114      <Name>konepistooli</Name> 
     115      <Importer>TextureImporter</Importer> 
     116      <Processor>TextureProcessor</Processor> 
     117      <Options>None</Options> 
     118      <Output>C:\MyTemp\EliasY\test1\test1\test1\bin\x86\Debug\Content\konepistooli.xnb</Output> 
     119      <Time>2012-06-28T13:57:11.4263831+03:00</Time> 
     120    </Item> 
    112121    <BuildSuccessful>true</BuildSuccessful> 
    113122    <Settings> 
  • 2012/26/EliasY/test1/test1/test1/obj/x86/Debug/test1.csproj.FileListAbsolute.txt

    r3311 r3314  
    2020C:\MyTemp\EliasY\test1\test1\test1\bin\x86\Debug\Content\avain.xnb 
    2121C:\MyTemp\EliasY\test1\test1\test1\bin\x86\Debug\Content\portti.xnb 
     22C:\MyTemp\EliasY\test1\test1\test1\bin\x86\Debug\Content\konepistooli.xnb 
  • 2012/26/EliasY/test1/test1/test1/test1.cs

    r3311 r3314  
    2929        Camera.ZoomFactor = 1.7; 
    3030        /*todo: 
    31          * pelaaja osaksi mappia 
    32          * aseet 
    33          * vihut 
     31         * luotien katoaminen 
    3432         * mapin parantelu 
     33         * vihujen AI:n debuggaus 
    3534         */ 
    3635    } 
     
    7675            ammus.Size /= 3; 
    7776            ammus.Mass = 30; 
    78             //ammus.Velocity *= 3; 
     77            ammus.LifetimeLeft = TimeSpan.FromMilliseconds(500); 
    7978            AddCollisionHandler<PhysicsObject, Zombi>(ammus, "zombi", ViholliseenOsuu); 
    8079            AddCollisionHandler<PhysicsObject, Zombi>(ammus, "zombi", CollisionHandler.DestroyObject); 
     
    181180    { 
    182181        PhysicsObject konepistooli = PhysicsObject.CreateStaticObject(40.0, 15.0); 
    183         //konepistooli.Image = LoadImage("portti"); 
     182        konepistooli.Image = LoadImage("konepistooli"); 
    184183        AddCollisionHandler(pelaaja, konepistooli, delegate {  
    185184            konepistooli.Destroy(); 
    186185            kivaari.Ammo.AddValue(50); 
    187             kivaari.TimeBetweenUse = new TimeSpan(0,0,0,0,66); 
     186            kivaari.TimeBetweenUse = TimeSpan.FromMilliseconds(100); 
    188187        }); 
    189188        return konepistooli; 
     
    201200        PhysicsObject portti = PhysicsObject.CreateStaticObject(100.0, 50.0); 
    202201        portti.Image = LoadImage("portti"); 
    203         AddCollisionHandler(pelaaja, avain, delegate { portti.Destroy(); kivaari.Ammo.AddValue(50); }); 
     202        AddCollisionHandler(pelaaja, avain, delegate { portti.Destroy(); avain.Destroy(); MessageDisplay.Add("Löysit avaimen, jolla pääset portista!"); }); 
    204203        return portti; 
    205204    } 
  • 2012/26/EliasY/test1/test1/test1/test1.csproj.Debug.cachefile

    r3311 r3314  
    1111Content\avain.xnb 
    1212Content\portti.xnb 
     13Content\konepistooli.xnb 
    1314kentta.txt 
  • 2012/26/EliasY/test1/test1/test1Content/test1Content.contentproj

    r3311 r3314  
    122122    </Compile> 
    123123  </ItemGroup> 
     124  <ItemGroup> 
     125    <Compile Include="konepistooli.png"> 
     126      <Name>konepistooli</Name> 
     127      <Importer>TextureImporter</Importer> 
     128      <Processor>TextureProcessor</Processor> 
     129    </Compile> 
     130  </ItemGroup> 
    124131  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    125132  <!--  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.