/// <summary> /// Creates a new LevelButton. /// </summary> /// <param name="level">The level to associate with the button.</param> public LevelButton(LevelEntity level) { _LevelText = new TextEntity(GameHandler.AssetHandler.GetSpriteFont("Fonts/Hud")); AddChild(_LevelText); ClickedSoundEffect = GameHandler.AssetHandler.GetSoundEffect("Sounds/snd_player_won"); Level = level; }
/// <summary> /// Creates a new HintEntity. /// </summary> public HintEntity() { Texture = GameHandler.AssetHandler.GetTexture("Overlays/spr_frame_hint"); ResizeToTexture(); Visible = false; _Text = new TextEntity(GameHandler.AssetHandler.GetSpriteFont("Fonts/HintFont")); _Text.Position = new Vector2(120, 25); _Text.Color = Color.Black; AddChild(_Text); }
/// <summary> /// Creates a new TimerEntity. /// </summary> public TimerEntity() { Texture = GameHandler.AssetHandler.GetTexture("Sprites/spr_timer"); ResizeToTexture(); _Time = new TextEntity(GameHandler.AssetHandler.GetSpriteFont("Fonts/Hud")); AddChild(_Time); Multiplier = 1F; TimeLeft = new TimeSpan(); }