Closed variable closed 13 years ago
Try changing the "this.dir = new Vector(0, 1);" line.
I think pointing to the left would be "this.dir = new Vector(-1, 0);"
var playerVerts = [[-1 * playerWidth/2, 0],[-1_playerWidth/4,0],[-1_playerWidth/4,-1_playerHeight/4_3],[playerWidth/4,-1_playerHeight/4_3],[playerWidth/4,0],[playerWidth/2,0],[0,playerHeight/4*3]];
Hi erkie,
I need the arrow to point down, currently is pointing left which is not what I want.
Cheers
James
I made this.dir = new Vector(0,0); it points down, but it won't move and the flame is on the wrong side :)
The flame is drawn at a fixed distance from the object. You'll have to look into the drawFlame-method of the ctx-object.
I changed to this.dir = new Vector(0,0); the ship is correct position, but the ship won't move and the flame is in wrong angle... What else should I change please?
LMAO, I think I know it... I created the verts based on x,y, but it's actually y,x
I think that's a bug (or strange design decision by me), but yeah, sorry about that.
Hello there,
I have managed to change the ship shape to an arrow by editing the playerVerts, however, when the game initializes, the shape is in a wrong angle (pointing to the left), could you please tell me which line I need to edit?
Regards
James