You can make PS2 games in JavaScript

jslegenddev.substack.com

206 points by tosh 7 hours ago


kamranjon - 6 hours ago

This is pretty incredibly - Fabrice Bellard builds stuff that just has such a wide spread impact - so cool that QuickJS enabled an old system like PS2 to have a bit of a homebrew revival through this AthenaEnv project

Flux159 - 2 hours ago

The interesting part here is about AthenaEnv. It looks like it uses QuickJS for the Javascript interpreter and wraps around the native system libraries that the PS2 provides.

I'm wondering if there's a modern similar project that would allow writing Javascript Canvas games (WebGPU / WebGL) and publishing on Switch/2, PS5, and Xbox.

From my understanding, they explicitly disallow JITs so you can't just wrap your JS game with Electron / Node Webkit and use V8. I'm not sure if anyone has tried publishing a game using a V8-jitless electron fork - the sdks for consoles are under NDA so there's not really much written about it publicly & most games using Unreal or Unity don't deal with these things themselves.

PC, Mac, and even mobile are surprisingly easier here because you can just run the JS via electron or in a webview on mobile.

saghul - 42 minutes ago

A similar thing, also using QuickJS, but for the Nintendo Switch: https://github.com/TooTallNate/nx.js (I'm not the author).

dinobones - 5 hours ago

Mega cool, I’m curious if there’s a way to burn the ISO to a disc and get this playing on a physical console?

IvanK_net - an hour ago

Maybe they could simply make a modern web browser for PS2, where you would simply open a website with the game :)

ikamm - 4 hours ago

Already been posted here twice by the dev in the past two months...

https://news.ycombinator.com/item?id=45436166

https://news.ycombinator.com/item?id=45778448

twosdai - 6 hours ago

Super cool. Thanks for sharing this. I've been looking for something like this for a while.

mclau153 - 5 hours ago

people will do anything to avoid using .gdscript and Godot....

martijnvds - 3 hours ago

IBM PS2?

Brian-Watkins - 3 hours ago

[dead]

Steve-Tony - 4 hours ago

[dead]

animanoir - 5 hours ago

[dead]