=======PARKOUR==========
----- esta en el suelo = grounded
create:MUNDO
MUNDO.3D
(x, y, z)
parent:MUNDO
create:player {
player.3D
spawn.(0, 0, 0)
whenK(W) player(0,0,+1)
whenK(S) player(0,0,-1)
whenK(A) player(+1,0,0)
whenK(D) player(-1,0,0)
salto = whenK(SPACE){
player(0,+1,0 1ftg)
later:(pos:former)}
caer = if block touch.player then
player.grounded = true
else
player.grounded = false
if player.grounded = false then
move.repeat(0,-1,0)
if player.pos(0,-10,0) then
player.move(spawn)
if player:ejecute salto then
grounded = false
if terminate:salto then
detect(grounded)
create:block
block.3D
move.(0,-1,0)
scl.(2,0.1,4)
create:block
block.3D
move.(0,-1,2)
scl.(2,0.1,4)
create:block
block.3D
move.(2,-1,4)
scl.(2,0.1,4)
create:block
block.3D
move.(0,-1,6)
scl.(2,0.1,4)
create:block
block.3D
move.(-2,-1,8)
scl.(2,0.1,4)
create:final
block.3D
move.(0,-1,10)
scl.(2,0.1,4)
if player.touch final then
backspace(game)
print(gracias por jugar :p)
To embed this project on your website, copy the following code and paste it into your website's HTML: