Norbert's SDLPoP dev log

Prince of Persia related subjects that do not have their own boards.
Locked
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Norbert's SDLPoP dev log

Post by Norbert »

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.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Norbert's SDLPoP dev log

Post by Norbert »

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.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Norbert's SDLPoP dev log

Post by Norbert »

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().
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Norbert's SDLPoP dev log

Post by Norbert »

This didn't work out, I'm locking this thread.
Locked