Changeset 8579 for 2017/24


Ignore:
Timestamp:
2017-06-13 13:05:57 (2 years ago)
Author:
npo17_18
Message:
 
Location:
2017/24/ViljamiM
Files:
5 added
8 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/ViljamiM/Zombodroid/Zombodroid/Zombodroid/Zombodroid.cs

    r8563 r8579  
    1010{ 
    1111    PhysicsObject matti; 
     12    PhysicsObject Weapon; 
    1213    public override void Begin() 
    1314    { 
     
    1516        AsetaHenkilot(); 
    1617         
     18 
     19        Mouse.ListenMovement(0.1, Tahtaa, "Tähtää aseella"); 
     20 
     21        IsMouseVisible = true; 
     22 
    1723    } 
    1824    void AsetaOhjaimet() 
     
    2127 
    2228        Keyboard.Listen(Key.A, ButtonState.Down, 
    23    LiikutaPelaajaa, null, new Vector(-1000, 0)); 
     29   LiikutaPelaajaa, null, new Vector(-180, 0)); 
    2430        Keyboard.Listen(Key.D, ButtonState.Down, 
    25           LiikutaPelaajaa, null, new Vector(1000, 0)); 
     31          LiikutaPelaajaa, null, new Vector(180, 0)); 
    2632        Keyboard.Listen(Key.W, ButtonState.Down, 
    27           LiikutaPelaajaa, null, new Vector(0, 1000)); 
     33          LiikutaPelaajaa, null, new Vector(0, 180)); 
    2834        Keyboard.Listen(Key.S, ButtonState.Down, 
    29           LiikutaPelaajaa, null, new Vector(0, -1000)); 
     35          LiikutaPelaajaa, null, new Vector(0, -180)); 
     36 
     37        Keyboard.Listen(Key.A, ButtonState.Released, 
     38   LiikutaPelaajaa, null, Vector.Zero); 
     39        Keyboard.Listen(Key.D, ButtonState.Released, 
     40         LiikutaPelaajaa, null, Vector.Zero); 
     41        Keyboard.Listen(Key.W, ButtonState.Released, 
     42          LiikutaPelaajaa, null, Vector.Zero); 
     43        Keyboard.Listen(Key.S, ButtonState.Released, 
     44          LiikutaPelaajaa, null, Vector.Zero); 
     45 
     46 
    3047    } 
    3148    void AsetaHenkilot() 
    3249    { 
    33         matti = new PhysicsObject(20, 50); 
     50        matti = new PhysicsObject(50, 50); 
     51        matti.Image = LoadImage("oikeeukkeli"); 
    3452        Add(matti); 
    3553    } 
    36     void LiikutaPelajaa(Vector vektori) 
    37     { 
    38          
    39     } 
     54    
    4055    void LiikutaPelaajaa(Vector vektori) 
    4156    { 
    42         matti.Push(vektori); 
     57        matti.Move(vektori); 
    4358    } 
     59    void Tahtaa(AnalogState hiirenLiike) 
     60    { 
     61        Vector suunta = (Mouse.PositionOnWorld - matti.AbsolutePosition).Normalize(); 
     62        matti.Angle = suunta.Angle - Angle.RightAngle; 
     63    } 
     64 
    4465} 
  • 2017/24/ViljamiM/Zombodroid/Zombodroid/Zombodroid/obj/x86/Debug/ContentPipeline-{F6EFD04E-8F12-4614-93BD-9005376C12CF}.xml

    r8559 r8579  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>oikeeukkeli.png</Source> 
     6      <Name>oikeeukkeli</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>C:\MyTemp\ViljamiM\Zombodroid\Zombodroid\Zombodroid\bin\x86\Debug\Content\oikeeukkeli.xnb</Output> 
     11      <Time>2017-06-13T12:46:58.5454181+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>2015-02-09T20:18:44+02: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-01T16: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-01T16: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-01T16: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-01T16: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-01T16: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-01T16:22:30+03:00</Value> 
     53      </Assembly> 
     54      <Assembly> 
     55        <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 
     56        <Value>2015-02-17T22:27:18+02:00</Value> 
     57      </Assembly> 
     58      <Assembly> 
    1859        <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> 
    1960        <Value>2017-06-09T13:07:22.7873394+03:00</Value> 
  • 2017/24/ViljamiM/Zombodroid/Zombodroid/Zombodroid/obj/x86/Debug/Zombodroid.csproj.FileListAbsolute.txt

    r8559 r8579  
    77C:\MyTemp\ViljamiM\Zombodroid\Zombodroid\Zombodroid\obj\x86\Debug\Zombodroid.exe 
    88C:\MyTemp\ViljamiM\Zombodroid\Zombodroid\Zombodroid\obj\x86\Debug\Zombodroid.pdb 
     9C:\MyTemp\ViljamiM\Zombodroid\Zombodroid\Zombodroid\bin\x86\Debug\Content\oikeeukkeli.xnb 
  • 2017/24/ViljamiM/Zombodroid/Zombodroid/ZombodroidContent/ZombodroidContent.contentproj

    r8559 r8579  
    4545    <Reference Include="AnimationExtension" /> 
    4646  </ItemGroup> 
     47  <ItemGroup> 
     48    <Compile Include="oikeeukkeli.png"> 
     49      <Name>oikeeukkeli</Name> 
     50      <Importer>TextureImporter</Importer> 
     51      <Processor>TextureProcessor</Processor> 
     52    </Compile> 
     53  </ItemGroup> 
    4754  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    4855  <!--  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.