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 Hud : GameObject |
---|
10 | { |
---|
11 | private Player boundPlayer; |
---|
12 | private Radar radar; |
---|
13 | public Hud(Proto236b parent,ScreenView screen) : base(screen.Width,screen.Height) |
---|
14 | { |
---|
15 | this.boundPlayer = parent.Player; |
---|
16 | this.IsVisible = false; |
---|
17 | this.IsUpdated = true; |
---|
18 | boundPlayer.Add(this); |
---|
19 | |
---|
20 | radar = new Radar(parent); |
---|
21 | radar.Bottom = this.Bottom + 20; |
---|
22 | Add(radar); |
---|
23 | } |
---|
24 | public override void Update(Time time) |
---|
25 | { |
---|
26 | this.AbsoluteAngle = Angle.Zero; |
---|
27 | base.Update(time); |
---|
28 | } |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.