Changeset 7753 for 2016/27


Ignore:
Timestamp:
2016-07-05 11:08:50 (3 years ago)
Author:
karkaite
Message:
 
Location:
2016/27/OskariL/Pong/Pong/Pong
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/OskariL/Pong/Pong/Pong/Pong.cs

    r7751 r7753  
    268268    void AmmuPalloa1() 
    269269    { 
    270         LuoAmmus(maila1.X + 10.0, maila1.Y); 
     270        LuoAmmus(maila1.X + 10.0, maila1.Y, Shape.Star); 
    271271        ammus.Hit(impulssi); 
    272272    } 
    273273    void AmmuPalloa2() 
    274274    { 
    275         LuoAmmus(maila2.X - 10.0, maila2.Y); 
     275        LuoAmmus(maila2.X - 10.0, maila2.Y, Shape.Triangle); 
    276276        ammus.Hit(impulssi2); 
    277277    } 
    278     void LuoAmmus(double x, double y) 
     278    void LuoAmmus(double x, double y, Shape shape) 
    279279    { 
    280280        ammus = new PhysicsObject(10.0, 10.0); 
    281281        ammus.X = x; 
    282282        ammus.Y = y; 
    283         ammus.Shape = Shape.Star; 
     283        ammus.Shape = shape; 
     284        ammus.CanRotate = true; 
    284285        Add(ammus); 
    285286        AddCollisionHandler(ammus, "seina", CollisionHandler.DestroyObject); 
Note: See TracChangeset for help on using the changeset viewer.