Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

280 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

13hrsofstudying

uhhh hello my name is crewmate

Running it

npx wrangler dev

Adding a New Game

  1. Create a folder for the game Inside your g directory, create a folder for the game:
g/
├── something/
├── karlson/
└── newgame/
  1. 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"
    }
  ]
}