Fresh x Babylon.js x Monaco Editor on Deno Sandbox API
moveRight()Move player to the right (+X direction)moveLeft()Move player to the left (-X direction)moveUp()Move player upward (+Z direction)moveDown()Move player downward (-Z direction)stay()Stay in the current positionisObstacleRight()Returns true if obstacle is on the rightisObstacleLeft()Returns true if obstacle is on the leftisObstacleUp()Returns true if obstacle is aboveisObstacleDown()Returns true if obstacle is belowrepeat(conditionFn, actionFn)Repeat actionFn while conditionFn returns true (max 10 times)while and for loops are not available in the sandbox.repeat() function instead for iteration.