change game mechanics a lot
This commit is contained in:
parent
f0afee03ab
commit
2b88690cf5
3 changed files with 36 additions and 18 deletions
|
@ -21,7 +21,7 @@ class Shooter extends Entity {
|
|||
this.ticks++;
|
||||
|
||||
this.vel.x += Math.sin(this.dir) * 1;
|
||||
this.vel.y += Math.cos(this.dir) * 1;
|
||||
this.vel.y -= Math.cos(this.dir) * 1;
|
||||
|
||||
this.vel.x *= 0.9;
|
||||
this.vel.y *= 0.9;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue