Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using Jypeli; |
---|
4 | using Jypeli.Assets; |
---|
5 | using Jypeli.Controls; |
---|
6 | using Jypeli.Effects; |
---|
7 | using Jypeli.Widgets; |
---|
8 | |
---|
9 | class Radar : GameObject |
---|
10 | { |
---|
11 | public Radar(Proto236b parent) |
---|
12 | : base(200, 200) |
---|
13 | { |
---|
14 | Radar.Image = parent.Images["HUD_radar"]; |
---|
15 | if (parent.CurrentLevel.IsPlanet) |
---|
16 | { |
---|
17 | //planet radar |
---|
18 | GameObject planet = new GameObject(130,130); |
---|
19 | planet.Shape = Shape.Circle; |
---|
20 | planet.Color = Color.Red; |
---|
21 | Add(planet); |
---|
22 | } |
---|
23 | else |
---|
24 | { |
---|
25 | //space radar |
---|
26 | } |
---|
27 | } |
---|
28 | public override void Update(Time time) |
---|
29 | { |
---|
30 | |
---|
31 | base.Update(time); |
---|
32 | } |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.