New games every week!
JSE - GameHandler
Blog
20th June 2021
I finally did that mini writeup of the GameHandler function, today.
-=-=- I've been putting it off for a while, as I kept adding in little nips and tucks, but today I've decided that enough's enough, and just finished the whole thing off. GameHandler("Game Title","Easy|Normal|Hard") is more or less enough to get the menu going. From there, add an .Ingame subroutine, and be sure to return each frame, whilst keeping your game ticking away. Keep track of a Score variable, and it'll pop up on the highscore table. The EndGame command does just that, and returns the player back to the menu, adding the latest score to the scoreboard, saving the current high scores, and so on.
The Mouse Clicker 2000 example should help you figure the rest out.. .. Maybe!?! There's more info in The Help Files Meanwhile..A few extra new commands have been added. GetRed(), GetGreen(), GetBlue() and GetAlpha() return the currently set colour values. TextScore x,y displays the value of the variable Score onscreen, centred at x,y, using the current colour/size/etc settings. Views 127, Upvotes 22
Jse
,
Commands
New games every week!
|