Skip to content

Commit

Permalink
made more fluid
Browse files Browse the repository at this point in the history
  • Loading branch information
rnickles committed Oct 8, 2024
1 parent 9c0c036 commit a369d3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions game/objects/ball.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export class Ball extends GameObject {
// matter stuff
// create a matter body
let bod = Matter.Bodies.circle(x, y, DOT_SIZE * 0.5, {
friction: 0.00001,
restitution: 0.5,
friction: 0,
restitution: 1,
density: 0.1,
render: {
fillStyle: 'darkblue'
Expand Down
4 changes: 3 additions & 1 deletion game/objects/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export class Platform extends GameObject {
collisionFilter: {
category: CATEGORY_DEFAULT,
mask: ALL_MASK
}
},
restitution: 1,
friction: 0
});

// Add the platform to the world
Expand Down

0 comments on commit a369d3c

Please sign in to comment.