Games
Block Builder comes with the console. Add more in Config.Games:
Games = {
blocks = { label = 'Block Builder', included = true },
mygame = { label = 'My Game', price = 250, system = 'SNES', rom = 'mygame.sfc', art = 'mygame.png' },
},
| Field | What it does |
|---|---|
label | The name in the shop and on the home screen. |
price | Price in the shop. 0 = free for everyone. |
included | true = comes with the console: always on the home screen, never in the shop. Block Builder is. |
system | 'NES', 'SNES', 'GB', 'GBC', 'GBA', 'GENESIS' or 'N64'. |
rom | The game file in html/roms. |
art | Optional picture in html/roms for the shop and home screen. |
Retro games
No emulator or game files come with the script. Only add games you have the rights to.
- Type
gamestation_installin the server console. It downloads the free EmulatorJS emulator (about 17 MB) into the resource. When retro games are already in the config, this happens by itself on start. - Run
refreshthenensure fusing-gamestation. - Put your game files, and a picture for each if you like, in
html/roms, and add each game toConfig.Games.
If your server can't download, run install/install-emulator.ps1 (Windows: right-click, Run with PowerShell) or install/install-emulator.sh (Linux) on the server machine instead.
If the emulator or a game file is missing, the TV says so when the game is started.
Playing together
Up to 4 players can play retro games together on one TV. While someone plays, anyone else near the TV uses it and picks Join as player, and they become player 2, 3 or 4 with their own controller or keyboard (the same layouts as above). Their buttons go through the server, so they arrive a moment after player 1's: fine for racing, party and sports games, a little late for fast fighting games.
To leave, tap Esc or Backspace, or press Back + Start together on a controller.
Big game libraries
Every file inside fusing-gamestation is downloaded by each player again whenever it restarts. For more than a few games, put the games in a resource of their own:
- Copy
install/roms-resourcefrom fusing-gamestation into your resources and name itfusing-gamestation-roms. - Put your game files and pictures in a
romsfolder inside it. - Add
ensure fusing-gamestation-romstoserver.cfgand setConfig.Roms = 'fusing-gamestation-roms'.
The game resource only needs restarting when you add games.
Controls for each system
Every system has its own controller and keyboard layout in Config.Controls, so each one can be changed:
SNES = {
pad = { A = 'B', B = 'A', X = 'Y', Y = 'X', LB = 'L', RB = 'R', START = 'START', BACK = 'SELECT' },
keys = { Z = 'B', X = 'A', A = 'Y', S = 'X', Q = 'L', E = 'R', ENTER = 'START', SHIFT = 'SELECT' },
},
The left side is the controller button or keyboard key, the right side is the game's own button. The default layouts follow each console's button positions, and N64 uses the left stick as an analog stick and the right stick for the C buttons. The full list of names is in config.lua.
Saves
- Leaving the TV keeps the game playing on the screen for people watching. Coming back starts at the console's home screen.
- Save state in the game menu keeps your exact place; Load state brings it back. One slot per game for each player, kept on the server.
- Games that save on their own (like RPGs) keep those saves too.
Controls while playing
| Action | Keyboard | Controller |
|---|---|---|
| D-pad | Arrow keys | D-pad or left stick |
| A / B / X / Y | X / Z / S / A | A / B / X / Y |
| L / R | Q / E | LB / RB |
| Start / Select | Enter / Shift | Start / Back |
| Game menu (resume, save or load your state, home menu, TV menu, or leave the TV) | Esc or Backspace | Back + Start together |
| Back to the TV menu, from the console's home screen | Backspace | B |