aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/values.yml30
-rw-r--r--config/values/player.s28
2 files changed, 58 insertions, 0 deletions
diff --git a/config/values.yml b/config/values.yml
new file mode 100644
index 0000000..257282e
--- /dev/null
+++ b/config/values.yml
@@ -0,0 +1,30 @@
+# Constants used throughout the game in a floating point format. The
+# `bin/values.rb` script will make sure to transform these into 4.4 signed fixed
+# point values that fit into a byte, as expected by the code from this game.
+#
+# Each file will have the name of the key from the first level (e.g. "player"
+# will become "config/values/player.s"), and under the file each constant will
+# be upper cased (e.g. "player.throttle_up" will become "THROTTLE_UP" inside of
+# the "player.s" file).
+
+player:
+ # Gravity and initial velocity when throttling from the ground.
+ gravity: 2.50
+ blast_off: -1.50
+
+ # Throttling.
+ throttle_up: -2.90
+ throttle_left: -2.90
+ throttle_right: 1.90
+
+ # Walking constant velocities.
+ walk_left: -1.80
+ walk_right: 0.80
+
+ # Horizontal bounces
+ bounce_left: -2.53
+ bounce_right: 1.53
+
+ # Vertical bounces
+ reduce_full_speed: 1.00
+ reduce_mid_speed: 0.53
diff --git a/config/values/player.s b/config/values/player.s
new file mode 100644
index 0000000..a27d10a
--- /dev/null
+++ b/config/values/player.s
@@ -0,0 +1,28 @@
+;; This file has been automatically generated via bin/values.rb.
+;; DO NOT MODIFY this file directly: check config/values.yml instead.
+
+.ifdef PAL
+ GRAVITY = $30
+ BLAST_OFF = $F3
+ THROTTLE_UP = $D8
+ THROTTLE_LEFT = $D8
+ THROTTLE_RIGHT = $24
+ WALK_LEFT = $ED
+ WALK_RIGHT = $0E
+ BOUNCE_LEFT = $DE
+ BOUNCE_RIGHT = $1D
+ REDUCE_FULL_SPEED = $13
+ REDUCE_MID_SPEED = $0A
+.else
+ GRAVITY = $28
+ BLAST_OFF = $F8
+ THROTTLE_UP = $E2
+ THROTTLE_LEFT = $E2
+ THROTTLE_RIGHT = $1D
+ WALK_LEFT = $F3
+ WALK_RIGHT = $0C
+ BOUNCE_LEFT = $E7
+ BOUNCE_RIGHT = $18
+ REDUCE_FULL_SPEED = $10
+ REDUCE_MID_SPEED = $08
+.endif