Commit graph

567 commits

Author SHA1 Message Date
Zed A. Shaw
c1b7df1850 New raycaster based on Lode's tutorial works, now to add textures. 2025-01-12 12:00:11 -05:00
Zed A. Shaw
96b44a4eb2 Fenscaster is now using the first version of Lode's DDA raycasting algorithm but the coordinates/angles in the left map view don't matchthe right view, and the right view distorts the distance to far wall so they're viewed at 'infinity'. 2025-01-09 12:54:00 -05:00
Zed A. Shaw
75a927e192 Removed some of the constants to make it easier to change later. 2025-01-08 13:32:38 -05:00
Zed A. Shaw
35f6fcc01d We now have a scene we can twirl around and we can see the rays being cast in the left side. 2025-01-08 13:22:14 -05:00
Zed A. Shaw
b30ac77049 Can now use keys to move around. 2025-01-08 13:02:06 -05:00
Zed A. Shaw
972b432d51 Basic fenster rewrite of the original sfml version, but need to bring back the keyboard controls. 2025-01-08 12:31:04 -05:00
Zed A. Shaw
80ac4cefba Initial setup for the fenster based raycaster. 2025-01-08 10:25:17 -05:00
Zed A. Shaw
d5047c00e2 Did a version of the raycaster that uses a pixel buffer sent to a texture that goes to a sprite that goes on a frog that's on a log on the bottom of the ocean under a tortoise that's carrying a sack that has the... 2025-01-07 12:49:06 -05:00
Zed A. Shaw
e8a32ba9f3 Tinkered with strafing but I too dumb. 2025-01-06 12:19:38 -05:00
Zed A. Shaw
f98c9ddb91 Make timcaster work so people can walk around inside their computer's ram until it crashes. 2025-01-06 11:56:12 -05:00
Zed A. Shaw
cf539296a5 Raycaster is smoother without changing much. Big debate is should left-right and forward-back at the same time cancel out motion or should they be exclusive since you can't do both. 2025-01-06 11:41:44 -05:00
Zed A. Shaw
bf77723f70 Fixed the map view on the left so it shows the correct visible squares. 2025-01-06 10:59:55 -05:00
Zed A. Shaw
ec332a3e2d Small tweak to allow changing the map, and then added a hirdrac suggestion to vsync. 2025-01-05 12:18:19 -05:00
Zed A. Shaw
d5a372e751 Basic transliteration of the pycaster.py to work in SFML. The grid map on the left doesn't work right, but the rendering on the right does. Also the key detection is using discrete keypress instead of key up/down. 2025-01-05 12:10:28 -05:00
Zed A. Shaw
faead338e2 Add a README to start. Not much in it. 2025-01-05 10:10:11 -05:00
Zed A. Shaw
ca80736d7c First cut at a replica of the python raycaster. Left side almost works the same but have to sort out math differences. 2025-01-04 12:20:41 -05:00
Zed A. Shaw
6b181382bd First build that actually works. SDL_main errors before but didn't figure out the cause. 2025-01-02 11:47:02 -05:00