I will use this thread to document my (announced) attempt to add local 'multiplayer' to SDLPoP.
Some days I may add multiple posts, some weeks none.
Norbert's SDLPoP dev log
Re: Norbert's SDLPoP dev log
So far, I don't think I've seen any functions that start with descriptions of what they do, so I'm slowing trying to figure this out, and documenting it myself along the way.
I already find myself reformatting functions completely, to make sense of them. Adding Hungarian notations.
In do_startpos(), x seems to be a randomly picked character, used for different things. Rewriting this too.
I already find myself reformatting functions completely, to make sense of them. Adding Hungarian notations.
In do_startpos(), x seems to be a randomly picked character, used for different things. Rewriting this too.
Re: Norbert's SDLPoP dev log
I've restarted. Instead of rewriting everything, I'm trying to work with all the uglyness.
Also, instead of giving the struct level_type sbyte start_dir[8] etc, I'm using p8_start_dir etc, and use a separate start_dir[8] (for looping etc), so I don't need to shuffle MP bytes around after the program runs load_from_opendats_to_area() in load_level().
Also, instead of giving the struct level_type sbyte start_dir[8] etc, I'm using p8_start_dir etc, and use a separate start_dir[8] (for looping etc), so I don't need to shuffle MP bytes around after the program runs load_from_opendats_to_area() in load_level().
Re: Norbert's SDLPoP dev log
This didn't work out, I'm locking this thread.