Line | |
---|
1 | using System; |
---|
2 | using Jypeli; |
---|
3 | using Jypeli.Widgets; |
---|
4 | using Jypeli.Assets; |
---|
5 | |
---|
6 | public class Peli : PhysicsGame |
---|
7 | { |
---|
8 | protected override void Begin() |
---|
9 | { |
---|
10 | LuoKenttä(); |
---|
11 | Ohjaimet(); |
---|
12 | } |
---|
13 | void LuoKenttä() |
---|
14 | { |
---|
15 | Automobile varsijousi = new Automobile(75, 30); |
---|
16 | varsijousi.Shape = Shapes.Rectangle; |
---|
17 | varsijousi.X = 0; |
---|
18 | varsijousi.Y = -200; |
---|
19 | Add(varsijousi); |
---|
20 | |
---|
21 | |
---|
22 | } |
---|
23 | void Ohjaimet() |
---|
24 | { |
---|
25 | Keyboard.Listen(Key.Up, ButtonState.Down, LiikuEteen, "Liiku Eteen"); |
---|
26 | |
---|
27 | } |
---|
28 | void LiikuEteen() |
---|
29 | { |
---|
30 | |
---|
31 | } |
---|
32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.