Changeset 3233 for 2012/26/EliasY


Ignore:
Timestamp:
2012-06-26 15:04: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

    r3172 r3233  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>pimeys.png</Source> 
     6      <Name>pimeys</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>C:\MyTemp\EliasY\test1\test1\test1\bin\x86\Debug\Content\pimeys.xnb</Output> 
     11      <Time>2012-06-26T14:52:20.9459765+03:00</Time> 
     12    </Item> 
    413    <BuildSuccessful>true</BuildSuccessful> 
    514    <Settings> 
     
    1625    <Assemblies> 
    1726      <Assembly> 
     27        <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 
     28        <Value>2012-06-25T09:04:16+03:00</Value> 
     29      </Assembly> 
     30      <Assembly> 
     31        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 
     32        <Value>2011-09-01T17:22:30+03:00</Value> 
     33      </Assembly> 
     34      <Assembly> 
     35        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 
     36        <Value>2011-09-01T17:22:30+03:00</Value> 
     37      </Assembly> 
     38      <Assembly> 
     39        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 
     40        <Value>2011-09-01T17:22:30+03:00</Value> 
     41      </Assembly> 
     42      <Assembly> 
     43        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 
     44        <Value>2011-09-01T17:22:30+03:00</Value> 
     45      </Assembly> 
     46      <Assembly> 
     47        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 
     48        <Value>2011-09-01T17:22:30+03:00</Value> 
     49      </Assembly> 
     50      <Assembly> 
     51        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 
     52        <Value>2011-09-01T17:22:30+03:00</Value> 
     53      </Assembly> 
     54      <Assembly> 
    1855        <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    1956        <Value>2012-03-16T14:35:21.2332043+02:00</Value> 
  • 2012/26/EliasY/test1/test1/test1/obj/x86/Debug/test1.csproj.FileListAbsolute.txt

    r3172 r3233  
    88C:\MyTemp\EliasY\test1\test1\test1\obj\x86\Debug\test1.exe 
    99C:\MyTemp\EliasY\test1\test1\test1\obj\x86\Debug\test1.pdb 
     10C:\MyTemp\EliasY\test1\test1\test1\bin\x86\Debug\Content\pimeys.xnb 
  • 2012/26/EliasY/test1/test1/test1/test1.cs

    r3212 r3233  
    1212    const int ruudunKorkeus = 50; 
    1313    PhysicsObject pelaaja; 
     14    AssaultRifle kivaari; 
     15    GameObject pimeys; 
    1416 
    1517    public override void Begin() 
     
    2022        AsetaOhjaimet(); 
    2123 
    22         Camera.ZoomToLevel(); 
     24        Camera.Follow(pelaaja); 
     25        Camera.ZoomFactor = 1.7; 
    2326        /*todo: 
     27         * PIMEYS!!! 
    2428         * aseet 
    2529         * vihut 
    26          * kameran zoomaus pelaajaan 
    2730         * pistecountteri 
    2831         * tekstuurit 
     
    3437    void AsetaOhjaimet() 
    3538    { 
    36         Keyboard.Listen(Key.W, ButtonState.Down, Liiku, null, 0.0, 20.0); 
    37         Keyboard.Listen(Key.A, ButtonState.Down, Liiku, null, -20.0, 0.0); 
    38         Keyboard.Listen(Key.S, ButtonState.Down, Liiku, null, 0.0, -20.0); 
    39         Keyboard.Listen(Key.D, ButtonState.Down, Liiku, null, 20.0, 0.0); 
     39        Keyboard.Listen(Key.W, ButtonState.Down, Liiku, null, 0.0, 30.0); 
     40        Keyboard.Listen(Key.A, ButtonState.Down, Liiku, null, -30.0, 0.0); 
     41        Keyboard.Listen(Key.S, ButtonState.Down, Liiku, null, 0.0, -30.0); 
     42        Keyboard.Listen(Key.D, ButtonState.Down, Liiku, null, 30.0, 0.0); 
    4043 
    4144        Keyboard.Listen(Key.Left, ButtonState.Down, Kaanny, null, 2.0); 
     
    5053        Keyboard.Listen(Key.Right, ButtonState.Released, LopetaKaantyminen, null); 
    5154 
     55        Keyboard.Listen(Key.Up, ButtonState.Down, Ammu, null); 
     56    } 
     57 
     58    void Ammu() 
     59    { 
     60        PhysicsObject ammus = kivaari.Shoot(); 
     61 
     62        if (ammus != null) 
     63        { 
     64            ammus.Size /= 3; 
     65        } 
     66        //reload-animaatio tähän? 
    5267    } 
    5368 
     
    8095        pelaaja.X = 550; 
    8196        pelaaja.Y = -550; 
     97        pelaaja.Mass = 10; 
    8298 
     99        kivaari = new AssaultRifle(80, 20); 
     100        kivaari.TimeBetweenUse = TimeSpan.FromMilliseconds(700); 
    83101 
     102        pelaaja.Add(kivaari); 
     103        Add(pelaaja); 
    84104 
    85         Add(pelaaja); 
     105        Pimenna(); 
     106    } 
     107 
     108    void Pimenna() 
     109    { 
     110        pimeys = new GameObject(new Animation(LoadImage("pimeys"))); 
     111        // Viimeistele 
    86112    } 
    87113 
  • 2012/26/EliasY/test1/test1/test1/test1.csproj.Debug.cachefile

    r3172 r3233  
     1Content\pimeys.xnb 
    12kentta.txt 
  • 2012/26/EliasY/test1/test1/test1Content/test1Content.contentproj

    r3172 r3233  
    4444    <Reference Include="TextFileContentExtension" /> 
    4545  </ItemGroup> 
     46  <ItemGroup> 
     47    <Compile Include="pimeys.png"> 
     48      <Name>pimeys</Name> 
     49      <Importer>TextureImporter</Importer> 
     50      <Processor>TextureProcessor</Processor> 
     51    </Compile> 
     52  </ItemGroup> 
    4653  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    4754  <!--  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.