An open API service indexing awesome lists of open source software.

https://github.com/informaticascw/arcade

Code for the arcade in Stanislascollege Westplantsoen Delft
https://github.com/informaticascw/arcade

arcade gaming python students

Last synced: 27 days ago
JSON representation

Code for the arcade in Stanislascollege Westplantsoen Delft

Awesome Lists containing this project

README

          

# arcade

This repository contains the code for an arcade running python games.

It is inspired on the arcade running javascript games at:
[https://github.com/emmauscollege/arcade](https://github.com/emmauscollege/arcade)

and would never have come to life without the hard work of [Spookie6](https://github.com/Spookie6) and [Fabstershu](https://github.com/Fabsterschu)

# werkafspraken

- code alleen aan de main-branche toevoegen als hij runt en leesbaar is
- altijd documentatie (readme) aanpassen tegelijk met je code
- maak incidenten aan en assign die aan jezelf, zodat iedereen ziet waaraan je werkt

# files

`keymapping.*`

Mapping of joysticks and buttons on the arcade console to keys on the keyboard emulator attached to the raspberry pi.

`install-arcade.sh*`

Installs/updates the arcade files onto the pi 5

# startup guide

To initialize the startup files, you'll have to download the file called `install-arcade.sh` enter terminal and make a directory called "Arcade". This is done by entering `mkdir Arcade`. Now type `mv Downloads/install-arcade.sh ~/Arcade`. To make sure the file is executable type `chmod +x ~/Arcade/install-arcade.sh`. To make it run on startup, create a file named `install-arcade.desktop` in the autostart directory using: `sudo nano ~/.config/autostart/install-arcade.desktop`. Now type:

```
[Desktop Entry]
Type=Application
Name=Start Arcade
Exec=lxterminal -e "bash ~/Arcade/install-arcade.sh"
Terminal=true
```

## Menu

- Run `python ./src/menu/main.py` to start

Ik doe mn best om over alles te commenten maar mischien mist er ergens nog iets.

`/menu` bevat:

- `/components`: Dit is een componenten library met allemaal classes om menu pages / hud elements te maken.
- `/events` Een apparte module om pygame events te handelen.
- `/pages` Dit is een collectie aan pages die in het menu zitten, elke file stelt een pagina voor, hierin zit een variable dat verwijst naar een ge-inialized page component uit de components library. Er moet een page met de naam "main" aanwezig zijn, dit is het entry point voor het menu, er kunnen geen dubbele page namen voorkomen, dit veroorzaakt een error.

- `/util` Extra utility om te helpen met verschillende dingen:
- `/constants`: Constante waardes voor het project, zoals resolutie, fps, kleuren, etc.
- `/data`: Een bestand dat een `data` variable bevat waarin je data mee op kunt slaan op een data.json bestand
- `/router` Dit initialiseert de `Router` component van de components library. Dit is een centraal punt om te navigeren door de menu pages (en de verschillende games).