Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using Jypeli; |
---|
4 | using Jypeli.Assets; |
---|
5 | using Jypeli.Controls; |
---|
6 | using Jypeli.Effects; |
---|
7 | using Jypeli.Widgets; |
---|
8 | |
---|
9 | public class ProjectStar : PhysicsGame |
---|
10 | { |
---|
11 | Image taustaKuva = LoadImage("Kentta"); |
---|
12 | |
---|
13 | public override void Begin() |
---|
14 | { |
---|
15 | Level.Background.Image = taustaKuva; |
---|
16 | Camera.ZoomToLevel(); |
---|
17 | //Level.CreateBorders(); |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | // TODO: Kirjoita ohjelmakoodisi tähän |
---|
22 | |
---|
23 | PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); |
---|
24 | Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); |
---|
25 | } |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.