Ignore:
Timestamp:
2016-06-17 10:43:15 (3 years ago)
Author:
armahiek
Message:
 
Location:
2016/24/ArttuH/anythin
Files:
2 added
11 edited

Legend:

Unmodified
Added
Removed
  • 2016/24/ArttuH/anythin/anythin/anythin/anythin.cs

    r7374 r7411  
    1313    LaserGun Zapper1; 
    1414    LaserGun Zapper2; 
    15     PlasmaCannon Sidecannon1; 
    16     PlasmaCannon Sidecannon2; 
     15    LaserGun Zapper3; 
     16    LaserGun Zapper4; 
    1717    Image playerim = LoadImage("rocket2"); 
    1818    Image Asteroid10 = LoadImage("asteroid"); 
     
    4949        Player1.Shape = Shape.Circle; 
    5050        Add(Player1); 
     51        AddCollisionHandler(Player1, Something); 
    5152 
    5253        //Creating Guns 
     
    6667        Zapper1.Image = null; 
    6768        Zapper1.FireRate = 1.0; 
    68         Zapper1.Angle += Angle.FromDegrees(10); 
     69        Zapper1.Angle += Angle.FromDegrees(5); 
    6970        Player1.Add(Zapper1); 
    7071        //Laser 3 
     
    7576        Zapper2.Image = null; 
    7677        Zapper2.FireRate = 1.0; 
    77         Zapper2.Angle += Angle.FromDegrees(-10); 
     78        Zapper2.Angle += Angle.FromDegrees(-5); 
    7879        Player1.Add(Zapper2); 
    79         //Side Plasmacannon 1 
    80         Sidecannon1 = new PlasmaCannon(0, 0); 
    81         Sidecannon1.InfiniteAmmo = true; 
    82         Sidecannon1.ProjectileCollision = Cannonhits; 
    83         Sidecannon1.CanHitOwner = false; 
    84         Sidecannon1.Image = null; 
    85         Sidecannon1.FireRate = 0.333333333333334; 
    86         Sidecannon1.Angle += Angle.FromDegrees(90); 
    87         Player1.Add(Sidecannon1); 
    88         //Side Plasmacannon 2 
    89         Sidecannon2 = new PlasmaCannon(0, 0); 
    90         Sidecannon2.InfiniteAmmo = true; 
    91         Sidecannon2.ProjectileCollision = Cannonhits; 
    92         Sidecannon2.CanHitOwner = false; 
    93         Sidecannon2.Image = null; 
    94         Sidecannon2.FireRate = 0.3333333333333334; 
    95         Sidecannon2.Angle += Angle.FromDegrees(-90); 
    96         Player1.Add(Sidecannon2); 
     80        //Laser 4 
     81        Zapper3 = new LaserGun(0, 0); 
     82        Zapper3.InfiniteAmmo = true; 
     83        Zapper3.ProjectileCollision = Hits; 
     84        Zapper3.CanHitOwner = false; 
     85        Zapper3.Image = null; 
     86        Zapper3.FireRate = 1.0; 
     87        Zapper3.Angle += Angle.FromDegrees(10); 
     88        Player1.Add(Zapper3); 
     89        //Laser 5 
     90        Zapper4 = new LaserGun(0, 0); 
     91        Zapper4.InfiniteAmmo = true; 
     92        Zapper4.ProjectileCollision = Hits; 
     93        Zapper4.CanHitOwner = false; 
     94        Zapper4.Image = null; 
     95        Zapper4.FireRate = 1.0; 
     96        Zapper4.Angle += Angle.FromDegrees(-10); 
     97        Player1.Add(Zapper4); 
     98 
    9799    } 
    98100    void Hits(PhysicsObject Laser, PhysicsObject Target) 
     
    102104        Killer.Value += 1; 
    103105    } 
    104     void Cannonhits(PhysicsObject Plasma, PhysicsObject Target) 
    105     {   //Plasmacannon hit detection 
    106          
    107         Target.Destroy(); 
    108         Killer.Value += 1; 
     106 
     107    void Something(PhysicsObject Car, PhysicsObject Target) 
     108    { 
     109        Car.Destroy(); 
     110        MessageDisplay.Add("R.I.P"); 
    109111    } 
    110112    void Assets() 
     
    189191        Keyboard.Listen(Key.Space, ButtonState.Down, Shoot1, null, Zapper1); 
    190192        Keyboard.Listen(Key.Space, ButtonState.Down, Shoot1, null, Zapper2); 
    191         Keyboard.Listen(Key.C, ButtonState.Down, Shoot2, null, Sidecannon1); 
    192         Keyboard.Listen(Key.C, ButtonState.Down, Shoot2, null, Sidecannon2); 
     193        Keyboard.Listen(Key.Space, ButtonState.Down, Shoot1, null, Zapper3); 
     194        Keyboard.Listen(Key.Space, ButtonState.Down, Shoot1, null, Zapper4); 
    193195        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    194196    } 
  • 2016/24/ArttuH/anythin/anythin/anythin/anythin.csproj.Debug.cachefile

    r7358 r7411  
    1 Content\rocket.xnb 
    21Content\RocketRocket.xnb 
    32Content\asteroid.xnb 
     3Content\Aaasteroid.xnb 
     4Content\rocket.xnb 
     5Content\Rocket2.xnb 
     6Content\aaaasteroid.xnb 
    47Content\aasteroid.xnb 
    5 Content\Aaasteroid.xnb 
    6 Content\aaaasteroid.xnb 
    7 Content\Rocket2.xnb 
  • 2016/24/ArttuH/anythin/anythin/anythin/obj/x86/Debug/ContentPipeline-{2BA92B91-4288-46A0-A639-6267FE61C00B}.xml

    r7358 r7411  
    22<XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 
    33  <Asset Type="Pipeline:BuildItemCollection"> 
    4     <Item> 
    5       <Source>rocket.png</Source> 
    6       <Name>rocket</Name> 
    7       <Importer>TextureImporter</Importer> 
    8       <Processor>TextureProcessor</Processor> 
    9       <Options>None</Options> 
    10       <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\rocket.xnb</Output> 
    11       <Time>2016-06-16T09:59:44.313561+03:00</Time> 
    12     </Item> 
    134    <Item> 
    145      <Source>RocketRocket.png</Source> 
     
    189      <Options>None</Options> 
    1910      <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\RocketRocket.xnb</Output> 
    20       <Time>2016-06-14T11:12:23.6249797+03:00</Time> 
     11      <Time>2016-06-17T09:21:02.3453571+03:00</Time> 
    2112    </Item> 
    2213    <Item> 
     
    2718      <Options>None</Options> 
    2819      <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\asteroid.xnb</Output> 
    29       <Time>2016-06-15T10:14:09.2116831+03:00</Time> 
     20      <Time>2016-06-17T09:21:02.5169582+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>Aaasteroid.png</Source> 
     24      <Name>Aaasteroid</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\Aaasteroid.xnb</Output> 
     29      <Time>2016-06-17T09:21:02.329757+03:00</Time> 
     30    </Item> 
     31    <Item> 
     32      <Source>rocket.png</Source> 
     33      <Name>rocket</Name> 
     34      <Importer>TextureImporter</Importer> 
     35      <Processor>TextureProcessor</Processor> 
     36      <Options>None</Options> 
     37      <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\rocket.xnb</Output> 
     38      <Time>2016-06-17T09:21:02.5013581+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>Rocket2.png</Source> 
     42      <Name>Rocket2</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\Rocket2.xnb</Output> 
     47      <Time>2016-06-17T09:21:02.5013581+03:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>aaaasteroid.png</Source> 
     51      <Name>aaaasteroid</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\aaaasteroid.xnb</Output> 
     56      <Time>2016-06-17T09:21:02.3453571+03:00</Time> 
    3057    </Item> 
    3158    <Item> 
     
    3663      <Options>None</Options> 
    3764      <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\aasteroid.xnb</Output> 
    38       <Time>2016-06-15T10:14:15.6078471+03:00</Time> 
    39     </Item> 
    40     <Item> 
    41       <Source>Aaasteroid.png</Source> 
    42       <Name>Aaasteroid</Name> 
    43       <Importer>TextureImporter</Importer> 
    44       <Processor>TextureProcessor</Processor> 
    45       <Options>None</Options> 
    46       <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\Aaasteroid.xnb</Output> 
    47       <Time>2016-06-15T10:14:23.4080471+03:00</Time> 
    48     </Item> 
    49     <Item> 
    50       <Source>aaaasteroid.png</Source> 
    51       <Name>aaaasteroid</Name> 
    52       <Importer>TextureImporter</Importer> 
    53       <Processor>TextureProcessor</Processor> 
    54       <Options>None</Options> 
    55       <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\aaaasteroid.xnb</Output> 
    56       <Time>2016-06-15T10:14:29.0241911+03:00</Time> 
    57     </Item> 
    58     <Item> 
    59       <Source>Rocket2.png</Source> 
    60       <Name>Rocket2</Name> 
    61       <Importer>TextureImporter</Importer> 
    62       <Processor>TextureProcessor</Processor> 
    63       <Options>None</Options> 
    64       <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\Rocket2.xnb</Output> 
    65       <Time>2016-06-16T10:47:35.069761+03:00</Time> 
     65      <Time>2016-06-17T09:21:02.5169582+03:00</Time> 
    6666    </Item> 
    6767    <BuildSuccessful>true</BuildSuccessful> 
     
    112112      <Assembly> 
    113113        <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> 
    114         <Value>2015-09-16T16:31:19.1463537+03:00</Value> 
     114        <Value>2015-09-16T18:42:48.0707288+03:00</Value> 
    115115      </Assembly> 
    116116    </Assemblies> 
  • 2016/24/ArttuH/anythin/anythin/anythin/obj/x86/Debug/cachefile-{2BA92B91-4288-46A0-A639-6267FE61C00B}-targetpath.txt

    r7358 r7411  
    1 Content\rocket.xnb 
    21Content\RocketRocket.xnb 
    32Content\asteroid.xnb 
     3Content\Aaasteroid.xnb 
     4Content\rocket.xnb 
     5Content\Rocket2.xnb 
     6Content\aaaasteroid.xnb 
    47Content\aasteroid.xnb 
    5 Content\Aaasteroid.xnb 
    6 Content\aaaasteroid.xnb 
    7 Content\Rocket2.xnb 
Note: See TracChangeset for help on using the changeset viewer.