- Timestamp:
- 2014-11-15 14:55:34 (8 years ago)
- Location:
- 2014/koodauskerho/38/OttoR/Z_Game
- Files:
-
- 1 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/koodauskerho/38/OttoR/Z_Game/Z_Game/Z_Game/Z_Game.cs
r5761 r5770 105 105 { 106 106 pelaajan1Ase = new AssaultRifle(40, 35); 107 108 109 pelaaja1.Add(pelaajan1Ase); 110 107 pelaajan1Ase.FireRate = 99999; 108 109 pelaajan1Ase.Ammo.Value = 3; 110 pelaajan1Ase.InfiniteAmmo = false; 111 pelaajan1Ase. ProjectileCollision = AmmusOsui; 112 113 114 pelaaja1.Weapon = pelaajan1Ase; 115 pelaaja1.Weapon.Image = null; 116 pelaaja1.Weapon.Color = Color.Transparent; 117 118 Timer ajastin = new Timer(); 119 ajastin.Interval = 0.5; 120 ajastin.Timeout += delegate 121 { 122 pelaajan1Ase.Ammo.Value = 3; 123 }; 124 ajastin.Start(); 125 } 126 127 void AmmusOsui(PhysicsObject ammus, PhysicsObject kohde) 128 { 129 ammus.Destroy(); 111 130 } 112 131 … … 140 159 void AmmuAseella(AssaultRifle ase) 141 160 { 161 Timer.SingleShot(0.01, delegate { ammuaseellakulma(ase, Angle.FromDegrees(5.0)); }); 162 Timer.SingleShot(0.03, delegate { ammuaseellakulma(ase, Angle.FromDegrees(0.0)); }); 163 Timer.SingleShot(0.06, delegate { ammuaseellakulma(ase, Angle.FromDegrees(-5.0)); }); 164 165 } 166 167 void ammuaseellakulma(AssaultRifle ase, Angle kulma) 168 { 169 //ase.Angle = kulma; 170 171 ase.AbsoluteAngle = pelaaja1.FacingDirection.Angle + kulma; 142 172 PhysicsObject ammus = ase.Shoot(); 173 174 //ase.Angle = Angle.FromDegrees(0.0); 175 143 176 144 177 if (ammus != null) 145 178 { 146 179 ammus.Size *= 1; 147 //ammus.Image = ... 148 ammus.MaximumLifetime = TimeSpan.FromSeconds(10.0); 180 //ammus.Image = 181 ammus.MaximumLifetime = TimeSpan.FromSeconds(5.0); 182 149 183 } 150 } 151 152 184 //return ammus; 185 } 153 186 154 187 … … 162 195 Keyboard.Listen(Key.W, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 163 196 164 Keyboard.Listen(Key.Space, ButtonState. Down, AmmuAseella, "Ammu", pelaajan1Ase);197 Keyboard.Listen(Key.Space, ButtonState.Pressed, AmmuAseella, "Ammu", pelaajan1Ase); 165 198 166 199 -
2014/koodauskerho/38/OttoR/Z_Game/Z_Game/Z_Game/Z_Game.csproj.Debug.cachefile
r5737 r5770 2 2 Content\norsu.xnb 3 3 Content\tahti.xnb 4 Content\ kentta1.xnb4 Content\maa.xnb 5 5 Content\ruoho.xnb 6 Content\maa.xnb7 6 Content\Player3.xnb 8 7 Content\Player3juoksu1.xnb 9 8 Content\Player3juoksu2.xnb 9 Content\kentta1.xnb -
2014/koodauskerho/38/OttoR/Z_Game/Z_Game/Z_Game/obj/x86/Debug/ContentPipeline-{ABA5B0B1-2E94-4679-923C-981499C2D96C}.xml
r5761 r5770 8 8 <Processor>SoundEffectProcessor</Processor> 9 9 <Options>None</Options> 10 <Output>C:\MyTemp\OttoR olig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\maali.xnb</Output>11 <Time>2014- 09-20T11:54:14.539772+03:00</Time>10 <Output>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\maali.xnb</Output> 11 <Time>2014-11-15T10:23:41.9302511+02:00</Time> 12 12 </Item> 13 13 <Item> … … 17 17 <Processor>TextureProcessor</Processor> 18 18 <Options>None</Options> 19 <Output>C:\MyTemp\OttoR olig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\norsu.xnb</Output>20 <Time>2014- 09-20T11:54:14.5407721+03:00</Time>19 <Output>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\norsu.xnb</Output> 20 <Time>2014-11-15T10:23:42.0082511+02:00</Time> 21 21 </Item> 22 22 <Item> … … 26 26 <Processor>TextureProcessor</Processor> 27 27 <Options>None</Options> 28 <Output>C:\MyTemp\OttoRolig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\tahti.xnb</Output> 29 <Time>2014-09-20T11:54:14.5417722+03:00</Time> 28 <Output>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\tahti.xnb</Output> 29 <Time>2014-11-15T10:23:42.0394511+02:00</Time> 30 </Item> 31 <Item> 32 <Source>maa.png</Source> 33 <Name>maa</Name> 34 <Importer>TextureImporter</Importer> 35 <Processor>TextureProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\maa.xnb</Output> 38 <Time>2014-11-15T10:23:41.9302511+02:00</Time> 39 </Item> 40 <Item> 41 <Source>ruoho.png</Source> 42 <Name>ruoho</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\ruoho.xnb</Output> 47 <Time>2014-11-15T10:23:41.9302511+02:00</Time> 48 </Item> 49 <Item> 50 <Source>Player3.png</Source> 51 <Name>Player3</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\Player3.xnb</Output> 56 <Time>2014-11-15T10:23:41.9458511+02:00</Time> 57 </Item> 58 <Item> 59 <Source>Player3juoksu1.png</Source> 60 <Name>Player3juoksu1</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\Player3juoksu1.xnb</Output> 65 <Time>2014-11-15T10:23:41.9458511+02:00</Time> 66 </Item> 67 <Item> 68 <Source>Player3juoksu2.png</Source> 69 <Name>Player3juoksu2</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\Player3juoksu2.xnb</Output> 74 <Time>2014-11-15T10:23:41.9458511+02:00</Time> 30 75 </Item> 31 76 <Item> … … 35 80 <Processor>TextFileContentProcessor</Processor> 36 81 <Options>None</Options> 37 <Output>C:\MyTemp\OttoRolig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\kentta1.xnb</Output> 38 <Time>2014-10-18T13:22:26.2553109+03:00</Time> 39 </Item> 40 <Item> 41 <Source>ruoho.png</Source> 42 <Name>ruoho</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\OttoRolig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\ruoho.xnb</Output> 47 <Time>2014-09-20T12:37:53.9505191+03:00</Time> 48 </Item> 49 <Item> 50 <Source>maa.png</Source> 51 <Name>maa</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\OttoRolig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\maa.xnb</Output> 56 <Time>2014-09-20T12:35:21.9763889+03:00</Time> 57 </Item> 58 <Item> 59 <Source>Player3.png</Source> 60 <Name>Player3</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\OttoRolig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\Player3.xnb</Output> 65 <Time>2014-09-20T13:17:38.9223793+03:00</Time> 66 </Item> 67 <Item> 68 <Source>Player3juoksu1.png</Source> 69 <Name>Player3juoksu1</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\OttoRolig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\Player3juoksu1.xnb</Output> 74 <Time>2014-09-20T13:18:16.6746505+03:00</Time> 75 </Item> 76 <Item> 77 <Source>Player3juoksu2.png</Source> 78 <Name>Player3juoksu2</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\OttoRolig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\Player3juoksu2.xnb</Output> 83 <Time>2014-09-20T13:18:22.3045127+03:00</Time> 82 <Output>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\kentta1.xnb</Output> 83 <Time>2014-11-15T10:23:41.9458511+02:00</Time> 84 84 </Item> 85 85 <BuildSuccessful>true</BuildSuccessful> … … 90 90 <BuildConfiguration>Debug</BuildConfiguration> 91 91 <CompressContent>false</CompressContent> 92 <RootDirectory>C:\MyTemp\OttoR olig\Z_Game\Z_Game\Z_GameContent\</RootDirectory>93 <LoggerRootDirectory>C:\MyTemp\OttoR olig\Z_Game\Z_Game\Z_Game\</LoggerRootDirectory>94 <IntermediateDirectory>C:\MyTemp\OttoR olig\Z_Game\Z_Game\Z_Game\obj\x86\Debug\</IntermediateDirectory>95 <OutputDirectory>C:\MyTemp\OttoR olig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\</OutputDirectory>92 <RootDirectory>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_GameContent\</RootDirectory> 93 <LoggerRootDirectory>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\</LoggerRootDirectory> 94 <IntermediateDirectory>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\obj\x86\Debug\</IntermediateDirectory> 95 <OutputDirectory>C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\</OutputDirectory> 96 96 </Settings> 97 97 <Assemblies> … … 130 130 <Assembly> 131 131 <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> 132 <Value>201 2-07-09T09:56:07.3404899+03:00</Value>132 <Value>2014-04-23T00:30:18.4504836+03:00</Value> 133 133 </Assembly> 134 134 </Assemblies> -
2014/koodauskerho/38/OttoR/Z_Game/Z_Game/Z_Game/obj/x86/Debug/Z_Game.csproj.FileListAbsolute.txt
r5761 r5770 16 16 C:\MyTemp\OttoRolig\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\Player3juoksu2.xnb 17 17 C:\MyTemp\OttoRolig\Z_Game\Z_Game\Z_Game\obj\x86\Debug\Z_Game.csprojResolveAssemblyReference.cache 18 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\maali.xnb 19 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\norsu.xnb 20 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\tahti.xnb 21 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\maa.xnb 22 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\ruoho.xnb 23 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\Player3.xnb 24 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\Player3juoksu1.xnb 25 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\Player3juoksu2.xnb 26 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Content\kentta1.xnb 27 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Z_Game.exe 28 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Z_Game.pdb 29 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Jypeli.dll 30 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\bin\x86\Debug\Jypeli.xml 31 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\obj\x86\Debug\Z_Game.csprojResolveAssemblyReference.cache 32 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 33 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\obj\x86\Debug\Z_Game.exe 34 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_Game\obj\x86\Debug\Z_Game.pdb -
2014/koodauskerho/38/OttoR/Z_Game/Z_Game/Z_Game/obj/x86/Debug/cachefile-{ABA5B0B1-2E94-4679-923C-981499C2D96C}-targetpath.txt
r5737 r5770 2 2 Content\norsu.xnb 3 3 Content\tahti.xnb 4 Content\ kentta1.xnb4 Content\maa.xnb 5 5 Content\ruoho.xnb 6 Content\maa.xnb7 6 Content\Player3.xnb 8 7 Content\Player3juoksu1.xnb 9 8 Content\Player3juoksu2.xnb 9 Content\kentta1.xnb -
2014/koodauskerho/38/OttoR/Z_Game/Z_Game/Z_GameContent/Z_GameContent.contentproj
r5737 r5770 102 102 </Compile> 103 103 </ItemGroup> 104 <ItemGroup> 105 <Compile Include="Tikkaat.png"> 106 <Name>Tikkaat</Name> 107 <Importer>TextureImporter</Importer> 108 <Processor>TextureProcessor</Processor> 109 </Compile> 110 </ItemGroup> 104 111 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 105 112 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2014/koodauskerho/38/OttoR/Z_Game/Z_Game/Z_GameContent/obj/x86/Debug/Z_GameContent.contentproj.FileListAbsolute.txt
r5737 r5770 1 1 C:\MyTemp\OttoRolig\Z_Game\Z_Game\Z_GameContent\obj\x86\Debug\Z_GameContent.contentprojResolveAssemblyReference.cache 2 C:\MyTemp\OttoR\Z_Game\Z_Game\Z_GameContent\obj\x86\Debug\Z_GameContent.contentprojResolveAssemblyReference.cache
Note: See TracChangeset
for help on using the changeset viewer.