source: 2013/27/TeemuM/Game/Game/Game/Game.cs @ 4358

Revision 4358, 1.1 KB 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
9public class G : PhysicsGame
10{
11    public static G game;
12    public Image playerImage = LoadImage("Player");
13
14    public override void Begin()
15    {
16        game = this;
17
18        Player pelaaja = new Player(this, 50, 50);
19        Add(pelaaja);
20
21        PhoneBackButton.Listen(Exit, "Lopeta peli");
22        Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, "Lopeta peli");
23
24        Mouse.IsCursorVisible = true;
25    }
26
27    IntMeter scoreboard;
28
29    void ScoreMeter()
30    {
31        scoreboard = new IntMeter(0);
32        scoreboard.AddOverTime(100, 1);
33
34        Label ScoreScreen = new Label();
35        ScoreScreen.X = 0;
36        ScoreScreen.Y = Screen.Bottom + 100;
37        ScoreScreen.TextColor = Color.Black;
38        ScoreScreen.Color = Color.White;
39        ScoreScreen.BindTo(scoreboard);
40        Add(ScoreScreen);
41    }
42
43    protected override void Update(Microsoft.Xna.Framework.GameTime gameTime)
44    {
45
46        base.Update(gameTime);
47    }
48}
Note: See TracBrowser for help on using the repository browser.