source: 2009/onni_m/Aliohjelmia/Peli.cs @ 791

Revision 253, 1013 bytes checked in by joonalmo, 12 years ago (diff)

Pong valmis : ) ja lumiukkoo alotin

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