source: 2013/27/JoonasM/RnGPlatformShooter/RnGPlatformShooter/RnGPlatformShooter/Boost.cs @ 4485

Revision 4485, 600 bytes checked in by joarmuho, 7 years ago (diff)

Talletus.

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Jypeli;
6
7public class Boost : PhysicsObject
8{
9    DoubleMeter etenemisVauhtiMittari;
10
11    public Boost(double leveys, double korkeus, DoubleMeter etenemisVauhtiMittari)
12        : base(leveys, korkeus)
13    {
14        this.MakeStatic();
15        this.etenemisVauhtiMittari = etenemisVauhtiMittari;
16        IsUpdated = true;
17    }
18
19    public override void Update(Time time)
20    {
21        this.Velocity = new Vector(etenemisVauhtiMittari.Value, 0);
22        base.Update(time);
23    }
24}
25
Note: See TracBrowser for help on using the repository browser.