Changeset 9177
- Timestamp:
- 2017-07-27 14:55:41 (4 years ago)
- Location:
- 2017/utsjoki/WaltteriK/FysiikkaPeli5
- Files:
-
- 14 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/utsjoki/WaltteriK/FysiikkaPeli5/FysiikkaPeli5/FysiikkaPeli5/FysiikkaPeli5.cs
r9135 r9177 9 9 public class FysiikkaPeli5 : PhysicsGame 10 10 { 11 AssaultRifle pelaajan1Ase; 12 Image ammuu = LoadImage("New Piskel (6)"); 13 Image tausta = LoadImage("saniktausta"); 11 14 PhysicsObject sanik; 15 PhysicsObject stails; 12 16 public override void Begin() 13 17 { 14 18 luosanik(); 19 Grenade kranaatti = new Grenade(4.0); 15 20 LisääOhjaimet(); 21 Level.Background.Image = tausta; 22 luokenttä(); 23 24 25 Level.Background.Width = Screen.Width * 15; 26 Level.Background.Height = Screen.Height * 15; 27 SmoothTextures = false; 28 29 16 30 17 31 // TODO: Kirjoita ohjelmakoodisi tähän … … 22 36 void luosanik() 23 37 { 24 sanik = new PhysicsObject( 40.0, 40.0);38 sanik = new PhysicsObject(200.0, 200.0); 25 39 sanik.Shape = Shape.Circle; 26 40 sanik.Color = Color.Blue; 27 41 sanik.X = 0.0; 28 sanik.Y = 0.0; 42 sanik.Y = 0.0; 29 43 sanik.Restitution = 1.0; 30 44 Add(sanik); 31 sanik.Image = LoadImage("sanik"); 45 sanik.Image = LoadImage("New Piskel (3) (1)"); 46 Camera.FollowedObject = sanik; 47 48 pelaajan1Ase = new AssaultRifle(30, 10); 49 pelaajan1Ase.ProjectileCollision = AmmusOsui; 50 sanik.Add(pelaajan1Ase); 32 51 } 33 52 void LisääOhjaimet() … … 40 59 41 60 61 Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu", pelaajan1Ase); 62 63 64 65 42 66 43 67 … … 47 71 sanik.Push(suunta); 48 72 } 73 74 void luostails(double x, double y) 75 { 76 77 78 } 79 void luokenttä() 80 { 81 82 { 83 84 } 85 } 86 void AmmusOsui(PhysicsObject ammus, PhysicsObject kohde) 87 { 88 89 } 90 void AmmuAseella(AssaultRifle ase) 91 { 92 PhysicsObject ammus = ase.Shoot(); 93 94 pelaajan1Ase.FireRate = 100; 95 96 97 98 if (ammus != null) 99 { //ammus.Size *= 3; 100 //ammus.Image = ... 101 //ammus.MaximumLifetime = TimeSpan.FromSeconds(2.0);} 102 } 103 } 104 void AmmuAseella(PlatformCharacter pelaaja) 105 { 106 PhysicsObject ammus = pelaaja.Weapon.Shoot(); 107 108 if (ammus != null) 109 110 111 { 112 } 113 } 114 void Tahtaa(AnalogState hiirenLiike) 115 { 116 Mouse.ListenMovement(0.1, Tahtaa, "Tähtää aseella"); 117 Vector suunta = (Mouse.PositionOnWorld - sanik.AbsolutePosition).Normalize(); 118 } 119 120 49 121 } 50 122 -
2017/utsjoki/WaltteriK/FysiikkaPeli5/FysiikkaPeli5/FysiikkaPeli5/FysiikkaPeli5.csproj.Debug.cachefile
r9135 r9177 1 1 Content\sanik.xnb 2 2 Content\kassa (1).xnb 3 Content\New Piskel (3).xnb 4 Content\saniktausta.xnb 5 Content\New Piskel (4).xnb 6 Content\New Piskel (5).xnb 7 Content\New Piskel (6).xnb 8 Content\New Piskel (3) (1).xnb 9 Content\posu.xnb -
2017/utsjoki/WaltteriK/FysiikkaPeli5/FysiikkaPeli5/FysiikkaPeli5/obj/x86/Debug/ContentPipeline-{1D4A4FDF-6252-431E-BB3F-EE7A11EA7642}.xml
r9135 r9177 19 19 <Output>C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\kassa (1).xnb</Output> 20 20 <Time>2017-07-26T14:45:39.1391277+03:00</Time> 21 </Item> 22 <Item> 23 <Source>New Piskel (3).png</Source> 24 <Name>New Piskel (3)</Name> 25 <Importer>TextureImporter</Importer> 26 <Processor>TextureProcessor</Processor> 27 <Options>None</Options> 28 <Output>C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\New Piskel (3).xnb</Output> 29 <Time>2017-07-27T09:34:05.511608+03:00</Time> 30 </Item> 31 <Item> 32 <Source>saniktausta.jpg</Source> 33 <Name>saniktausta</Name> 34 <Importer>TextureImporter</Importer> 35 <Processor>TextureProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\saniktausta.xnb</Output> 38 <Time>2017-07-27T10:02:19.1757825+03:00</Time> 39 </Item> 40 <Item> 41 <Source>New Piskel (4).png</Source> 42 <Name>New Piskel (4)</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\New Piskel (4).xnb</Output> 47 <Time>2017-07-27T10:26:28.6644785+03:00</Time> 48 </Item> 49 <Item> 50 <Source>New Piskel (5).png</Source> 51 <Name>New Piskel (5)</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\New Piskel (5).xnb</Output> 56 <Time>2017-07-27T12:34:00.4243718+03:00</Time> 57 </Item> 58 <Item> 59 <Source>New Piskel (6).png</Source> 60 <Name>New Piskel (6)</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\New Piskel (6).xnb</Output> 65 <Time>2017-07-27T12:36:49.7196265+03:00</Time> 66 </Item> 67 <Item> 68 <Source>New Piskel (3) (1).png</Source> 69 <Name>New Piskel (3) (1)</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\New Piskel (3) (1).xnb</Output> 74 <Time>2017-07-27T14:05:55.3077404+03:00</Time> 75 </Item> 76 <Item> 77 <Source>posu.jpg</Source> 78 <Name>posu</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\posu.xnb</Output> 83 <Time>2017-07-27T14:36:17.3978659+03:00</Time> 21 84 </Item> 22 85 <BuildSuccessful>true</BuildSuccessful> -
2017/utsjoki/WaltteriK/FysiikkaPeli5/FysiikkaPeli5/FysiikkaPeli5/obj/x86/Debug/FysiikkaPeli5.csproj.FileListAbsolute.txt
r9135 r9177 9 9 C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\sanik.xnb 10 10 C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\kassa (1).xnb 11 C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\New Piskel (3).xnb 12 C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\saniktausta.xnb 13 C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\New Piskel (4).xnb 14 C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\New Piskel (5).xnb 15 C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\New Piskel (6).xnb 16 C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\New Piskel (3) (1).xnb 17 C:\MyTemp\FysiikkaPeli5\FysiikkaPeli5\FysiikkaPeli5\bin\x86\Debug\Content\posu.xnb -
2017/utsjoki/WaltteriK/FysiikkaPeli5/FysiikkaPeli5/FysiikkaPeli5/obj/x86/Debug/cachefile-{1D4A4FDF-6252-431E-BB3F-EE7A11EA7642}-targetpath.txt
r9135 r9177 1 1 Content\sanik.xnb 2 2 Content\kassa (1).xnb 3 Content\New Piskel (3).xnb 4 Content\saniktausta.xnb 5 Content\New Piskel (4).xnb 6 Content\New Piskel (5).xnb 7 Content\New Piskel (6).xnb 8 Content\New Piskel (3) (1).xnb 9 Content\posu.xnb -
2017/utsjoki/WaltteriK/FysiikkaPeli5/FysiikkaPeli5/FysiikkaPeli5Content/FysiikkaPeli5Content.contentproj
r9135 r9177 59 59 </Compile> 60 60 </ItemGroup> 61 <ItemGroup> 62 <Compile Include="New Piskel %283%29.png"> 63 <Name>New Piskel %283%29</Name> 64 <Importer>TextureImporter</Importer> 65 <Processor>TextureProcessor</Processor> 66 </Compile> 67 </ItemGroup> 68 <ItemGroup> 69 <Compile Include="saniktausta.jpg"> 70 <Name>saniktausta</Name> 71 <Importer>TextureImporter</Importer> 72 <Processor>TextureProcessor</Processor> 73 </Compile> 74 </ItemGroup> 75 <ItemGroup> 76 <Compile Include="New Piskel %284%29.png"> 77 <Name>New Piskel %284%29</Name> 78 <Importer>TextureImporter</Importer> 79 <Processor>TextureProcessor</Processor> 80 </Compile> 81 </ItemGroup> 82 <ItemGroup> 83 <Compile Include="New Piskel %285%29.png"> 84 <Name>New Piskel %285%29</Name> 85 <Importer>TextureImporter</Importer> 86 <Processor>TextureProcessor</Processor> 87 </Compile> 88 </ItemGroup> 89 <ItemGroup> 90 <Compile Include="New Piskel %286%29.png"> 91 <Name>New Piskel %286%29</Name> 92 <Importer>TextureImporter</Importer> 93 <Processor>TextureProcessor</Processor> 94 </Compile> 95 </ItemGroup> 96 <ItemGroup> 97 <Compile Include="New Piskel %283%29 %281%29.png"> 98 <Name>New Piskel %283%29 %281%29</Name> 99 <Importer>TextureImporter</Importer> 100 <Processor>TextureProcessor</Processor> 101 </Compile> 102 </ItemGroup> 103 <ItemGroup> 104 <Compile Include="posu.jpg"> 105 <Name>posu</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 </Compile> 109 </ItemGroup> 61 110 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 62 111 <!-- 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.