aboutsummaryrefslogtreecommitdiff
path: root/config/values.yml
blob: e99eccc03d1a867cf6f28627bd5d0c0df98e6f1b (plain)
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
# 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.blast_off" will become "BLAST_OFF" inside of the
# "player.s" file).

player:
    # Gravity and initial velocity when throttling from the ground.
    gravity: 1.83
    blast_off: -1.50

    # Thrust/flying
    thrust: -2.00
    fly_left: -2.90
    fly_right: 1.90

    # Walking constant velocities.
    walk_left: -1.80
    walk_right: 0.93

    # Horizontal bounces
    bounce_left: -2.53
    bounce_right: 1.53

    # Vertical bounces
    reduce_full_speed: 1.00
    reduce_mid_speed: 0.53