- Timestamp:
- 2010-07-29 11:30:46 (13 years ago)
- Location:
- 2010/30/alsiseoi/WorldOfBallcraft
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/30/alsiseoi/WorldOfBallcraft/Content/Content.contentproj
r1357 r1395 1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">1 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> 2 2 <PropertyGroup> 3 3 <ProjectGuid>43f97c46-4527-4133-9129-98ed7378fc71</ProjectGuid> … … 34 34 <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 35 35 </ItemGroup> 36 <ItemGroup> 37 <Compile Include="Bitmap1.bmp"> 38 <Name>Bitmap1</Name> 39 <Importer>TextureImporter</Importer> 40 <Processor>TextureProcessor</Processor> 41 </Compile> 42 </ItemGroup> 43 <ItemGroup> 44 <Compile Include="Riimuympyra.bmp"> 45 <Name>Riimuympyra</Name> 46 <Importer>TextureImporter</Importer> 47 <Processor>TextureProcessor</Processor> 48 </Compile> 49 </ItemGroup> 50 <ItemGroup> 51 <Compile Include="testi.bmp"> 52 <Name>testi</Name> 53 <Importer>TextureImporter</Importer> 54 <Processor>TextureProcessor</Processor> 55 </Compile> 56 </ItemGroup> 57 <ItemGroup> 58 <Compile Include="nuotio.PNG"> 59 <Name>nuotio</Name> 60 <Importer>TextureImporter</Importer> 61 <Processor>TextureProcessor</Processor> 62 </Compile> 63 </ItemGroup> 36 64 </Project> -
2010/30/alsiseoi/WorldOfBallcraft/Peli.cs
r1385 r1395 3 3 using Jypeli.Widgets; 4 4 using Jypeli.Assets; 5 using Jypeli.Effects; 5 6 6 7 public class Peli : PhysicsGame … … 19 20 Vector NopeusVasemmalle = new Vector(-200, 0); 20 21 22 Image olionKuva = LoadImage("nuotio"); 23 21 24 protected override void Begin() 22 25 { 23 26 LuoKentta(); 24 27 AsetaOhjaimet(); 28 LuoEfekti(); 25 29 } 26 30 … … 40 44 Level.BackgroundColor = new Color (62, 102, 55); 41 45 42 Player1 = LuoPelaaja(300, 100, 40, Color.Blue);46 Player1 = LuoPelaaja(300, 100, 40, new Color (1, 14, 105)); 43 47 44 Player2 = LuoPelaaja(300, 200, 40, Color.Red);48 Player2 = LuoPelaaja(300, 200, 40, new Color (64, 0, 0)); 45 49 46 50 Camera.ZoomToLevel(); … … 73 77 Vihollinen.Brain = satunnaisAivot; 74 78 79 PhysicsObject nuotio = PhysicsObject.CreateStaticObject(70.0, 70.0); 80 nuotio.X = 300; 81 nuotio.Y = -200; 82 nuotio.Image = olionKuva; 83 Add(nuotio); 75 84 } 76 85 … … 124 133 } 125 134 135 void LuoEfekti() 136 { 137 int pMaxMaara = 200; 138 ExplosionSystem rajahdys = new ExplosionSystem(LoadImage("testi"), pMaxMaara); 139 Add(rajahdys); 140 double x = 0; 141 double y = 0; 142 int pMaara = 10; 143 rajahdys.AddEffect(x, y, pMaara); 144 145 Flames liekki = new Flames("tulitest", 25, Angle 90); 146 liekki.Position = new Vector(300, -200); 147 Add(liekki); 148 149 150 } 126 151 } 127 152
Note: See TracChangeset
for help on using the changeset viewer.