- Timestamp:
- 2016-06-27 14:57:34 (7 years ago)
- Location:
- 2016/26/SallaK
- Files:
-
- 10 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/26/SallaK/Pingpong/Pingpong/Pingpong/Pingpong.cs
r7513 r7531 17 17 PhysicsObject maila2; 18 18 19 PhysicsObject vasenReuna; 20 PhysicsObject oikeaReuna; 21 19 22 IntMeter pelaajan1Pisteet; 20 23 IntMeter pelaajan2Pisteet; 24 25 Image taustakuva = LoadImage("tausta"); 21 26 22 27 public override void Begin() … … 42 47 43 48 maila1 = LuoMaila(Level.Left + 20.0, 0.0); 49 maila1.Color = Color.Cyan; 50 44 51 maila2 = LuoMaila(Level.Right - 20.0, 0.0); 52 maila2.Color = Color.Magenta; 45 53 46 PhysicsObjectvasenReuna = Level.CreateLeftBorder();54 vasenReuna = Level.CreateLeftBorder(); 47 55 vasenReuna.Restitution = 1.0; 48 56 vasenReuna.IsVisible = false; 49 57 50 PhysicsObjectoikeaReuna = Level.CreateRightBorder();58 oikeaReuna = Level.CreateRightBorder(); 51 59 oikeaReuna.Restitution = 1.0; 52 60 oikeaReuna.IsVisible = false; … … 60 68 yläReuna.IsVisible = false; 61 69 70 GameObject taustakuva 62 71 Level.Background.Color = Color.Black; 63 72 Level.Background.Image = taustakuva; 64 73 Camera.ZoomToLevel(); 65 74 } … … 67 76 void AloitaPeli() 68 77 { 69 Vector impulssi = new Vector(500.0, 0.0);78 Vector impulssi = new Vector(500.0, 600.0); 70 79 pallo.Hit(impulssi); 71 80 } … … 148 157 void KasittelePallonTormays(PhysicsObject pallo, PhysicsObject kohde) 149 158 { 159 if (kohde == oikeaReuna) 160 { 161 pelaajan1Pisteet.Value += 1; 162 } 163 else if (kohde == vasenReuna) 164 { 165 pelaajan2Pisteet.Value += 1; 166 } 150 167 151 168 } -
2016/26/SallaK/Pingpong/Pingpong/Pingpong/obj/x86/Debug/ContentPipeline-{B4BE52C9-1454-4608-853F-C6AFF2D407D6}.xml
r7513 r7531 2 2 <XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 3 3 <Asset Type="Pipeline:BuildItemCollection"> 4 <Item> 5 <Source>tausta.jpg</Source> 6 <Name>tausta</Name> 7 <Importer>TextureImporter</Importer> 8 <Processor>TextureProcessor</Processor> 9 <Options>None</Options> 10 <Output>C:\MyTemp\SallaK\Pingpong\Pingpong\Pingpong\bin\x86\Debug\Content\tausta.xnb</Output> 11 <Time>2016-06-27T14:52:50.2024517+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:35:30.082205+03:00</Value> -
2016/26/SallaK/Pingpong/Pingpong/Pingpong/obj/x86/Debug/Pingpong.csproj.FileListAbsolute.txt
r7513 r7531 7 7 C:\MyTemp\SallaK\Pingpong\Pingpong\Pingpong\obj\x86\Debug\Pingpong.exe 8 8 C:\MyTemp\SallaK\Pingpong\Pingpong\Pingpong\obj\x86\Debug\Pingpong.pdb 9 C:\MyTemp\SallaK\Pingpong\Pingpong\Pingpong\bin\x86\Debug\Content\tausta.xnb -
2016/26/SallaK/Pingpong/Pingpong/PingpongContent/PingpongContent.contentproj
r7513 r7531 45 45 <Reference Include="AnimationExtension" /> 46 46 </ItemGroup> 47 <ItemGroup> 48 <Compile Include="tausta.jpg"> 49 <Name>tausta</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.