JavaScript in games
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
Wout "Dormeur" NeirynckThe Delta Quadrant Development Page
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
-Dave
Thanks, that JS lib is just what I was looking for!
Dormeur
Dormeur
Wout "Dormeur" NeirynckThe Delta Quadrant Development Page
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement