Changeset 1395 for 2010


Ignore:
Timestamp:
2010-07-29 11:30:46 (9 years ago)
Author:
alsiseoi
Message:

Nuotion pohja valmis.

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"> 
    22  <PropertyGroup> 
    33    <ProjectGuid>43f97c46-4527-4133-9129-98ed7378fc71</ProjectGuid> 
     
    3434    <Reference Include="Microsoft.Xna.Framework.Content.Pipeline.XImporter, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 
    3535  </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> 
    3664</Project> 
  • 2010/30/alsiseoi/WorldOfBallcraft/Peli.cs

    r1385 r1395  
    33using Jypeli.Widgets; 
    44using Jypeli.Assets; 
     5using Jypeli.Effects; 
    56 
    67public class Peli : PhysicsGame 
     
    1920    Vector NopeusVasemmalle = new Vector(-200, 0); 
    2021 
     22    Image olionKuva = LoadImage("nuotio"); 
     23 
    2124    protected override void Begin() 
    2225    { 
    2326        LuoKentta(); 
    2427        AsetaOhjaimet(); 
     28        LuoEfekti(); 
    2529    } 
    2630 
     
    4044        Level.BackgroundColor = new Color (62, 102, 55); 
    4145 
    42         Player1 = LuoPelaaja(300, 100, 40, Color.Blue); 
     46        Player1 = LuoPelaaja(300, 100, 40, new Color (1, 14, 105)); 
    4347 
    44         Player2 = LuoPelaaja(300, 200, 40, Color.Red); 
     48        Player2 = LuoPelaaja(300, 200, 40, new Color (64, 0, 0)); 
    4549         
    4650        Camera.ZoomToLevel(); 
     
    7377        Vihollinen.Brain = satunnaisAivot; 
    7478 
     79        PhysicsObject nuotio = PhysicsObject.CreateStaticObject(70.0, 70.0); 
     80        nuotio.X = 300; 
     81        nuotio.Y = -200; 
     82        nuotio.Image = olionKuva; 
     83        Add(nuotio); 
    7584    } 
    7685 
     
    124133    } 
    125134 
     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    } 
    126151} 
    127152 
Note: See TracChangeset for help on using the changeset viewer.