Changeset 1467
- Timestamp:
- 2010-07-30 13:05:37 (13 years ago)
- Location:
- 2010/30/jyniinin
- Files:
-
- 7 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/30/jyniinin/SeppoPeli/Content/Content.contentproj
r1413 r1467 54 54 </Compile> 55 55 </ItemGroup> 56 <ItemGroup> 57 <Compile Include="sepoo2.png"> 58 <Name>sepoo2</Name> 59 <Importer>TextureImporter</Importer> 60 <Processor>TextureProcessor</Processor> 61 </Compile> 62 </ItemGroup> 63 <ItemGroup> 64 <Compile Include="sepoo.png"> 65 <Name>sepoo</Name> 66 <Importer>TextureImporter</Importer> 67 <Processor>TextureProcessor</Processor> 68 </Compile> 69 </ItemGroup> 56 70 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 57 71 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2010/30/jyniinin/SeppoPeli/Peli.cs
r1434 r1467 14 14 PlatformCharacter Seppo; 15 15 PlatformCharacter AntiSeppo; 16 PhysicsObject taso; 16 17 17 18 … … 21 22 Gravity = new Vector(0, -1000); 22 23 23 24 Camera.ZoomToLevel(0.5); 24 25 25 26 luoKentta(); … … 31 32 32 33 } 34 33 35 34 36 void luoKentta() … … 44 46 45 47 48 PhysicsObject taso = PhysicsObject.CreateStaticObject(150, 20); 49 taso.Color = Color.Green; 50 taso.X = -50; 51 taso.Y = 0; 52 taso.AngularVelocity = 9.0; 53 54 55 Add(taso); 56 57 46 58 47 59 lisaaTaso(-200, -200); 48 60 lisaaTaso(100, -200); 49 lisaaTaso(100, 200); 61 lisaaTaso(100, 200); 50 62 lisaaTaso(-200, 200); 51 lisaaTaso(-50, 0); 63 lisaaTaso(-400, 0); 64 lisaaTaso(400, 0); 65 lisaaTaso(-50, -300); 66 lisaaTaso(-50, 300); 67 68 52 69 53 70 … … 68 85 void lisaaPelaajat() 69 86 { 70 Seppo = new PlatformCharacter( 30,60);87 Seppo = new PlatformCharacter(110,100); 71 88 Seppo.Mass = 4.0; 72 Seppo.Image = LoadImage(" Seppo");89 Seppo.Image = LoadImage("sepoo"); 73 90 Seppo.X = -200; 74 91 Seppo.Y = 120; … … 79 96 80 97 81 AntiSeppo = new PlatformCharacter( 30,60);98 AntiSeppo = new PlatformCharacter(100,100); 82 99 AntiSeppo.Mass = 4.0; 83 AntiSeppo.Image = LoadImage(" Seppo2");100 AntiSeppo.Image = LoadImage("sepoo2"); 84 101 AntiSeppo.X = 100; 85 102 AntiSeppo.Y = 120; … … 108 125 ControllerOne.Listen(Button.RightStick, ButtonState.Down, seppotelettaa, ""); 109 126 ControllerOne.Listen(Button.RightShoulder, ButtonState.Down, muhahaa, ""); 127 ControllerOne.Listen(Button.DPadDown, ButtonState.Down, rajahdys8, ""); 110 128 111 129 … … 132 150 ControllerTwo.Listen(Button.LeftShoulder, ButtonState.Pressed, poisto, ""); 133 151 134 ControllerOne.Listen(Button.LeftStick, ButtonState. Down, tuomio, "");135 ControllerTwo.Listen(Button.LeftStick, ButtonState. Down, tuomio, "");152 ControllerOne.Listen(Button.LeftStick, ButtonState.Pressed, tuomio, ""); 153 ControllerTwo.Listen(Button.LeftStick, ButtonState.Pressed, tuomio, ""); 136 154 137 155 … … 180 198 Add(rajahdys); 181 199 rajahdys.Speed = 500.0; 182 rajahdys.Force = 2 00;200 rajahdys.Force = 250; 183 201 ControllerOne.Vibrate(99, 99, 99, 99, 0.1); 184 202 … … 193 211 Add(rajahdys); 194 212 rajahdys.Speed = 500.0; 195 rajahdys.Force = 2 00;213 rajahdys.Force = 250; 196 214 ControllerTwo.Vibrate(99, 99, 99, 99, 0.1); 197 215 } … … 318 336 void tuomio() 319 337 { 320 Grenade kranaatti = new Grenade(2 00.0);338 Grenade kranaatti = new Grenade(250.0); 321 339 kranaatti.Position = RandomGen.NextVector(Level.Right, Level.Bottom, Level.Left, Level.Top); 322 340 kranaatti.ExplosionForce = 9999999999999999999; … … 331 349 } 332 350 351 352 void rajahdys8() 353 { 354 Explosion rajahdys = new Explosion(500.00); 355 rajahdys.Position = AntiSeppo.Position; 356 Add(rajahdys); 357 rajahdys.Speed = 1000.0; 358 rajahdys.Force = 8000; 359 ControllerTwo.Vibrate(99, 99, 99, 99, 0.1); 360 } 361 } 362 363 333 364 334 } 335 336 337 338 339 340 365 366 367
Note: See TracChangeset
for help on using the changeset viewer.