Changeset 2199
- Timestamp:
- 2011-06-28 11:02:06 (12 years ago)
- Location:
- 2011/26/JaniN
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JaniN/neon wars/neon wars/neon wars/Peli.cs
r2166 r2199 14 14 { 15 15 PhysicsObject Ihansama; 16 PhysicsObject pyssy;16 GameObject pyssy; 17 17 18 18 19 19 public override void Begin() 20 20 { 21 21 aseta_näppäimet(); 22 22 Mouse.IsCursorVisible = true; 23 23 … … 27 27 Add(Ihansama); 28 28 29 pyssy = new PhysicsObject (15, 80);29 pyssy = new GameObject(200, 15); 30 30 pyssy.Color = Color.Black; 31 pyssy.Position = new Vector(Ihansama.Position.X, Ihansama.Position.Y+pyssy.Height/2);32 pyssy.Mass = 0.001;33 Add(pyssy);31 Ihansama.Add(pyssy); 32 //pyssy.Position = new Vector(Ihansama.Position.X, Ihansama.Position.Y+pyssy.Height/2); 33 //Add(pyssy); 34 34 35 HingeJoint liitos = PhysicsGame.CreateHingeJoint(Ihansama, pyssy, Ihansama.Position);36 Add(liitos);37 35 //HingeJoint liitos = PhysicsGame.CreateHingeJoint(Ihansama, pyssy, Ihansama.Position); 36 //Add(liitos); 37 pyssy.Image = LoadImage("Untitled"); 38 38 // Gravity = new Vector(0, -1000); 39 39 Level.CreateBorders(); 40 40 } 41 41 42 43 void aseta_näppäimet() 44 { 45 Mouse.Listen(MouseButton.Left, ButtonState.Down, ampuu, null); 46 } 47 48 49 50 42 51 protected override void Update(Time time) 43 52 { … … 49 58 base.Update(time); 50 59 } 60 61 void ampuu() 62 { 63 PhysicsObject ammus = new PhysicsObject(5, 5); 64 65 Add(ammus); 66 ammus.Position = Ihansama.Position; 67 } 51 68 } -
2011/26/JaniN/neon wars/neon wars/neon warsContent/neon warsContent.contentproj
r2166 r2199 42 42 </Reference> 43 43 </ItemGroup> 44 <ItemGroup> 45 <Compile Include="Untitled.png"> 46 <Name>Untitled</Name> 47 <Importer>TextureImporter</Importer> 48 <Processor>TextureProcessor</Processor> 49 </Compile> 50 </ItemGroup> 44 51 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 45 52 <!-- 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.