Line | |
---|
1 | #region Usings |
---|
2 | using System; |
---|
3 | using System.Collections.Generic; |
---|
4 | using System.Linq; |
---|
5 | using Microsoft.Xna.Framework; |
---|
6 | using Microsoft.Xna.Framework.Audio; |
---|
7 | using Microsoft.Xna.Framework.Content; |
---|
8 | using Microsoft.Xna.Framework.Graphics; |
---|
9 | using Microsoft.Xna.Framework.Input; |
---|
10 | using Microsoft.Xna.Framework.Media; |
---|
11 | using Jypeli; |
---|
12 | using Jypeli.ScreenObjects; |
---|
13 | using Jypeli.Assets; |
---|
14 | using AdvanceMath; |
---|
15 | using Physics2DDotNet; |
---|
16 | using Physics2DDotNet.Shapes; |
---|
17 | #endregion |
---|
18 | |
---|
19 | namespace PerusPeli1 |
---|
20 | { |
---|
21 | public class Peli : RealTimeGame |
---|
22 | { |
---|
23 | protected override void LoadContent() |
---|
24 | { |
---|
25 | IShape ympyra = Shapes.CreateCircle(20.0); |
---|
26 | PhysicsObject pallo = new PhysicsObject(10.0, ympyra); |
---|
27 | pallo.X = 20; |
---|
28 | pallo.Y = 10; |
---|
29 | Level.Objects.Add(pallo); |
---|
30 | |
---|
31 | IShape esine = Shapes.CreateCircle(40.0); |
---|
32 | PhysicsObject asia = new PhysicsObject(10.0, esine); |
---|
33 | asia.X = -20; |
---|
34 | asia.Y = -30; |
---|
35 | Level.Objects.Add(asia); |
---|
36 | |
---|
37 | IShape qwe = Shapes.CreateCircle(80.0); |
---|
38 | |
---|
39 | } |
---|
40 | } |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.