I've been trying to build a raycaster recently, but I keep hitting roadblocks in my programming. When I don't grasp certain math concepts or organize my code well, I often end up with a buggy codebase that leaves me feeling burnt out. It's disheartening because I really want to create something tangible! I've been coding for about two years, primarily in C, but I often struggle with understanding code structure and the problems I need to solve before diving into programming. Has anyone else faced this challenge and found a way to push through?
1 Answer
Don't be too hard on yourself! It’s perfectly normal to have buggy code. Share it and get feedback; that’s part of the journey. You don’t have to complete a project in one go. Think of it as an exploration—every line of code you write teaches you something new!

Here’s my attempt at it: [https://ctxt.io/2/AAD4fbxWFw]. I think it’ll need a complete rewrite since I'm struggling with world coordinates and the basic concepts of raycasting!