Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I am using Groovy as my SCUMM like script needs (also made a specific Domain Specific Language). Do you do similar things with Javascript to make adventure logic?

(+1)

I hadn't heard of Groovy before, that looks cool.

The C++ side of things handles graphics (sprites, backgrounds, fonts), sound, pathfinding, converting input into events for the script, and file IO and has a rudimentary GUI layer, the Javascript side of things uses those APIs and classes as they are exposed from C++. Most of the typical adventure game stuff (the game UI, inventory management, cutscenes, loading/saving, responding to keyboard/mouse events) is handled entirely in Javascript, usually as modules that I import into new projects as needed. No changes were made to the language itself, as that is all just vanilla Javascript.