Here is my raycasting cartridge. I will do some tutorials to explain how it works.
You can use C to toggle textures and X to slide instead of walk.
P#32563 2016-11-16 15:27 ( Edited 2017-10-17 17:52)
oil on the wall:
function move(nb) tmpx = p.x + (p.speed * cos(p.angle)) * nb if (grid[flr(p.y)][flr(tmpx)] == 0) p.x=tmpx tmpy = p.y + (p.speed * sin(p.angle)) * nb if (grid[flr(tmpy)][flr(p.x)] == 0) p.y=tmpy end |
P#32564 2016-11-16 15:39 ( Edited 2016-11-16 20:39)
[Please log in to post a comment]