You now have the ability to embed itch.io browser games on our site, as announced in a previous update.
In addition to this is the ability to create a highscores leaderboard for your game. This is a friendly way of sharing your score with your friends and is not intended as any kind of commercially sound system. It's all for fun.
How do I make a compatible game?
We recommend talking to Ellie on Discord who will be happy to help. Here are some tips on how to make a compatible game however:
Have one or more numerical scores
Your game needs to have a numerical high score, in which the higher the score, the better the performance of the player.
There can be any number of these scores to track. Examples are points, gold, level or number of deaths.
Generate the required values
You will need a username input screen. How I have implemented this myself is by using the NAME INPUT prompt within RPG Maker.
You will want to generate values for username, score, and highscore name.
For example: Ellie, 542, gold.
Choose a sort order
The order of your displayed highscores depends on the number you give it in highscore name. This goes at the start of the highscore name.
So for example:
Number 1 will display on your game page. The rest will display on your game page's Highscores tab.
Get some code from Ellie
You will need to edit your index.html file. We recommend just sending this file to Ellie and allowing her to insert her magical code.
You will then be given a script call which can be called from anywhere in your game at the moment you want to send your score(s).
Decide when to enter your name
In Blocks Blocks Revolution I chose to let the user enter their nickname before the game begins.
In Snakes and Dragons this is instead done at the time of high score submission.
Publish your game
Publish your game on itch.io preferably as a browser game. Send this link to Ellie, and she will set up your game page for you. You can then edit this to your heart's content.
Update your game page whenever your file changes
You will need to update your game page every time you change your file, due to how itch embedding works (by file not by game).
Any other thoughts
Just discuss it with Ellie and we'll work it all out.