Changeset 2977
- Timestamp:
- 2012-06-13 10:51:46 (9 years ago)
- Location:
- 2012/24/AnttoniS/Ufot/Ufot
- Files:
-
- 4 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/24/AnttoniS/Ufot/Ufot/Ufot/Ufot.cs
r2968 r2977 9 9 public class Ufot : PhysicsGame 10 10 { 11 PhysicsObject ukko;11 PhysicsObject vartalo; 12 12 PhysicsObject pää; 13 Image ukko = LoadImage("ukko"); 14 13 15 public override void Begin() 14 16 { … … 21 23 Wind = new Vector(80, 10); 22 24 23 ukko = new PhysicsObject(75, 150); 24 PlasmaCannon ase = new PlasmaCannon(80, 50); 25 ukko.Add(ase); 25 26 vartalo = new PhysicsObject(75, 150); 27 vartalo.Mass = (10000); 28 PlasmaCannon ase = new PlasmaCannon(30, 20); 29 vartalo.Add(ase); 30 ase.X = 20; 26 31 Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu", ase); 27 32 Mouse.IsCursorVisible = true; 28 33 Mouse.ListenMovement(0.1, KuunteleLiiketta, null); 29 ukko.X = -0.0;30 ukko.Y = -380;31 ukko.Color = Color.Beige;32 ukko.Shape = Shape.Ellipse;34 vartalo.X = -0.0; 35 vartalo.Y = -380; 36 vartalo.Color = Color.Beige; 37 vartalo.Shape = Shape.Ellipse; 33 38 Gravity = new Vector(0.0, -0.0); 34 ukko.Restitution = 1.0; 35 Add(ukko); 36 37 38 pää = new PhysicsObject(70, 70); 39 pää.Color = Color.Beige; 40 pää.X = -0.0; 41 pää.Y = -300; 42 pää.Shape = Shape.Circle; 43 Add(pää); 44 45 39 vartalo.Restitution = 1.0; 40 Add(vartalo); 41 vartalo.Image = ukko; 46 42 47 43 … … 52 48 void KuunteleLiiketta(AnalogState hiirenTila) 53 49 { 54 ukko.X = Mouse.PositionOnWorld.X; 55 pää.X = Mouse.PositionOnWorld.X; 50 vartalo.X = Mouse.PositionOnWorld.X; 56 51 } 57 52 … … 62 57 if (ammus != null) 63 58 { 64 ammus.Size *= 3;59 ammus.Size *= 1; 65 60 } 61 62 66 63 } 67 64 -
2012/24/AnttoniS/Ufot/Ufot/Ufot/obj/x86/Debug/ContentPipeline-{79138FA0-960A-4FD2-BC0E-B4BD422F72DE}.xml
r2968 r2977 2 2 <XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 3 3 <Asset Type="Pipeline:BuildItemCollection"> 4 <Item> 5 <Source>ukko.png</Source> 6 <Name>ukko</Name> 7 <Importer>TextureImporter</Importer> 8 <Processor>TextureProcessor</Processor> 9 <Options>None</Options> 10 <Output>C:\MyTemp\AnttoniS\Ufot\Ufot\Ufot\bin\x86\Debug\Content\ukko.xnb</Output> 11 <Time>2012-06-13T10:17:10.358499+03:00</Time> 12 </Item> 4 13 <BuildSuccessful>true</BuildSuccessful> 5 14 <Settings> … … 16 25 <Assemblies> 17 26 <Assembly> 27 <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\TextFileContentExtension.dll</Key> 28 <Value>2012-04-23T14:23:36+03:00</Value> 29 </Assembly> 30 <Assembly> 31 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 32 <Value>2011-09-01T17:22:30+03:00</Value> 33 </Assembly> 34 <Assembly> 35 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 36 <Value>2011-09-01T17:22:30+03:00</Value> 37 </Assembly> 38 <Assembly> 39 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 40 <Value>2011-09-01T17:22:30+03:00</Value> 41 </Assembly> 42 <Assembly> 43 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 44 <Value>2011-09-01T17:22:30+03:00</Value> 45 </Assembly> 46 <Assembly> 47 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 48 <Value>2011-09-01T17:22:30+03:00</Value> 49 </Assembly> 50 <Assembly> 51 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 52 <Value>2011-09-01T17:22:30+03:00</Value> 53 </Assembly> 54 <Assembly> 18 55 <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> 19 56 <Value>2012-03-16T14:30:47.6570912+02:00</Value> -
2012/24/AnttoniS/Ufot/Ufot/Ufot/obj/x86/Debug/Ufot.csproj.FileListAbsolute.txt
r2968 r2977 7 7 C:\MyTemp\AnttoniS\Ufot\Ufot\Ufot\obj\x86\Debug\Ufot.exe 8 8 C:\MyTemp\AnttoniS\Ufot\Ufot\Ufot\obj\x86\Debug\Ufot.pdb 9 C:\MyTemp\AnttoniS\Ufot\Ufot\Ufot\bin\x86\Debug\Content\ukko.xnb -
2012/24/AnttoniS/Ufot/Ufot/UfotContent/UfotContent.contentproj
r2968 r2977 44 44 <Reference Include="TextFileContentExtension" /> 45 45 </ItemGroup> 46 <ItemGroup> 47 <Compile Include="ukko.png"> 48 <Name>ukko</Name> 49 <Importer>TextureImporter</Importer> 50 <Processor>TextureProcessor</Processor> 51 </Compile> 52 </ItemGroup> 46 53 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 47 54 <!-- 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.