Comments (8)
Try changing the "this.dir = new Vector(0, 1);" line.
I think pointing to the left would be "this.dir = new Vector(-1, 0);"
from erkie.github.com.
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]];
from erkie.github.com.
Hi erkie,
I need the arrow to point down, currently is pointing left which is not what I want.
Cheers
James
from erkie.github.com.
I made this.dir = new Vector(0,0); it points down, but it won't move and the flame is on the wrong side :)
from erkie.github.com.
The flame is drawn at a fixed distance from the object. You'll have to look into the drawFlame-method of the ctx-object.
from erkie.github.com.
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?
from erkie.github.com.
LMAO, I think I know it... I created the verts based on x,y, but it's actually y,x
from erkie.github.com.
I think that's a bug (or strange design decision by me), but yeah, sorry about that.
from erkie.github.com.
Related Issues (18)
- ship color HOT 4
- add multiplayer mode HOT 10
- Indestructible objects HOT 4
- Unaffected by friction during acceleration? HOT 1
- No longer works in Safari: TypeError: Result of expression 'stylesheet.styleSheet' [undefined] is not an object. HOT 3
- Script error on page with embedded SVG HOT 1
- No longer works in Chrome HOT 1
- New Asteroids can only be used once HOT 4
- Escape doesn't work in Safari 5.1
- Elements with specific class shouldn't be destroyed HOT 2
- Browser Resize HOT 2
- Needs flash-seeking missiles
- Important thing HOT 6
- just thanks for your stuff HOT 1
- Multiple Ships HOT 9
- Flash homing missiles
- README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erkie.github.com.