Revision 816,
705 bytes
checked in by juiitamm, 13 years ago
(diff) |
mailoihin asti ja lisäsin eri asioita
|
Line | |
---|
1 | using System; |
---|
2 | using Jypeli; |
---|
3 | using Jypeli.ScreenObjects; |
---|
4 | using Jypeli.Assets; |
---|
5 | |
---|
6 | public class Peli : PhysicsGame |
---|
7 | { |
---|
8 | |
---|
9 | protected override void Begin() |
---|
10 | { |
---|
11 | |
---|
12 | //TODO: Alusta peli tässä |
---|
13 | PhysicsObject pallo = new PhysicsObject(50, 50); |
---|
14 | Add(pallo); |
---|
15 | |
---|
16 | pallo.Shape = Shapes.Circle; |
---|
17 | Vector impulssi = new Vector(500.0, 0.0); |
---|
18 | pallo.Hit(impulssi); |
---|
19 | Level.CreateBorders(); |
---|
20 | pallo.Restitution = 1.0; |
---|
21 | Level.CreateBorders(1.0, false); |
---|
22 | Camera.ZoomToLevel(); |
---|
23 | PhysicsObject maila = PhysicsObject.CreateStaticObject(20.0, 100.0); |
---|
24 | maila.Shape = Shapes.Rectangle; |
---|
25 | |
---|
26 | |
---|
27 | } |
---|
28 | |
---|
29 | void LuoKentta() |
---|
30 | } |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.