News for hackers. Stuff that matters.
Re:Prince of Persia in JavaScript by ncfausti on Tuesday December 28, 2021 @12:24AM (#29710753)
Can you add action buttons? The directional buttons were easy enough to infer, but not sure what other types of input are possible. (I’m on mobile)
Re:Prince of Persia in JavaScript by BtM909 on Tuesday December 28, 2021 @07:03AM (#29712926)
Re:Prince of Persia in JavaScript by lokedhs on Tuesday December 28, 2021 @04:44AM (#29712048)
I'm not on mobile and I also cannot figure out where the action button is. One can get as far as finding the sword, but I have to idea how to pick it up.
Re:Prince of Persia in JavaScript by dhr on Tuesday December 28, 2021 @09:13AM (#29713939)
Seems like the controls are the same as the original!

Use the Shift key to pick up the sword. And I think Space to attack and the Up cursor key to block when you get to the swordsman.

Re:Prince of Persia in JavaScript by _kst_ on Tuesday December 28, 2021 @06:19PM (#29719558)
I'm using a Windows laptop with an external USB keyboard. The Shift key didn't do anything. But the Shift key on the laptop's own keyboard worked.
Re:Prince of Persia in JavaScript by blondin on Tuesday December 28, 2021 @12:35AM (#29710812)
i just tried it on mobile and i am very impressed.

the movement controls are very intuitive. they don't hit accurately but they work in an intuitive way. i tapped the four directions and four quadrants of the play screen. and the character responded as i expected.

i am with you though. i have no idea how i will use the sword when i get it.

Re:Prince of Persia in JavaScript by justinclift on Tuesday December 28, 2021 @09:07AM (#29713879)
Interesting. Only the four direction buttons work for me, regardless of num lock setting. eg 2, 4, 6, 8. None of the corner buttons nor middle button have any kind of effect.

This is when using Firefox on Linux, and using a standard 101-key external keyboard.

Re:Prince of Persia in JavaScript by unityByFreedom on Tuesday December 28, 2021 @02:01AM (#29711242)
Slash sword is the middle tap. Took me awhile to figure that out but makes sense now that I know since you can't slash backwards.
Re:Prince of Persia in JavaScript by wruza on Tuesday December 28, 2021 @04:36AM (#29712006)
How do you walk forward slowly? Tapping bottom edges does “run” action for me.

Edit: figured it out, tap on the center and swipe to the left/right to walk.

Re:Prince of Persia in JavaScript by commandlinefan on Tuesday December 28, 2021 @08:47PM (#29720769)
Hm, I couldn’t get it to work on my iPhone (not that I actually expected it to) - I could do some things but the controls didn’t seem to work consistently.
Re:Prince of Persia in JavaScript by tda on Tuesday December 28, 2021 @02:44AM (#29711450)
I managed to get halfway through level 2 on my phone. I think the screen is a 3x3 button grid. Center is 'action' for swords and potions.
Re:Prince of Persia in JavaScript by cheschire on Tuesday December 28, 2021 @12:27AM (#29710769)
Tap on the screen at diagonals. It’s location context aware.