Skip to content

Commit

Permalink
add instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
KokoDoko committed Apr 24, 2024
1 parent 0577f91 commit 1cd0eb1
Showing 1 changed file with 35 additions and 31 deletions.
66 changes: 35 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

Hieronder vind je de instructies voor het toevoegen van je game aan de arcade kast:

- Voeg gamepad support toe
- Zorg dat je game in 16:9 verhouding is
- Publiceer je game in de docs map op github pages
- Voeg gamepad support toe, zorg dat er geen mouseclicks nodig zijn
- Zorg dat je game in 16:9 verhouding is, liefst 1440x900 pixels.
- Zet `fitScreen` aan zodat je game automatisch schaalt als de resolutie net iets te groot of te klein is.
- Publiceer je game in de `docs` map op jouw eigen github pages
- Voeg de url van je github pages game toe aan de JSON file van de arcade kast
- Je kan ook je eigen custom cartridge toevoegen

<br>
<br>
Expand Down Expand Up @@ -100,38 +102,10 @@ export class Game extends Engine {
}
}
```

<br>
<Br>
<br>

# Serve your docs folder

Your game needs to be hosted online, you can do this by enabling **github pages**, then build and publish the **docs** folder.

<br>

## Add game to arcade cabinet JSON

Your game `name` and `url` need to be listed in the [Games JSON file](https://hr-cmgt.github.io/arcade-server/data/games.json). You can make a Pull Request for the arcade server repository, or ask one of the admins to add your game by sending the below information. You can test the arcade cabinet yourself at: https://hr-cmgt.github.io/arcade-server/

```json
[
{
"name": "Ruimtegruis",
"url": "https://bpikaar.github.io/ruimtegruis/",
"genres" : [1,1,1,0,0,0,0,0,0],
"players" : 2,
"cover": "cover_ruimtegruis.png"
}
]
```

<br>
<br>
<br>


## Game Size

De monitor in de arcade kast is 1440 x 900. Dit kan je instellen in `game.js`. Door `fitScreen` toe te voegen schaalt de game wel mee met kleinere of grotere schermen.
Expand All @@ -158,10 +132,40 @@ class Samurai extends Actor {
```




<br>
<Br>
<br>

# Serve your docs folder

Your game needs to be hosted online, you can do this by enabling **github pages**, then build and publish the **docs** folder.

<br>

## Add game to arcade cabinet JSON

Your game `name` and `url` need to be listed in the [Games JSON file](https://hr-cmgt.github.io/arcade-server/data/games.json). You can make a Pull Request for the arcade server repository, or ask one of the admins to add your game by sending the below information. You can test the arcade cabinet yourself at: https://hr-cmgt.github.io/arcade-server/

```json
[
{
"name": "Ruimtegruis",
"url": "https://bpikaar.github.io/ruimtegruis/",
"genres" : [1,1,1,0,0,0,0,0,0],
"players" : 2,
"cover": "cover_ruimtegruis.png"
}
]
```

<br>
<br>
<br>



### Add cartridge image

![screenshot](./cart.png)
Expand Down

0 comments on commit 1cd0eb1

Please sign in to comment.