3
\$\begingroup\$

I was wondering if Node.js was suitable for making games and apart from threads and engines, a big problem is can I port my game to Xbox or PS3/PS4?

\$\endgroup\$

2 Answers 2

5
\$\begingroup\$

Node.js runs on the V8 JavaScript engine:

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

V8 itself is C++ and can be embedded in any C++ application.

Thus, it is theoretically possible to use Node on consoles, although I'm not aware offhand of anybody who has tried. You may or may not run into porting issues as you would with any codebase.

That said, I don't see why you'd choose to use Node for client-side work on consoles, given the hoop-jumping you'll need to do.

\$\endgroup\$
0
0
\$\begingroup\$

I'm pretty sure that you'll have a hard time using V8 on game consoles because it's going to need to generate code into writable executable pages, which usually isn't allowed.

If you ask the developer support folks for the console you're targeting, you may be able to make a business case to make this work.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.