Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using Jypeli; |
---|
4 | using Jypeli.Assets; |
---|
5 | using Jypeli.Controls; |
---|
6 | using Jypeli.Effects; |
---|
7 | using Jypeli.Widgets; |
---|
8 | |
---|
9 | public 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.