Log In  

Cart #32807 | 2016-11-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9

Cart #32560 | 2016-11-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9

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)

Cart #32567 | 2016-11-16 | Code ▽ | Embed ▽ | No License

pretty cool indeed :o

P#32568 2016-11-16 16:12 ( Edited 2016-11-16 21:15)

Awesome - nice work!

P#32580 2016-11-17 09:37 ( Edited 2016-11-17 14:37)

J'aime beaucoup.... Chez-moi j'ai dû changer == 0 pour != 1 dans la function move_player ; je ne comprends pas pourquoi

P#33343 2016-12-11 14:07 ( Edited 2016-12-11 19:07)

Did you create the tutorial already?

P#45292 2017-10-17 13:52 ( Edited 2017-10-17 17:52)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-01-31 12:31:37 | 0.011s | Q:25