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

Revision 5395, 814 bytes checked in by mijoilmo, 5 years ago (diff)

Optimoitu levelin kopioimista. Lisätty basic !space leveli

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