3 ms·
Just curios, why everything is in a single large file (doom.go ~46K LOC)? Is it because of how Go handle modules?
by romperstomper 1y ago
Just curios, why everything is in a single large file (doom.go ~46K LOC)?
Is it because of how Go handle modules?
- donatj 1y agoNah, I suspect it's just because it's a machine translated port of the original C to Go > The original C code was converted to Go using (modernc.org/ccgo/v4), by cznic (https://gitlab.com/cznic/doomgeneric.git https://gitlab.com/cznic/doomgeneric.git). This was then manually cleaned up to remove a lot of manual pointer manipulation, and make things more Go-ish, whilst still maintaining compatibility with the original Doom, and its overall structure.
- romperstomper 1y agoAh, I see, thanks!
- EstIgnavus 1y agoYes, that's exactly correct. I had intended to break it apart back to the original Doom source layout, but I haven't completed that yet. I'm not 100% sure if that's a good idea anyway.
- nasretdinov 1y agoI must say I'm really surprised it's so small too, for a reasonably complicated game