uhhh hello my name is crewmate
npx wrangler dev
- Create a folder for the game
Inside your
gdirectory, create a folder for the game:
g/
├── something/
├── karlson/
└── newgame/
- Put the game files in the folder Your folder should contain at least:
g/newgame/
├── index.html
├── icon.png
└── (other game files)
index.html launches the game.
icon.png is the image shown in the menu.
3. Add the game to games.json
Find the last game entry:
{
"name": "Karlson",
"filepath": "./g/karlson/index.html",
"icon": "./g/karlson/icon.png"
}Add a comma after it and then add your new game:
{
"name": "New Game",
"filepath": "./g/newgame/index.html",
"icon": "./g/newgame/icon.png"
}Example finished file:
{
"games": [
{
"name": "Something",
"filepath": "./g/something/index.html",
"icon": "./g/something/icon.png"
},
{
"name": "Karlson",
"filepath": "./g/karlson/index.html",
"icon": "./g/karlson/icon.png"
},
{
"name": "New Game",
"filepath": "./g/newgame/index.html",
"icon": "./g/newgame/icon.png"
}
]
}