Archived

This topic is now archived and is closed to further replies.

JavaScript in games

This topic is 6363 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, Me and some buddies are working on a strategy game, but since we don''t think we''ll ever finish it, we''re doing it for fun and to learn . (Win32 sources downloadable at The Delta Quadrant Development page -- hey, free promotion! ) Anyways, I''ve already written a script engine (compiler + interpreter) for this game to ease up the implementation of the GUI and AI and stuff, but the language isn''t powerful enough (and the source is a mess ). So, instead of improving it, I was thinking of using java-script as a scripting language. It''s powerful, object oriented and since it''s an existing language, many people will already know it. I was wondering if there already exists some sort of library (C/C++ please) that implements a java-script compiler/interpreter (compiler is to speed it up) for embedding in other applications? If not, it''ll be fun building one: I''ll make it open source, so anybody can link it in his games, and I will get a god-like status and earn your respect (damn, I''ve been playing too many god games). Any help is welcome! Dormeur

Share this post


Link to post
Share on other sites
Why don''t you check out www.mozilla.org? The mozilla project has an interesting java-script compiler/interpreter that seems to be just what your looking for. I''m in the process of incorporating it into my own game and things have worked smoothly so far. Hope this helps.

-Dave

Share this post


Link to post
Share on other sites