Skip to content

Commit d5e2831

Browse files
committed
Updated due to deprecation
1 parent b6b3bfe commit d5e2831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

4-reverse-gravity/sketch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function setup() {
1414
let world = engine.world;
1515

1616
// reverse gravity
17-
engine.world.gravity.y *= -1;
17+
engine.gravity.y *= -1;
1818

1919
// add block and ground
2020
box = new Block(world, { x: 600, y: 500, w: 50, h: 50, color: 'white' });

0 commit comments

Comments
 (0)