source: 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs @ 6536

Revision 6536, 601 bytes checked in by sieerinn, 6 years ago (diff)

The Legend of Gabriel pelin pohjaa.

Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public partial class TheLegendOfGabriel : PhysicsGame
10{
11    public override void Begin()
12    {
13        SmoothTextures = false;
14        StartGame();
15    }
16
17    private void StartGame()
18    {
19        ClearAll();
20        CreateLevel("testlevel");
21        SetControls();
22        Camera.ZoomToLevel();
23    }
24
25    void SetControls()
26    {
27        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, null);
28    }
29}
Note: See TracBrowser for help on using the repository browser.