Re: Prince Of Persia.net written in C#
Posted: September 12th, 2014, 12:38 am
I want to ask polipo, how do you solved the prince restart level on dead, becuase it was so bugged....
Prince of Persia community forum
https://forum.princed.org/
Fixed now, i will release now!says Salvadorc17 : I want to ask polipo, how do you solved the prince restart level on dead, becuase it was so bugged.
Its a problem on graphics driver for monogame, for replicate i can investigate on a real linux machine, now i dont have it.Norbert wrote:
Yes, I can run that under Linux.
Unfortunately, in-game, it only has one frame every 9 (or so) seconds, so it's too slow to play the game.
This errors are present in all version, there are some missing kid sprite graphics, i dont found it on original mac source code, thisNorbert wrote: of errors is useful:....
I get similar errors but the game is not slow for me: viewtopic.php?p=15329#p15329Norbert wrote:Still this slow for me.
Maybe this overview of errors is useful:
According to FRAMEDEF.S:polipo wrote:there are some missing kid sprite graphics, i dont found it on original mac source code
David:
According to FRAMEDEF.S:
Frame 166 (of the kid) uses image $0f (15), just like frame 15.
Frame 86 uses image $1d (29), just like frame 29.
How do you solved it, i trough you need to create a new player instance every times level reset, or im wrong???Polipo:
Fixed now, i will release now!
>>only for windows and clickonce, linux i will release in next days
(Does the "source" in your post mean the Apple II source?)salvadorc17 wrote: Can you show me what sprites are you talking about, becuase i cant find the sprites images into the source...
yes, i use the "StartNewLife()" function also i have fixed some bugs on player dead.salvadorc-> you need to create a new player instance ?
yes thanks, i have changed the kid_sequence to appropriate spriteset.david->According to FRAMEDEF.S:..
No, now the kid sprite set is completeThat changes means plus new sprites???
No yet, as soon i will upload the new sourcecodeyou have uploaded all recently made to the source code???
Do you mean the David's open-source port of PoP (pre-release) topic?polipo wrote: Today i have discovered the david's prince reassembled pc version. Great work David!
Code: Select all
public RoomNew NextRoom(RoomNew room)
{
int c = room.roomIndex;
if (c != 0) {
c = System.Threading.Interlocked.Increment(ref c);
}
foreach (RoomNew r in rooms) {
if (r.roomIndex == c) {
return r;
}
}
return blockRoom;
}
public RoomNew PreviuosRoom(RoomNew room)
{
int c = room.roomIndex;
if (c != 0) {
c = System.Threading.Interlocked.Decrement(ref c);
} else if (c > 1) {
c = System.Threading.Interlocked.Decrement(ref c);
}
foreach (RoomNew r in rooms) {
if (r.roomIndex == c) {
return r;
}
}
return blockRoom;
}
YesDavid wrote: Do you mean the David's open-source port of PoP (pre-release) topic?
Dear,salvadorc17 wrote:Hey, im trying to add debug code to the project, this functions are well made???
Code: Select all
public RoomNew NextRoom(RoomNew room) { int c = room.roomIndex; if (c != 0) { c = System.Threading.Interlocked.Increment(ref c); } foreach (RoomNew r in rooms) { if (r.roomIndex == c) { return r; } } return blockRoom; } public RoomNew PreviuosRoom(RoomNew room) { int c = room.roomIndex; if (c != 0) { c = System.Threading.Interlocked.Decrement(ref c); } else if (c > 1) { c = System.Threading.Interlocked.Decrement(ref c); } foreach (RoomNew r in rooms) { if (r.roomIndex == c) { return r; } } return blockRoom; }
it means? for debug usually are function for write a log or event for trace errors, in your code i dont see it...debug code..