aboutsummaryrefslogtreecommitdiff
path: root/src/utils.zig
blob: bb9eb13cfc6b9fdce1534d1e20742349514efcd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//----- Physics ---------------------------------------------------------------
pub const gravity: f64 = 9.807; // m/s²
pub const scale: f64 = 1.0 / 30.0; // 30 pixels == 1m
pub const frequency: f64 = 1.0 / 60.0; // 60 fps

//----- Playground ------------------------------------------------------------
pub const side = enum(u1) {
    left,
    right,
};
pub const startingX = [2]u8{ 23, 160 - 23 - 16 };
pub const leftLimit = [2]u8{ 0, 81 };
pub const rightLimit = [2]u8{ 77, 159 };