-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.yaml
136 lines (125 loc) · 5.63 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# The name of the bundle and title of the window
name: "NES Bundler Demo"
# Optional version of your game, will default to the nes-bundler version if omitted
# NOTE: Must be semver
# version: "1.0.0"
# Short description used when creating linux and Windows installers
short_description: "A demonstration of NES Bundler in action!"
# macOS specific, See https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleidentifier
cf_bundle_identifier: "se.darkbits.nes-bundler.demo"
# Windows specific, See https://wixtoolset.org/docs/v3/howtos/updates/major_upgrade/#add-a-unique-id-to-identify-that-the-product-can-be-upgraded
# Generate one here https://guid-generator.utiltree.com/
wix_upgrade_code: "4D4E7FAD-4DA8-4D0D-9175-3B79B8A7C464"
# Required by windows installer
manufacturer: "Darkbits"
# A list of supported NES regions (Pal, Ntsc and Dendy available)
# There will be an option in the settings to switch between regions if there are more than one in this list.
# The first in the list will be the default region, and also the region used for Netplay (since it has to be the same for both players)
supported_nes_regions:
- Ntsc
# There might be tearing if disabled, there might be more dropped frames if enabled
enable_vsync: false
# Starts the game in fullscreen if true
start_in_fullscreen: false
# Optional vocabulary to change some parts of the UI.
# If you have more needs file an issue or open a PR
vocabulary:
# The name of the inputs in the key mapping section
input_buttons:
up: Up
down: Down
left: Left
right: Right
select: Select
start: Start
b: B
a: A
netplay:
# Name Netplay something else?
name: Netplay
# This will be the default settings for the game.
# For all the gory details see the `BuildConfiguration`-struct in the source.
default_settings:
audio:
volume: 100 #in %
latency: 20 #in ms
input:
# Two ids that corresponds to the selected input mapping configuration of P1 and P2. Should only be keyboard mappings as they're guaranteed to be available.
selected:
- 00-keyboard-1
- 00-keyboard-2
# A list of input mapping configurations. For more key mappings see https://github.com/tedsteen/nes-bundler/blob/master/src/input/keys.rs#L28.
# To add a gamepad configuration use the kind `Gamepad` and id `01-gamepad-0` for the first gamepad that connects, `01-gamepad-1` for the second and so on.
configurations:
00-keyboard-1:
id: 00-keyboard-1
name: "⌨ Keyboard 1"
kind: !Keyboard
up: ArrowUp
down: ArrowDown
left: ArrowLeft
right: ArrowRight
select: KeyQ
start: KeyW
b: KeyA
a: KeyS
00-keyboard-2:
id: 00-keyboard-2
name: "⌨ Keyboard 2"
kind: !Keyboard
up: KeyW
down: KeyS
left: KeyA
right: KeyD
select: KeyU
start: KeyI
b: KeyJ
a: KeyK
01-gamepad-0:
id: 01-gamepad-0
name: "🎮 Gamepad"
kind: !Gamepad
up: DPadUp
down: DPadDown
left: DPadLeft
right: DPadRight
select: Back
start: Start
b: X
a: A
# The default mapping for newly connected gamepads. For more gamepad button mappings see https://github.com/tedsteen/nes-bundler/blob/master/src/input/buttons.rs#L8.
default_gamepad_mapping:
up: DPadUp
down: DPadDown
left: DPadLeft
right: DPadRight
select: Back
start: Start
b: X
a: A
# Netplay configuration. You can remove this if the netplay feature is disabled.
netplay:
# GGRS and Matchbox server configuration. You can read more about them over here https://github.com/johanhelsing/matchbox and here https://github.com/gschup/ggrs
# This config can be either fetched from an external service (TurnOn) or configured statically (Static)
server:
# A hosted TurnOn server which should do the job.
# More information on this will come. It's free at the moment, but if network traffic costs starts piling up, there might be a paywall when unlocking Netplay (only needed if a direct p2p connection is not possible).
!TurnOn "https://netplay.tech/get-config"
# An example of a static configuration
#!Static
# ggrs:
# max_prediction: 12
# input_delay: 2
# matchbox:
# # For quick and easy setup see https://github.com/tedsteen/nes-bundler/tree/master/matchbox_server.
# server: "matchbox.your-domain.io:3536"
# ice:
# credentials:
# # NOTE! - If you choose to put actual credentials here you should know there are risk.
# !None
# urls:
# - "stun:stun.l.google.com:19302"
# An optional, universally unique identifier that identifies this particular build. Meant for builds targeting specific users.
# If not set, it will get assigned at runtime and saved in the settings.yaml.
# This id will be used when querying server configurations (TurnOn).
#netplay_id: "<some-uuid>"