source: 2013/27/TeemuM/Game/Game/Game/UI.cs @ 4424

Revision 4424, 506 bytes checked in by jumakall, 9 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 UI
10{
11    public static void GameOver()
12    {
13        GameObject layer = new GameObject(Math.Abs(G.game.Level.Left) + Math.Abs(G.game.Level.Right), Math.Abs(G.game.Level.Bottom) + Math.Abs(G.game.Level.Top), Shape.Rectangle);
14        layer.Color = Color.Lerp(Color.Black, Color.Transparent, 0.5);
15        G.game.Add(layer);
16    }
17}
Note: See TracBrowser for help on using the repository browser.