source: 2011/24/EliasY/Pixel Quest/Pixel Quest/Pixel Quest/Peli.cs @ 1985

Revision 1985, 672 bytes checked in by elalylon, 9 years ago (diff)

Tein Pixel Questin taustaa eteenpäin

Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class Peli : PhysicsGame
10{
11    Image Tausta = LoadImage("TaustaKentta");
12    public override void Begin()
13    {
14        LuoKentta();
15    }
16    void LuoKentta()
17    {
18        Level.CreateBorders();
19        Camera.ZoomFactor = 14.0;
20        Level.Background.Image = Tausta;
21        LuoKivi(7, 7);
22    }
23    void LuoKivi(double x, double y)
24    {
25        PhysicsObject kivi = PhysicsObject.CreateStaticObject(x, y);
26        kivi.Angle = RandomGen.NextAngle();
27        Add(kivi);
28    }
29}
Note: See TracBrowser for help on using the repository browser.