source: 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/TheDungeonGame.cs @ 3462

Revision 3462, 725 bytes checked in by dezhidki, 9 years ago (diff)

Talletus.

Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8using MathHelper;
9using Entity;
10
11public class TheDungeonGame : PhysicsGame
12{
13    private Player player;
14
15    public override void Begin()
16    {
17        IsMouseVisible = true;
18        SetWindowSize(800, 600);
19        Level.CreateBorders();
20        Camera.ZoomToLevel();
21
22        player = new Player(Vector.Zero);
23        Add(player);
24
25        Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, "Lopeta peli");   
26    }
27
28    protected override void Update(Time time)
29    {
30        player.Update(time);
31        base.Update(time);
32    }
33}
Note: See TracBrowser for help on using the repository browser.