Tuesday, 1 October 2013

Element / Modifier for Apoplexy


Element / Modifier for Apoplexy

For parse the XML file from Apoplexy (PrinceOfPersia Level Editor) i must create a new Enum,
i havent found the possibility to make a nested enum, my solution is make a pattern mask,
Like this:


// enum standard
 public enum TileType
        {
            space = 0,
            floor = 1,
            spikes = 2,
            posts = 3,
            gate = 4,
            dpressplate = 5, //;down
            pressplate = 6, 
....

//first 4 byte are element type the rest is the modifier, _x tells the result 

   public enum Tile
        {
            space_1   = 0x00000000,
            space_2   = 0x00000001,
            space_3   = 0x00000002,
            space_4   = 0x00000003,
            space_5   = 0x000000FF, 

            floor_6   = 0x00010000,
            floor_7   = 0x00010001,
            floor_8   = 0x00010002,
            floor_9   = 0x00010003,
            floor_10  = 0x000100FF,

            spike_11  = 0x00020000,
            spike_12  = 0x00020001,
            spike_13  = 0x00020002,
            spike_14  = 0x00020003,
            spike_15  = 0x00020004,
            spike_16  = 0x00020005,
            spike_17  = 0x00020006,
            spike_18  = 0x00020007,
            spike_19  = 0x00020008,
            spike_20  = 0x00020009,

            posts_21  = 0x00030000,
.....

Monday, 23 September 2013

Open Project

Open Project

Now, the PoP.net project is open for join, everyone can send me an email trough Codepelex' site "Source Repository".
I'm looking for someone help me to continue the developing or make graphics, idea etc.

Tuesday, 17 September 2013

Room wall algorithm

Room wall algorithm

The original PoP have an algorithmn for determine the wall variance, for draw a realistic stone wall, it adds gray block, creak in the blocks etc.

I found some documentation in "Prince of Persia Specifications of File Formats" (thanks to Norbert) but there's not the all logic but only the first part.

I have started to study and implement the gray stone and the first start wall block,
this is the results from PoP.net vs PoP classic


Wednesday, 11 September 2013

Splash News

Splash News

I spent some time for do change the Monogame assembly from OpenGL to Direct X 9, i have linked the new Monogame prerelease 3.2 and changed from OPENTK library to SHARPDX library.

In this passage PoP.net lost the Windows XP compatibility but the OPENTK are some buggy like framerate and some content importer lacks, now PoP.net is compatible only with
  • Windows Vista  Sp1 or greater
  • Windows 7
  • Windows 8
Resfresh source repository and codeplex downloads

New features:
  • the SPLASH sequence, whem kid or enemy hit the splash image show and play the sound effect

Thursday, 5 September 2013

Summer is finish

SUMMER IS FINISH - AUTUMN WILL COMING

The summer is near to end, the autumn will coming, i'm ready to continue develop the PoP.net

Last News...
I'm stopping the PoP.net editor because Norbert (prince of persia forum admin and developer) will introduce new features on his Apoplexy (a Prince of Persia Level Editor), he will develop an XML save format and i want USE his good editor for use with PoP.net.


Friday, 21 June 2013

Prince Of Persia Editor

Prince of Persia Editor

I tried to find a good level/maze editor for PoP.net but i dont found anything that would be fine.

For this reason I started to build a level editor, the development is quite slow since the summer has now arrived....

I have refreshed the source repository now there are

-> some bugs fixed
-> customization features
-> sound files compressed
-> changeed to monogamer library 3.0.1

and the initial PoP editor bones...


Tuesday, 4 June 2013

Next Step customization ?!?

Next Step customization ?!?

Next week i will start to customize PoP.net my goal is to change graphics and make a Flash Special version of Prince Of Persia....
And the future ? to make a generic engine for make platform game like PoP....

For customize your PoP.net simply modify the file in the root of the appllication called
app.conf

like this for "Lion" customization

     <!-- KID_SPRITE -->
    <add key="CONFIG_sprite_kid" value="Sprites/Player/Kid_lion/"/>
    <!-- GUARD_SPRITE -->
    <add key="CONFIG_sprite_guard" value="Sprites/Guard/Guard_dos/"/>
    <!-- SONGS_DIRECTORY -->
    <add key="CONFIG_sound" value="Sounds/dos/"/>
    <!-- SONGS_DIRECTORY -->
    <add key="CONFIG_songs" value="Songs/dos/"/>
    <!-- ITEMS_DIRECTORY -->
    <add key="CONFIG_items" value="Items/"/>
    <!-- TILES_DIRECTORY -->
    <add key="CONFIG_tiles" value="Tiles/lion/"/>
    <!-- CONFIG_PATH_RESOURCES -->
    <!-- <add key="CONFIG_path_content" value="Content"/>-->
    <add key="CONFIG_path_Levels" value="Levels"/>
    <add key="CONFIG_path_Rooms" value="Rooms"/>
    <add key="CONFIG_path_Sequences" value="Sequences/lion/"/>



Some examples..