Your Digital Media Has Never Looked So Good

 
User avatar
marcelo.cabral
Topic Author
Posts: 308
Joined: Tue Mar 20, 2012 8:53 am

New project Prince of Persia (open source available)

Thu Mar 10, 2016 8:51 am

------
EDIT: June 1st 2016

Here is the source code:
https://github.com/lvcabral/Prince-of-Persia-Roku


-------
Hi roku dev friends,

This is a project that's taking my nights for the last weeks and I will open source soon:
https://www.instagram.com/p/BCS_AgSkM-q/

Anybody interested in collaborate?

This is a quick video from the 0.2 alpha, I'm already starting 0.5 and will create a git project and a blog post of the process when this release is done.

regards,

Marcelo Lv Cabral
http://lvcabral.com
Last edited by marcelo.cabral on Wed Jun 01, 2016 12:25 pm, edited 3 times in total.
 
EnTerr
** Valued Community Member **
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: New project (soon will be open sourced)

Thu Mar 10, 2016 1:39 pm

Short video from Prince of Persia game? I am confused.
 
User avatar
marcelo.cabral
Topic Author
Posts: 308
Joined: Tue Mar 20, 2012 8:53 am

Re: New project (soon will be open sourced)

Thu Mar 10, 2016 3:38 pm

EnTerr wrote:
Short video from Prince of Persia game? I am confused.


Few years ago Jordan Mechner the original author of Prince of Persia released the source code of the original game for Apple II, and a lot of new ports were done afterwards.

in order to learn more about the Roku Draw2D I'm porting it for Roku from the original code and an Html5 port.
 
User avatar
Komag
Posts: 651
Joined: Fri Aug 22, 2014 3:42 am

Re: New project (soon will be open sourced)

Thu Mar 10, 2016 7:13 pm

That's very ambitious, I'll be interested to see the final result!
 
User avatar
marcelo.cabral
Topic Author
Posts: 308
Joined: Tue Mar 20, 2012 8:53 am

Re: New project (soon will be open sourced)

Thu Mar 10, 2016 8:54 pm

Komag wrote:
That's very ambitious, I'll be interested to see the final result!


I already have the maps (all levels) and the kid (prince) engine working, and yesterday I finished all animated tiles (chopper, spikes, exit door, loose plate etc.)

What is missing: picking objects (potion, sword), the enemies (animation and AI) , the fight engine, and the cut scenes.

As I said I'm porting so, most of my work is focused on adapting to Brigscript solutions from the HTML5 (Phaser Framework) and 6502 Assembly, but the sprites, algorithms and decision trees are there so the port is going fast.
Last edited by marcelo.cabral on Thu Mar 10, 2016 10:08 pm, edited 1 time in total.
 
User avatar
marcelo.cabral
Topic Author
Posts: 308
Joined: Tue Mar 20, 2012 8:53 am

Re: New project (soon will be open sourced)

Thu Mar 10, 2016 10:07 pm

I created a quick video with the current state:

https://youtu.be/r6B0xgb8GSE
 
EnTerr
** Valued Community Member **
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: New project (soon will be open sourced)

Thu Mar 10, 2016 11:18 pm

It would be a really neat thing indeed! But there would be an issue distributing the result, wouldn't there? I read that
http://arstechnica.com/gaming/2012/04/original-apple-ii-prince-of-persia-source-code-published-by-creator/ wrote:
... Although the source code of the game is now available to study, modify, and run, it’s technically not open source software. Ubisoft still holds exclusive distribution rights for the franchise.
 
User avatar
Komag
Posts: 651
Joined: Fri Aug 22, 2014 3:42 am

Re: New project (soon will be open sourced)

Fri Mar 11, 2016 5:32 am

recolor and rebrand!
 
User avatar
marcelo.cabral
Topic Author
Posts: 308
Joined: Tue Mar 20, 2012 8:53 am

Re: New project (soon will be open sourced)

Fri Mar 11, 2016 9:48 am

EnTerr wrote:
It would be a really neat thing indeed! But there would be an issue distributing the result, wouldn't there? I read that
http://arstechnica.com/gaming/2012/04/original-apple-ii-prince-of-persia-source-code-published-by-creator/ wrote:
... Although the source code of the game is now available to study, modify, and run, it’s technically not open source software. Ubisoft still holds exclusive distribution rights for the franchise.


