- Timestamp:
- 2013-07-26 12:24:17 (10 years ago)
- Location:
- 2013/30/TomiH/pong1/pong1
- Files:
-
- 7 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/30/TomiH/pong1/pong1/pong1/pong1.cs
r4620 r4732 9 9 public class pong1 : PhysicsGame 10 10 { 11 12 private Animation miesa; 11 13 Vector nopeusYlos = new Vector(0, 1000); 12 14 Vector nopeusAlas = new Vector(0, -1000); 13 15 Image tarja = LoadImage("tarja"); 14 16 PhysicsObject pallo; 15 17 Image dog = LoadImage("blingbling1.0"); 16 18 17 19 … … 27 29 public override void Begin() 28 30 { 29 31 32 miesa = LoadAnimation("blingbling"); 30 33 LuoKentta(); 31 34 AsetaOhjaimet(); … … 41 44 { 42 45 pallo = new PhysicsObject(100.0, 100.0); 43 pallo.Image = tarja;44 pallo.Shape = Shape.FromImage( tarja);46 // pallo.Image = tarja; 47 pallo.Shape = Shape.FromImage(dog); 45 48 // pallo.Color = Color.Emerald; 46 49 pallo.X = -100; 47 50 pallo.Y = 100; 48 51 pallo.Restitution = 100; 52 pallo.Animation = miesa; 53 pallo.Animation.Start(); 54 pallo.Animation.FPS = 3; 49 55 Add(pallo); 50 56 … … 68 74 alaReuna.IsVisible = true; 69 75 70 Level.BackgroundColor = Color. Black;76 Level.BackgroundColor = Color.Red; 71 77 AddCollisionHandler(pallo, KasittelePallonTormays); 72 78 } -
2013/30/TomiH/pong1/pong1/pong1Content/pong1Content.contentproj
r4518 r4732 52 52 </Compile> 53 53 </ItemGroup> 54 <ItemGroup> 55 <Compile Include="Blingbling\blingbling1.0.png"> 56 <Name>blingbling1.0</Name> 57 <Importer>TextureImporter</Importer> 58 <Processor>TextureProcessor</Processor> 59 </Compile> 60 <Compile Include="Blingbling\blingbling2.0.png"> 61 <Name>blingbling2.0</Name> 62 <Importer>TextureImporter</Importer> 63 <Processor>TextureProcessor</Processor> 64 </Compile> 65 <Compile Include="Blingbling\blingbling3.0.png"> 66 <Name>blingbling3.0</Name> 67 <Importer>TextureImporter</Importer> 68 <Processor>TextureProcessor</Processor> 69 </Compile> 70 <Compile Include="Blingbling\blingbling4.0.png"> 71 <Name>blingbling4.0</Name> 72 <Importer>TextureImporter</Importer> 73 <Processor>TextureProcessor</Processor> 74 </Compile> 75 </ItemGroup> 76 <ItemGroup> 77 <Compile Include="blingbling.anim"> 78 <Name>blingbling</Name> 79 <Importer>AnimationImporter</Importer> 80 <Processor>AnimationContentProcessor</Processor> 81 </Compile> 82 </ItemGroup> 83 <ItemGroup> 84 <Compile Include="blingbling1.0.png"> 85 <Name>blingbling1.0</Name> 86 <Importer>TextureImporter</Importer> 87 <Processor>TextureProcessor</Processor> 88 </Compile> 89 </ItemGroup> 54 90 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 55 91 <!-- 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.