Changeset 8620


Ignore:
Timestamp:
2017-06-14 10:04:57 (2 years ago)
Author:
npo17_18
Message:
 
Location:
2017/24/ViljamiM/Zombodroid
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/ViljamiM/Zombodroid/Zombodroid/Zombodroid/Zombodroid.cs

    r8603 r8620  
    5656        matti = new PhysicsObject(75, 75); 
    5757        matti.Image = LoadImage("oikeeukkeli"); 
    58         Add(matti); 
     58        Add(matti, 3); 
    5959        matti.CanRotate = false; 
     60        double laserinpituus = 1000; 
     61        GameObject laser = new  GameObject(2, laserinpituus); 
     62        laser.Y = matti.Y + laserinpituus/2+16; 
     63        laser.Color = new Color(Color.Red, 30); 
     64        matti.Add(laser); 
    6065    } 
    6166 
     
    8590        panos.MaximumLifetime = new TimeSpan(0, 0, 5); 
    8691        Add(panos); 
    87         panos.Velocity = ((Mouse.PositionOnWorld - matti.AbsolutePosition).Normalize())*1750; 
     92        panos.Velocity = ((Mouse.PositionOnWorld - matti.AbsolutePosition).Normalize())*2000; 
    8893 
    8994         
     
    100105    void YksVihu() 
    101106    { 
    102         PhysicsObject vihu = new PhysicsObject(100.0, 100.0); 
     107        PhysicsObject vihu = new PhysicsObject(0.0, 0.0); 
    103108        RandomMoverBrain satunnaisAivot = new RandomMoverBrain(200); 
    104109        satunnaisAivot.ChangeMovementSeconds = 3; 
Note: See TracChangeset for help on using the changeset viewer.