Skip to content

Commit

Permalink
update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
KokoDoko committed Apr 24, 2024
1 parent 4548ae6 commit 0577f91
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 34 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
symbols.json

node_modules
.parcel-cache

.parcel-cache
45 changes: 25 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,50 +127,55 @@ Your game `name` and `url` need to be listed in the [Games JSON file](https://hr
]
```

<br>

### Add cartridge image

![screenshot](./cart.png)

If you want, you can photoshop your own cartridge image for display in the server. [Download the base image here](./cart.png)

<br>
<br>
<br>


## Game Size

The arcade cabinet window is 1440 x 900. You can set your game to this size using:
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.

```typescript
class Game {
constructor() {
// excalibur
super({ width: 1440, height: 900 })

// pixi
this.pixi = new PIXI.Application({ width: 1440, height: 900})
super({
displayMode: DisplayMode.FitScreen,
width: 1440, height: 900,
});
}
}
```
Je kan de `draw size` van het `engine` argument gebruiken om items te positioneren:

If your game is smaller or bigger, you can scale the canvas using CSS.
```js
class Samurai extends Actor {
onInitalize(engine) {
this.pos = new Vector(engine.halfDrawWidth, engine.halfDrawHeight)

```css
canvas {
width:100vw;
}
}
```
If your aspect ratio is not `16:9` you can instead use `height:100vh`.


<br>
<br>
<br>

### Add cartridge image

![screenshot](./cart.png)

If you want, you can photoshop your own cartridge image for display in the server. [Download the base image here](./cart.png)

<br>
<br>
<br>


> Why is half this page in english and half in dutch? we do not know.
## Credits

- Leanne, Bob for building the Arcade Stick Controls
- Leanne and Bob for building the Arcade Stick Controls for PixiJS (now deprecated).
- [Tim Borowy](https://github.com/TimBorowy) and [GrunkHead Dave](https://github.com/Grunkhead) for the first iteration of the Game Arcade
2 changes: 0 additions & 2 deletions dist/arcade.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/arcade.js.map

This file was deleted.

Loading

0 comments on commit 0577f91

Please sign in to comment.