Changeset 8145 for 2016/30


Ignore:
Timestamp:
2016-07-27 12:14:52 (3 years ago)
Author:
almajono
Message:
 
Location:
2016/30/AleksiN/name
Files:
2 added
11 edited

Legend:

Unmodified
Added
Removed
  • 2016/30/AleksiN/name/name/name/name.cs

    r8137 r8145  
    99public class name : PhysicsGame 
    1010{ 
    11  
     11    Image motorbike = LoadImage("motorbike"); 
    1212    Image tire = LoadImage("tire"); 
    1313    PhysicsStructure tires; 
     
    1919        IsFullScreen = true; 
    2020 
    21         SpawnTires(); 
     21        AddTires(); 
    2222        Points(); 
    2323        Keys(); 
     
    3131        //smoke.Position = tires.Position; 
    3232        //Add(smoke); 
    33          
     33 
     34        PhysicsObject bike = new PhysicsObject(250.0, 250.0); 
     35        bike.Image = motorbike; 
     36        Add(bike); 
     37        bike.IgnoresCollisionResponse = true; 
     38 
    3439    } 
    3540 
    36     void SpawnTires() 
     41    void AddTires() 
    3742    { 
    3843        PhysicsObject leftTire = new PhysicsObject(50.0, 50.0, Shape.Circle); 
     
    4954    void Keys() 
    5055    { 
    51         Keyboard.Listen(Key.Down, ButtonState.Down, Movement, null, new Vector(-2000, 0)); 
    52         Keyboard.Listen(Key.Up, ButtonState.Down, Movement, null, new Vector(2000, 0)); 
    53         Keyboard.Listen(Key.Left, ButtonState.Down, Angle, null, 10.0); 
    54         Keyboard.Listen(Key.Right, ButtonState.Down, Angle, null, -10.0); 
     56        Keyboard.Listen(Key.Down, ButtonState.Down, Movement, null, new Vector(-1000, 0)); 
     57        Keyboard.Listen(Key.Up, ButtonState.Down, Movement, null, new Vector(1000, 0)); 
     58        Keyboard.Listen(Key.Left, ButtonState.Down, ChangeAngle, null, 7.5); 
     59        Keyboard.Listen(Key.Right, ButtonState.Down, ChangeAngle, null, -7.5); 
    5560        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    5661    } 
     
    5964        tires.Push(movement); 
    6065    } 
    61     void Angle(double ammount) 
     66    void ChangeAngle(double ammount) 
    6267    { 
    6368        tires.AngularVelocity = ammount; 
  • 2016/30/AleksiN/name/name/name/name.csproj.Debug.cachefile

    r8133 r8145  
    11Content\tire.xnb 
     2Content\motorbike.xnb 
  • 2016/30/AleksiN/name/name/name/obj/x86/Debug/ContentPipeline-{49567990-B47B-4392-B766-C40B385D6A4B}.xml

    r8133 r8145  
    1010      <Output>C:\MyTemp\AleksiN\name\name\name\bin\x86\Debug\Content\tire.xnb</Output> 
    1111      <Time>2016-07-27T10:06:19.1460791+03:00</Time> 
     12    </Item> 
     13    <Item> 
     14      <Source>motorbike.png</Source> 
     15      <Name>motorbike</Name> 
     16      <Importer>TextureImporter</Importer> 
     17      <Processor>TextureProcessor</Processor> 
     18      <Options>None</Options> 
     19      <Output>C:\MyTemp\AleksiN\name\name\name\bin\x86\Debug\Content\motorbike.xnb</Output> 
     20      <Time>2016-07-27T11:48:57.0642791+03:00</Time> 
    1221    </Item> 
    1322    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/30/AleksiN/name/name/name/obj/x86/Debug/cachefile-{49567990-B47B-4392-B766-C40B385D6A4B}-targetpath.txt

    r8133 r8145  
    11Content\tire.xnb 
     2Content\motorbike.xnb 
  • 2016/30/AleksiN/name/name/name/obj/x86/Debug/name.csproj.FileListAbsolute.txt

    r8133 r8145  
    88C:\MyTemp\AleksiN\name\name\name\obj\x86\Debug\name.csprojResolveAssemblyReference.cache 
    99C:\MyTemp\AleksiN\name\name\name\bin\x86\Debug\Content\tire.xnb 
     10C:\MyTemp\AleksiN\name\name\name\bin\x86\Debug\Content\motorbike.xnb 
  • 2016/30/AleksiN/name/name/nameContent/nameContent.contentproj

    r8133 r8145  
    5252    </Compile> 
    5353  </ItemGroup> 
     54  <ItemGroup> 
     55    <Compile Include="motorbike.png"> 
     56      <Name>motorbike</Name> 
     57      <Importer>TextureImporter</Importer> 
     58      <Processor>TextureProcessor</Processor> 
     59    </Compile> 
     60  </ItemGroup> 
    5461  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    5562  <!--  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.