source: 2017/23/EetuH/tettris2/tettris2/tettris2/Engine/Engine.cs @ 8446

Revision 8446, 637 bytes checked in by nupeohje, 3 years ago (diff)
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Jypeli;
6
7public class Engine
8{
9    private Image SystemImage = Image.FromFile("Engine/SystemImage.png");
10    public tettris2 SystemProcessor;
11
12    public void Process()
13    {
14        PhysicsObject Object = PhysicsObject.CreateStaticObject(100, 100);
15        Object.Image = SystemImage;
16        SystemProcessor.Add(Object);
17
18        Timer SystemTimer = new Timer();
19        SystemTimer.Timeout += () => { Object.Angle += Angle.FromDegrees(1); };
20        SystemTimer.Interval = 0.5F;
21        SystemTimer.Start();
22    }
23}
Note: See TracBrowser for help on using the repository browser.