Ignore:
Timestamp:
2017-08-02 11:54:05 (2 years ago)
Author:
npo17_86
Message:

Hahmo modelit tehty?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2017/31/OskariP/Alienharvester2/Alienharvester2/Alienharvester2/Alienharvester2.cs

    r9325 r9338  
    99public class Alienharvester2 : PhysicsGame 
    1010{ 
     11    Image olionkuva = LoadImage("Adrian"); 
    1112    const double nopeus = 200; 
    1213    const double hyppyNopeus = 750; 
     
    3233        pelaaja1.Weapon = new AssaultRifle(30, 10); 
    3334        pelaaja1.Weapon.ProjectileCollision = AmmusOsui; 
     35        PhysicsObject vortigaunt = new PhysicsObject(40, 20); 
     36        vortigaunt.Shape = Shape.Rectangle; 
     37        Add(vortigaunt); 
     38        vortigaunt.Color = Color.DarkGreen; 
     39        PhysicsObject gargantuan = new PhysicsObject(200, 50); 
     40        gargantuan.Shape = Shape.Rectangle; 
     41        Add(gargantuan); 
     42        gargantuan.Color = Color.DarkBlue; 
     43         
    3444    } 
    3545 
     
    6575    void LisaaPelaaja(Vector paikka, double leveys, double korkeus) 
    6676    { 
    67          
     77 
    6878        AssaultRifle pyssy = new AssaultRifle(20, 5); 
    6979        pyssy.Angle += Angle.FromDegrees(1); 
     
    7484        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
    7585        Add(pelaaja1); 
     86 
    7687    } 
    7788    void AmmusOsui(PhysicsObject ammus, PhysicsObject kohde) 
Note: See TracChangeset for help on using the changeset viewer.