I have coded my main menu for the game in html/css and need the image buttons to function with the engine using JavaScript.
For example:
Skip (Enable) Which skips the menu when you come back to play to continued the game.
(Disable ) Which will return it normal where you can see menu again
Skip – one image button red off and when click turns green on
Restart - Which when clicked opens a box with two images in it and text. (image + Yes, image + NO) if you click YES it restarts game and when you click NO resumes game.
Sound - will have one image button which will be red (Default ON) and when click turns green sound turns Off.
Example: function ENGINE_get_option_state(opt:string):string { return…; }
ENGINE_trigger_sound(…)