source: 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Hud.cs @ 5359

Revision 5359, 719 bytes checked in by mijoilmo, 6 years ago (diff)
Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9class 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.