source: 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Player.cs @ 5260

Revision 5260, 854 bytes checked in by mijoilmo, 6 years ago (diff)
Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class Player : PhysicsObject
10{
11    public void rotate(double rotSpeed)
12
13    GameObject thrusterEffect;
14    public void rotate(double rotSpeed)
15
16
17    {
18
19        this.AngularVelocity = rotSpeed;
20    }
21    public void throttle()
22    public void thrusterStart(double speed)
23    {
24        this.Push(Vector.FromLengthAndAngle(100, this.Angle + Angle.RightAngle));
25        this.thrusterEffect.IsVisible = true;
26        this.Push(Vector.FromLengthAndAngle(speed*800, this.Angle + Angle.RightAngle));
27    }
28    public Player()
29    public void thrusterEnd()
30    {
31        this.thrusterEffect.IsVisible = false;
32        //if this.ids, enable ids
33    }
34    public Player()
Note: See TracBrowser for help on using the repository browser.