C & SDL Game for Ludum Dare Jam
Loading...
168
views
Loading...
Uploader Comments (RyanPridgeon)
see all
All Comments (4)
-
amazing!
-
im guessing he uses sin/cos and does a ray cast for each degree to see if a tile is visible in the player's perspective.
Loading...
how does the light work?
Z3r0XoL 6 months ago
@Z3r0XoL It's not too efficient. For rendering, each tile within the bounds of the screen checks 20 points between its nearest corner to the player and the player. If any of those points hit a wall, it doesn't render.
RyanPridgeon 6 months ago