From a945de3218e3cf9593fa21bcc6d8af04de4443ef Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 22 Sep 2022 23:24:37 +0200 Subject: Added brothers jumping --- src/utils.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/utils.zig') diff --git a/src/utils.zig b/src/utils.zig index 5fa40f9..bb9eb13 100644 --- a/src/utils.zig +++ b/src/utils.zig @@ -1,6 +1,7 @@ //----- Physics --------------------------------------------------------------- pub const gravity: f64 = 9.807; // m/s² -pub const scale: f64 = 1.0 / 30; // 30 pixels == 1m +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) { -- cgit v1.2.3