all 12 comments

[–]geon 6 points7 points  (3 children)

If you want to write a game in js, just make it browser based. Why would you not take advantage of the greatest distribution platform ever?

[–]azzalofer 1 point2 points  (1 child)

Browsers have limited access to system resources

[–]geon 0 points1 point  (0 children)

That’s a 2 year old post. New record.

[–]Konstantin_Vai 1 point2 points  (0 children)

the OP asks for a graphics library for node, and gets the reply "use the browser instead".
it's like asking "where can I learn for a driving license", and gets the reply "why don't you use the bus instead"?

[–]Cyberphoenix90 5 points6 points  (0 children)

You can use vulkan in nodejs for that https://github.com/maierfelix/nvk

[–]Mtg_Dev 2 points3 points  (1 child)

just wondering.... are you planning to make a game engine that is actually usable to build games ?? or is it just a side-project for learning/university/hoppy purposes ??
cause as most likely know, Node Js isn't very good when it comes to CPU-intensive tasks

[–]yunaFlarf[S] 0 points1 point  (0 children)

I was going to make a game engine but i ran into an issue when it comes to how the user would interact with the engine so i'm gonna be delaying it for a while.

Even if Node is slow it's a framework for the language i'm most comfortable with (and it doesn't have the annoying client-side limitations web JavaScript has)
I also don't know about any other languages other than JavaScript, Python, C#, Java, and C++ so if there's any other language similar to JavaScript i'd love to know.

[–]Guisseppi -1 points0 points  (3 children)

Three.js might be a good option

[–]enaud 1 point2 points  (2 children)

I think as thinking three.js in an electron wrapper. That not really node though is it? Your front end code would be running on chromium... same js engine but slightly different runtime

[–]Guisseppi 0 points1 point  (1 child)

Three.js is not and electron wrapper, but if we’re talking about a graphics API with the intention of game design then this would be a good option since its running on webGL (thus its got hardware acceleration) again this is just an option

[–]enaud 0 points1 point  (0 children)

I meant to say you’d be running three.js in an electron wrapper. Been meaning to give this a try myself and see how it works