загляни в поиск на форуме.
ну а если так, то попытаюсь быстро тебе кодом объяснить:
const playercol=1, worldcol=2
...
entitytype player, playercol
...
entitytype world, worldcol
...
collisions playercol, worldcol, 2, 3
while not keyhit(1)
updateworld()
renderworld()
flip
wend
end