Changeset 7411
- Timestamp:
- 2016-06-17 10:43:15 (7 years ago)
- Location:
- 2016/24/ArttuH/anythin
- Files:
-
- 2 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/24/ArttuH/anythin/anythin/anythin/anythin.cs
r7374 r7411 13 13 LaserGun Zapper1; 14 14 LaserGun Zapper2; 15 PlasmaCannon Sidecannon1;16 PlasmaCannon Sidecannon2;15 LaserGun Zapper3; 16 LaserGun Zapper4; 17 17 Image playerim = LoadImage("rocket2"); 18 18 Image Asteroid10 = LoadImage("asteroid"); … … 49 49 Player1.Shape = Shape.Circle; 50 50 Add(Player1); 51 AddCollisionHandler(Player1, Something); 51 52 52 53 //Creating Guns … … 66 67 Zapper1.Image = null; 67 68 Zapper1.FireRate = 1.0; 68 Zapper1.Angle += Angle.FromDegrees( 10);69 Zapper1.Angle += Angle.FromDegrees(5); 69 70 Player1.Add(Zapper1); 70 71 //Laser 3 … … 75 76 Zapper2.Image = null; 76 77 Zapper2.FireRate = 1.0; 77 Zapper2.Angle += Angle.FromDegrees(- 10);78 Zapper2.Angle += Angle.FromDegrees(-5); 78 79 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 97 99 } 98 100 void Hits(PhysicsObject Laser, PhysicsObject Target) … … 102 104 Killer.Value += 1; 103 105 } 104 void Cannonhits(PhysicsObject Plasma, PhysicsObject Target) 105 { //Plasmacannon hit detection106 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"); 109 111 } 110 112 void Assets() … … 189 191 Keyboard.Listen(Key.Space, ButtonState.Down, Shoot1, null, Zapper1); 190 192 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); 193 195 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 194 196 } -
2016/24/ArttuH/anythin/anythin/anythin/anythin.csproj.Debug.cachefile
r7358 r7411 1 Content\rocket.xnb2 1 Content\RocketRocket.xnb 3 2 Content\asteroid.xnb 3 Content\Aaasteroid.xnb 4 Content\rocket.xnb 5 Content\Rocket2.xnb 6 Content\aaaasteroid.xnb 4 7 Content\aasteroid.xnb 5 Content\Aaasteroid.xnb6 Content\aaaasteroid.xnb7 Content\Rocket2.xnb -
2016/24/ArttuH/anythin/anythin/anythin/obj/x86/Debug/ContentPipeline-{2BA92B91-4288-46A0-A639-6267FE61C00B}.xml
r7358 r7411 2 2 <XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 3 3 <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>13 4 <Item> 14 5 <Source>RocketRocket.png</Source> … … 18 9 <Options>None</Options> 19 10 <Output>C:\MyTemp\ArttuH\anythin\anythin\anythin\bin\x86\Debug\Content\RocketRocket.xnb</Output> 20 <Time>2016-06-1 4T11:12:23.6249797+03:00</Time>11 <Time>2016-06-17T09:21:02.3453571+03:00</Time> 21 12 </Item> 22 13 <Item> … … 27 18 <Options>None</Options> 28 19 <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> 30 57 </Item> 31 58 <Item> … … 36 63 <Options>None</Options> 37 64 <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> 66 66 </Item> 67 67 <BuildSuccessful>true</BuildSuccessful> … … 112 112 <Assembly> 113 113 <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-16T1 6:31:19.1463537+03:00</Value>114 <Value>2015-09-16T18:42:48.0707288+03:00</Value> 115 115 </Assembly> 116 116 </Assemblies> -
2016/24/ArttuH/anythin/anythin/anythin/obj/x86/Debug/cachefile-{2BA92B91-4288-46A0-A639-6267FE61C00B}-targetpath.txt
r7358 r7411 1 Content\rocket.xnb2 1 Content\RocketRocket.xnb 3 2 Content\asteroid.xnb 3 Content\Aaasteroid.xnb 4 Content\rocket.xnb 5 Content\Rocket2.xnb 6 Content\aaaasteroid.xnb 4 7 Content\aasteroid.xnb 5 Content\Aaasteroid.xnb6 Content\aaaasteroid.xnb7 Content\Rocket2.xnb
Note: See TracChangeset
for help on using the changeset viewer.