Well, I'm not planing to release it at the channel store or as a product, you can find several projects that re-implement PoP:

http://www.princed.org/downloads/

Including the one I'm porting from:

https://ultrabolido.wordpress.com/

My plan is to release it to github for the community, I hope Ubisoft will not complain, as did not in the other cases.
 
User avatar
Komag
Posts: 651
Joined: Fri Aug 22, 2014 3:42 am

Re: New project (soon will be open sourced)

Fri Mar 11, 2016 10:03 am

that sounds very reasonable to me
 
User avatar
marcelo.cabral
Topic Author
Posts: 308
Joined: Tue Mar 20, 2012 8:53 am

Re: New project Prince of Persia (soon will be open sourced)

Sun Mar 27, 2016 10:24 pm

New version is ready (Alpha v0.6), see the changes:
https://www.youtube.com/watch?v=gYzuH9f3ADU

If you have a Roku 3 or 4 and want to try it, send me a PM so I can send you the link for the private channel.

The changeset is below:
* Add: Intro screens and song
* Add: Start Menu with Screen Mode options
* Add: Allow use the remote control straight or sideways
* Add: Event to Open Gate and Exit Door
* Add: Event to move to next level when enter Exit Door
* Add: Change level with remote keys (REW and FF)
* Add: Bitmap font support for Status Bar
* Add: Event to pick Potion and drink
* Add: Event to Pick Sword
* Add: Flash background depending on the CMD_EFFECT
* Add: Status bar shows kid lives according to health and maxHealth properties
* Add: Status bar blinks when is the last kid's life
* Add: Healing Potion (red): increases 1 energy point
* Add: Life Extension Potion (big red): Extended energy in 1 point and restore all
* Add: Poison Potion (blue): decreases 1 energy point
* Add: Injury from medium fall: : decreases 1 energy point
* Add: Die from high fall
* Add: Sound Effects (Run, Bump, Gate, Suspense, Exit Door, Drink, Land, Loose, Spikes, Sword, Button)
* Add: Loose plate that fall over a button should press it (L4R16->R17) - Not on JS
* Add: Restart game with death

Plus several bug fixes.
 
User avatar
Komag
Posts: 651
Joined: Fri Aug 22, 2014 3:42 am

Re: New project Prince of Persia (soon will be open sourced)

Mon Mar 28, 2016 2:05 am

Very impressive, almost hard to believe it can be done on Roku!
 
Romans_I_XVI
Posts: 227
Joined: Wed Nov 19, 2014 10:25 pm
Contact:

Re: New project Prince of Persia (soon will be open sourced)

Mon Mar 28, 2016 12:03 pm

I'm guessing you can't move and jump at the same time? Seems like that's always a difficult hurdle with not being able to receive multiple buttons simultaneously.

Very cool though. Never realized the original was open source.
 
User avatar
marcelo.cabral
Topic Author
Posts: 308
Joined: Tue Mar 20, 2012 8:53 am

Re: New project Prince of Persia (soon will be open sourced)

Mon Mar 28, 2016 12:38 pm

Romans_I_XVI wrote:
I'm guessing you can't move and jump at the same time? Seems like that's always a difficult hurdle with not being able to receive multiple buttons simultaneously.

Very cool though. Never realized the original was open source.


As you can see in the video, we can jump when running, because of the "inercia" the original algorithm had implemented, the only limitation is the "shift" key that allow you to walk or hang, so I had to implement it as a on/off toggle button, that works ok, if you train you can run, jump and hang as you do in a PC keyboard.
 
User avatar
marcelo.cabral
Topic Author
Posts: 308
Joined: Tue Mar 20, 2012 8:53 am

Re: New project Prince of Persia (soon will be open sourced)

Mon Mar 28, 2016 12:42 pm

BTW if you guys want to try it let me know in a PM I can send you link for the private channel.

The source I will open when I have it with most of the features done, I'm having a lot of fun doing it so far :)

Who is online

Users browsing this forum: No registered users and 3 guests