Log In  


Cart #cast_mirrored-0 | 2024-09-23 | Code ▽ | Embed ▽ | No License
2

I mirrored the map on the cast.p8 demo.

Changes in code

Before:

1 -- raycasting demo
2 -- by zep

5 fov = 0.2 -- 0.2 = 72 degrees

58 if (btn(⬅️)) dx-=1
59 if (btn(➡️)) dx+=1

62 if (btn(⬅️)) pl.d+=0.02
63 if (btn(➡️)) pl.d-=0.02

After:

1 -- raycasting demo but mirrored
2 -- by mosnar23 (og by zep)

5 fov = -0.2 -- 0.2 = 72 degrees

58 if (btn(➡️)) dx-=1
59 if (btn(⬅️)) dx+=1

62 if (btn(➡️)) pl.d+=0.02
63 if (btn(⬅️)) pl.d-=0.02

2



[Please log in to post a comment]