aboutsummaryrefslogtreecommitdiff
path: root/src/utils.zig
diff options
context:
space:
mode:
authorJulien Dessaux2022-09-23 19:09:28 +0200
committerJulien Dessaux2022-09-23 19:09:28 +0200
commit63029a3a27eb3ae44d802cb17b0c453e84595ade (patch)
tree9c5ad6c4fc077448d172bb30df90494665bae73a /src/utils.zig
parentAdded brothers jumping (diff)
downloadgrenade-brothers-63029a3a27eb3ae44d802cb17b0c453e84595ade.tar.gz
grenade-brothers-63029a3a27eb3ae44d802cb17b0c453e84595ade.tar.bz2
grenade-brothers-63029a3a27eb3ae44d802cb17b0c453e84595ade.zip
Added ball physics
Diffstat (limited to '')
-rw-r--r--src/utils.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils.zig b/src/utils.zig
index bb9eb13..6f1e850 100644
--- a/src/utils.zig
+++ b/src/utils.zig
@@ -1,4 +1,5 @@
//----- Physics ---------------------------------------------------------------
+pub const bounce: f64 = 0.7; // energy dispersion when bouncing
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