Skip to content

Commit

Permalink
added lift (levitating) player capabilities t for up g for down
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrgarcia committed Oct 9, 2020
1 parent 10c4553 commit 3769ca4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/src/index.js
Expand Up @@ -139,9 +139,9 @@ world.createEntity()
// make a floor between -2 and -5
if(y < -2 && y > -5) return 1 // grass
// make a 4x4x4 cube floating in space
if( x > 0 && x < 10
&& z > 5 && z < 20
&& y > 5 && y < 20
if( x > 0 && x < 5
&& z > 5 && z < 10
&& y > 5 && y < 10
) return 2 // brick
return 0
}
Expand Down

0 comments on commit 3769ca4

Please sign in to comment.