Line | |
---|
1 | using System; |
---|
2 | using Jypeli; |
---|
3 | using Jypeli.ScreenObjects; |
---|
4 | using Jypeli.Assets; |
---|
5 | |
---|
6 | namespace PerusPeli1 |
---|
7 | { |
---|
8 | public class Peli : Game |
---|
9 | { |
---|
10 | protected override void Begin() |
---|
11 | { |
---|
12 | PhysicsObject paa = new PhysicsObject (40.0,40.0); |
---|
13 | paa.Shape = Shapes.Circle; |
---|
14 | paa.X = 10; |
---|
15 | paa.Y = -20; |
---|
16 | PhysicsObject maha = new PhysicsObject(80.0, 80.0); |
---|
17 | maha.Shape = Shapes.Circle; |
---|
18 | maha.X = 10; |
---|
19 | maha.Y = -80; |
---|
20 | PhysicsObject jalat = new PhysicsObject(160.0, 160.0); |
---|
21 | jalat.Shape = Shapes.Circle; |
---|
22 | jalat.X = 10; |
---|
23 | jalat.Y = -200; |
---|
24 | Add(maha); |
---|
25 | Add(paa); |
---|
26 | Add(jalat); |
---|
27 | PhysicsObject nena = new PhysicsObject(16.0, 16.0); |
---|
28 | nena.Shape = Shapes.Triangle; |
---|
29 | nena.Color = Color.Orange; |
---|
30 | nena.X = 10; |
---|
31 | nena.Y = -20; |
---|
32 | Add(nena); |
---|
33 | } |
---|
34 | } |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.