Changeset 2977


Ignore:
Timestamp:
2012-06-13 10:51:46 (8 years ago)
Author:
sijoseha
Message:

Talletus.

Location:
2012/24/AnttoniS/Ufot/Ufot
Files:
4 added
8 edited

Legend:

Unmodified
Added
Removed
  • 2012/24/AnttoniS/Ufot/Ufot/Ufot/Ufot.cs

    r2968 r2977  
    99public class Ufot : PhysicsGame 
    1010{ 
    11     PhysicsObject ukko; 
     11    PhysicsObject vartalo; 
    1212    PhysicsObject pää; 
     13    Image ukko = LoadImage("ukko"); 
     14     
    1315    public override void Begin() 
    1416    { 
     
    2123        Wind = new Vector(80, 10); 
    2224 
    23         ukko = new PhysicsObject(75, 150); 
    24         PlasmaCannon ase = new PlasmaCannon(80, 50); 
    25         ukko.Add(ase); 
     25 
     26        vartalo = new PhysicsObject(75, 150); 
     27        vartalo.Mass = (10000); 
     28        PlasmaCannon ase = new PlasmaCannon(30, 20); 
     29        vartalo.Add(ase); 
     30        ase.X = 20; 
    2631        Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu", ase); 
    2732        Mouse.IsCursorVisible = true; 
    2833        Mouse.ListenMovement(0.1, KuunteleLiiketta, null); 
    29         ukko.X = -0.0; 
    30         ukko.Y = -380; 
    31         ukko.Color = Color.Beige; 
    32         ukko.Shape = Shape.Ellipse; 
     34        vartalo.X = -0.0; 
     35        vartalo.Y = -380; 
     36        vartalo.Color = Color.Beige; 
     37        vartalo.Shape = Shape.Ellipse; 
    3338        Gravity = new Vector(0.0, -0.0); 
    34         ukko.Restitution = 1.0; 
    35         Add(ukko); 
    36  
    37  
    38         pää = new PhysicsObject(70, 70); 
    39         pää.Color = Color.Beige; 
    40         pää.X = -0.0; 
    41         pää.Y = -300; 
    42         pää.Shape = Shape.Circle; 
    43         Add(pää); 
    44  
    45  
     39        vartalo.Restitution = 1.0; 
     40        Add(vartalo); 
     41        vartalo.Image = ukko; 
    4642 
    4743 
     
    5248    void KuunteleLiiketta(AnalogState hiirenTila) 
    5349    { 
    54         ukko.X = Mouse.PositionOnWorld.X; 
    55         pää.X = Mouse.PositionOnWorld.X; 
     50        vartalo.X = Mouse.PositionOnWorld.X; 
    5651    } 
    5752 
     
    6257        if (ammus != null) 
    6358        { 
    64             ammus.Size *= 3; 
     59            ammus.Size *= 1; 
    6560        } 
     61 
     62         
    6663    } 
    6764 
  • 2012/24/AnttoniS/Ufot/Ufot/Ufot/obj/x86/Debug/ContentPipeline-{79138FA0-960A-4FD2-BC0E-B4BD422F72DE}.xml

    r2968 r2977  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
     4    <Item> 
     5      <Source>ukko.png</Source> 
     6      <Name>ukko</Name> 
     7      <Importer>TextureImporter</Importer> 
     8      <Processor>TextureProcessor</Processor> 
     9      <Options>None</Options> 
     10      <Output>C:\MyTemp\AnttoniS\Ufot\Ufot\Ufot\bin\x86\Debug\Content\ukko.xnb</Output> 
     11      <Time>2012-06-13T10:17:10.358499+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-04-23T14:23:36+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:30:47.6570912+02:00</Value> 
  • 2012/24/AnttoniS/Ufot/Ufot/Ufot/obj/x86/Debug/Ufot.csproj.FileListAbsolute.txt

    r2968 r2977  
    77C:\MyTemp\AnttoniS\Ufot\Ufot\Ufot\obj\x86\Debug\Ufot.exe 
    88C:\MyTemp\AnttoniS\Ufot\Ufot\Ufot\obj\x86\Debug\Ufot.pdb 
     9C:\MyTemp\AnttoniS\Ufot\Ufot\Ufot\bin\x86\Debug\Content\ukko.xnb 
  • 2012/24/AnttoniS/Ufot/Ufot/UfotContent/UfotContent.contentproj

    r2968 r2977  
    4444    <Reference Include="TextFileContentExtension" /> 
    4545  </ItemGroup> 
     46  <ItemGroup> 
     47    <Compile Include="ukko.png"> 
     48      <Name>ukko</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.