Changeset 2738


Ignore:
Timestamp:
2012-04-20 13:19:54 (7 years ago)
Author:
anonymous
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/JAO/JuhoT/SamuraiNorsu/SamuraiNorsu/SamuraiNorsu/SamuraiNorsu.cs

    r2720 r2738  
    250250        canvas.BrushColor = Color.Red; 
    251251 
    252 //        double ajanhetki = Game.Time.SinceStartOfGame.TotalSeconds; 
    253         double ajanhetki = Game.Time.SinceStartOfGame.TotalMilliseconds; 
     252        double ajanhetki = Game.Time.SinceStartOfGame.TotalSeconds; 
     253       // double ajanhetki = Game.Time.SinceStartOfGame.TotalMilliseconds; 
    254254 
    255255 
     
    261261        Vector keskipiste = Vector.Zero; 
    262262 
    263         for (int i = 0; i < 360; i++) 
     263        //for (int i = 0; i < 360; i++) 
     264        //{ 
     265        //    Vector reunapiste = keskipiste + new Vector(ajanhetki % 1000 * Math.Cos(ajanhetki + i), ajanhetki % 1000 * Math.Sin(ajanhetki + i)); 
     266 
     267        //    canvas.DrawLine(keskipiste, reunapiste); 
     268        //} 
     269 
     270        //canvas.DrawLine(keskipiste, keskipiste + reunapiste); 
     271 
     272        Vector vanhapiste = keskipiste; 
     273 
     274        for (int i = 0; i < 200; i++) 
    264275        { 
    265             Vector reunapiste = keskipiste + new Vector(ajanhetki % 1000 * Math.Cos(ajanhetki + i), ajanhetki % 1000 * Math.Sin(ajanhetki + i)); 
    266  
    267             canvas.DrawLine(keskipiste, reunapiste); 
     276            Vector uusipiste = vanhapiste + new Vector(i, 10 * Math.Sin(ajanhetki)); 
     277 
     278            canvas.DrawLine(vanhapiste, uusipiste); 
     279 
     280            vanhapiste = uusipiste; 
    268281        } 
    269  
    270         //canvas.DrawLine(keskipiste, keskipiste + reunapiste); 
    271282 
    272283        base.Paint(canvas); 
Note: See TracChangeset for help on using the changeset viewer.