Changeset 1037 for 2010/24


Ignore:
Timestamp:
2010-07-01 10:45:52 (9 years ago)
Author:
sijoseha
Message:

Testausta

Location:
2010/24/sijoseha/EfektiDemo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2010/24/sijoseha/EfektiDemo/EfektiDemo.csproj

    r1004 r1037  
    5757  </PropertyGroup> 
    5858  <ItemGroup> 
    59     <Reference Include="Jypeli2, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86"> 
     59    <Reference Include="Jypeli2, Version=2.3.0.0, Culture=neutral, processorArchitecture=x86"> 
    6060      <SpecificVersion>False</SpecificVersion> 
    61       <HintPath>..\..\..\lib\Jypeli2.dll</HintPath> 
     61      <HintPath>..\trunk\Jypeli\bin\x86\Debug\Jypeli2.dll</HintPath> 
    6262    </Reference> 
    6363    <Reference Include="Microsoft.Xna.Framework, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d" /> 
  • 2010/24/sijoseha/EfektiDemo/Peli.cs

    r1005 r1037  
    77public class Peli : PhysicsGame 
    88{ 
     9    ParticleSystem ps; 
    910    ExplosionSystem rajahdys1, rajahdys2, rajahdys3, rajahdys4; 
    1011    Flames liekki1, liekki2; 
     
    1516        Image glow = LoadImage("Red"); 
    1617        Image glow2 = LoadImage("Yellow"); 
    17         rajahdys1 = new ExplosionSystem(expl, 1000); 
     18        rajahdys1 = new ExplosionSystem(expl, glow, 1000); 
    1819        rajahdys2 = new ExplosionSystem(expl, 1000); 
    1920        rajahdys3 = new ExplosionSystem(glow, 1000); 
    2021        rajahdys4 = new ExplosionSystem(glow2, 10); 
    21         liekki1 = new Flames(glow, 400, Angle.Degrees(270)); 
     22        liekki1 = new Flames(glow, glow2, 400, Angle.Degrees(270)); 
    2223        liekki2 = new Flames(glow2, 400, Angle.Degrees(270)); 
    2324        rajahdys2.MinLifetime = 0.2; 
     
    3334        rajahdys4.MinVelocity = 1; 
    3435        rajahdys4.MaxVelocity = 2; 
    35         //Add(rajahdys1); 
     36        Add(rajahdys1); 
    3637        //Add(rajahdys2); 
    3738        //Add(rajahdys3); 
    3839        //Add(rajahdys4); 
    3940        Add(liekki1); 
    40         //Add(liekki2); 
     41        Add(liekki2); 
     42 
     43        ps = new ParticleSystem(glow, 10); 
     44        ps.MaxAcceleration = 1; 
     45        ps.MaxLifetime = 1; 
     46        ps.MaxRotation = 0; 
     47        ps.MaxRotationSpeed = 0; 
     48        ps.MaxScale = 1; 
     49        ps.MaxVelocity = 10; 
     50        ps.MinAcceleration = 1; 
     51        ps.MinLifetime = 1; 
     52        ps.MinRotation = 0; 
     53        ps.MinRotationSpeed = 0; 
     54        ps.MinScale = 1; 
     55        ps.MinVelocity = 10; 
     56        Add(ps); 
    4157 
    4258        Timer t = new Timer(); 
     
    6985    void t_Trigger1(Timer sender) 
    7086    { 
     87        ps.AddEffect(0, 0, 4); 
    7188        rajahdys1.AddEffect(RandomGen.NextDouble(Level.Left, Level.Right), RandomGen.NextDouble(Level.Top, Level.Bottom), 30); 
    7289        rajahdys3.AddEffect(RandomGen.NextDouble(Level.Left, Level.Right), RandomGen.NextDouble(Level.Top, Level.Bottom), 30); 
Note: See TracChangeset for help on using the changeset viewer.