Changeset 7717 for 2016/27/OskariL/Pong/Pong
- Timestamp:
- 2016-07-04 14:54:28 (7 years ago)
- Location:
- 2016/27/OskariL/Pong/Pong
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/27/OskariL/Pong/Pong/Pong/Pong.cs
r7701 r7717 9 9 public class Pong : PhysicsGame 10 10 { 11 ExplosionSystem rajahtaa = new ExplosionSystem(LoadImage("Pulla"), 200); 12 11 13 Vector nopeusYlos = new Vector(0, 650); 12 14 Vector nopeusAlas = new Vector(0, -650); … … 23 25 24 26 Boolean hasGameEnded = false; 27 Boolean hasRajahtanyt = false; 25 28 26 29 DoubleMeter alaspainLaskuri; … … 156 159 { 157 160 pelaajan1Pisteet.Value += 1; 158 Explosion rajahdys = new Explosion(200); 159 rajahdys.Position = pallo.Position; 160 Add(rajahdys); 161 Rajahdys(); 161 162 } 162 163 else if (kohde == vasenReuna) 163 164 { 164 165 pelaajan2Pisteet.Value += 1; 165 Explosion rajahdys = new Explosion(200); 166 rajahdys.Position = pallo.Position; 167 Add(rajahdys); 166 Rajahdys(); 167 //TODO: tee erillinen räjähdys Putineista 168 168 } 169 169 if (pelaajan1Pisteet == 10) … … 171 171 MessageDisplay.Add("Pelaaja 1 voittaa"); 172 172 LuoAikaLaskuri(); 173 Rajahdys(); 173 174 } 174 175 else if (pelaajan2Pisteet == 10) … … 176 177 MessageDisplay.Add("Pelaaja 2 voittaa"); 177 178 LuoAikaLaskuri(); 179 Rajahdys(); 180 //TODO: tee erillinen räjähdys Putineista 181 178 182 } 179 183 } … … 211 215 base.Update(time); 212 216 } 213 217 void Rajahdys() 218 { 219 if (hasRajahtanyt == false) 220 { 221 hasRajahtanyt = true; 222 Add(rajahtaa); 223 } 224 double x = 0; 225 double y = 0; 226 int pMaara = 200; 227 rajahtaa.AddEffect(x, y, pMaara); 228 } 214 229 } -
2016/27/OskariL/Pong/Pong/Pong/obj/x86/Debug/ContentPipeline-{BFDFC922-70FE-421D-A674-E0C408BE6EAF}.xml
r7699 r7717 2 2 <XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 3 3 <Asset Type="Pipeline:BuildItemCollection"> 4 <Item> 5 <Source>Pulla.png</Source> 6 <Name>Pulla</Name> 7 <Importer>TextureImporter</Importer> 8 <Processor>TextureProcessor</Processor> 9 <Options>None</Options> 10 <Output>C:\MyTemp\OskariL\Pong\Pong\Pong\bin\x86\Debug\Content\Pulla.xnb</Output> 11 <Time>2016-07-04T14:24:56.5987405+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>2015-02-09T20:18:44+02: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-01T16: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-01T16: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-01T16: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-01T16: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-01T16: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-01T16:22:30+03:00</Value> 53 </Assembly> 54 <Assembly> 55 <Key>C:\Program Files (x86)\Jypeli\lib\ContentExtensions\AnimationExtension.dll</Key> 56 <Value>2015-02-17T22:27:18+02:00</Value> 57 </Assembly> 58 <Assembly> 18 59 <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 60 <Value>2015-09-16T18:36:58.6261942+03:00</Value> -
2016/27/OskariL/Pong/Pong/Pong/obj/x86/Debug/Pong.csproj.FileListAbsolute.txt
r7699 r7717 7 7 C:\MyTemp\OskariL\Pong\Pong\Pong\obj\x86\Debug\Pong.exe 8 8 C:\MyTemp\OskariL\Pong\Pong\Pong\obj\x86\Debug\Pong.pdb 9 C:\MyTemp\OskariL\Pong\Pong\Pong\bin\x86\Debug\Content\Pulla.xnb -
2016/27/OskariL/Pong/Pong/PongContent/PongContent.contentproj
r7699 r7717 45 45 <Reference Include="AnimationExtension" /> 46 46 </ItemGroup> 47 <ItemGroup> 48 <Compile Include="Pulla.png"> 49 <Name>Pulla</Name> 50 <Importer>TextureImporter</Importer> 51 <Processor>TextureProcessor</Processor> 52 </Compile> 53 </ItemGroup> 47 54 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 48 55 <!-- 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.