Revision 5224,
494 bytes
checked in by mijoilmo, 7 years ago
(diff) |
vähän kaikkea
player omassa luokassansa
|
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 | |
---|
14 | } |
---|
15 | public void throttle() |
---|
16 | { |
---|
17 | this.Push(Vector.FromLengthAndAngle(100, this.Angle + Angle.RightAngle)); |
---|
18 | } |
---|
19 | public Player() |
---|
20 | : base(40, 40) |
---|
21 | { |
---|
22 | this.Image = Proto236b.images["player"]; |
---|
23 | } |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.