Ignore:
Timestamp:
2014-07-03 15:39:35 (6 years ago)
Author:
mijoilmo
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Radar.cs

    r5386 r5388  
    1616    { 
    1717        this.parent = parent; 
    18         this.Image = parent.Images["HUD_radar"]; 
     18        this.Animation = new Animation(parent.ImageLists["HUD_radar"]); 
     19        this.Animation.FPS = 30; 
     20        this.Animation.Start(); 
    1921        if (parent.CurrentLevel.IsPlanet) 
    2022        { 
     
    2426            Add(planet); 
    2527            this.ship = new GameObject(10, 10); 
    26             ship.Color = Color.Red; 
    2728            Add(ship); 
    2829        } 
     
    3738        this.ship.Y = 0; 
    3839        double length = ((parent.Player.Y-(parent.Level.Bottom+parent.Level.Height/2))/parent.Level.Height)*22+66; 
    39         this.ship.Position += Vector.FromLengthAndAngle(length,Angle.RightAngle); 
     40        this.ship.Position += Vector.FromLengthAndAngle(length,Angle.FromRadians(0.9721)); 
    4041        base.Update(time); 
    4142    } 
Note: See TracChangeset for help on using the changeset viewer.