Live data from Hacker News

Prince of Persia in JavaScript

princejs.com

81–90 of 237 posts

Re: Prince of Persia in JavaScript

#81
post #67

Earlier quoted context omitted.

Was that version ever released? We're you at Broderbund at the time? :-)

Yes of course it was released ;-) https://www.youtube.com/watch?v=aIscoVqTwpY And yes, I was working with Broderbund (from Paris) at that time, it was a great time! Translating 6502 Apple II code to Atari 1040ST 68000 code was funny...

Interesting... Care to share what was overall approach? I. E. More bottom up in literally translating instructions and assuming it will lead to same results if translated accurately enough ; or top down looking to code specific results / behaviour and using original code more as a reference... Or some other approach :)

Re: Prince of Persia in JavaScript

#82
post #52
post #50

Earlier quoted context omitted.

Why? You have global volume control, music players have it. To me it's the same as asking every website for brightness adjustment bar or font size control.

Because we don't want to have to readjust everything else around your special snowflake site?

Hmmm, pulseaudio volume control allow me to change the volume and device used for every single source (app, firefox tab...) I am running.

Re: Prince of Persia in JavaScript

#83
post #80
post #42

Quite impressive, it's amazing how embedded that "stop" animation the character does when he runs in my memory, used to play this quite a bit when i was small

you might enjoy this https://www.youtube.com/watch?v=wKgLfqOVHco

This is fantastic, thanks for linking it! Yes like GP I haven't played this game in more than 2 decades but the movements are still etched into my memory, and how brutal the difficulty is.

I used to love two games at the time, this and Zak McKraken and the Alien Mindbenders. I managed to played the latter to completion in my teenage years, but I never finished PRINCE.EXE, perhaps it's time...

Re: Prince of Persia in JavaScript

#84
post #67

Earlier quoted context omitted.

Yes of course it was released ;-) https://www.youtube.com/watch?v=aIscoVqTwpY And yes, I was working with Broderbund (from Paris) at that time, it was a great time! Translating 6502 Apple II code to Atari 1040ST 68000 code was funny...

Interesting... Care to share what was overall approach? I. E. More bottom up in literally translating instructions and assuming it will lead to same results if translated accurately enough ; or top down looking to code specific results / behaviour and using original code more as a reference... Or some other approach :)

Um, that was really a long time ago...

As I can remember, my approach was the first one: "bottom up in literally translating instructions and assuming it will lead to same results if translated accurately enough". That was not to difficult to achieve.

The funny thing was that Jordan Mechner used every bit of available memory in the Apple II computer, so I had to be very careful ;-)

Then the hard part: create the input and output codes that were totally different on the two computers, then the code for sounds and music also totally specific and then I wanted to have better graphics. So I ended up by creating a sprite editor, in assembly language, for my graphic artist colleague so that we can recreate all graphic assets and put color in it...

Re: Prince of Persia in JavaScript

#85
post #69

It's neat to see this in a browser, but I never really liked playing the game. The visuals are cool, but the life-like movement always annoyed me.

Why?

It's weird that the character 'overruns' like in a cartoon and makes control quite annoying.

Re: Prince of Persia in JavaScript

#89
This is awesome. Brings back so many memories as a kid. Thank you. This is built with phaser. I am not very good at this game but if you need to recover life mid game, you can use this.

Phaser.GAMES[0].state.getCurrentState().ui.player.addLife()

Is this open source?

Post reply on HN