Skip to content

Commit b62d3c0

Browse files
authored
Merge pull request #118 from snicklepickles/master
Fix bullet velocity
2 parents 1c32abc + e05b869 commit b62d3c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_chapters/asteroids.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ Now we define functions to create objects:
523523
return {
524524
id: `bullet${s.objCount}`,
525525
pos:s.ship.pos.add(d.scale(s.ship.radius)),
526-
vel:s.ship.vel.add(d.scale(-2)),
526+
vel:s.ship.vel.add(d.scale(2)),
527527
createTime:s.time,
528528
thrust:false,
529529
angle:0,

0 commit comments

Comments
 (0)