From e9b206019bb65897b91b613401beb3c3c08cad06 Mon Sep 17 00:00:00 2001 From: Pavel Kulyov Date: Mon, 6 Jan 2025 17:43:47 +0300 Subject: [PATCH] Bump raylib to 5.5.0.0, update readmacro usage for hy 1.0.0 --- pyproject.toml | 3 +-- tanki/controls.hy | 4 ++-- tanki/player.hy | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3a97308..6108872 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,8 +28,7 @@ dependencies = [ "hy==1.0.0", "hyrule==0.7.0", "hscp==0.1.0", - "raylib==4.5.0.0", - "raylib-dynamic==4.5.0.0", + "raylib==5.5.0.0", ] [project.urls] diff --git a/tanki/controls.hy b/tanki/controls.hy index 51106ac..efae667 100644 --- a/tanki/controls.hy +++ b/tanki/controls.hy @@ -10,7 +10,7 @@ ;; actions in the terms of game. It can be created dynamically too (in future). (defclass [dataclass] Action [] - (setv #^str name None)) + (setv #^ str name None)) (setv *controls* @@ -23,7 +23,7 @@ :back "B"} :in-game - {:jump 7 #_pr.GAMEPAD-BUTTON-RIGHT-FACE-LEFT + {:jump 7 #_ pr.GAMEPAD-BUTTON-RIGHT-FACE-LEFT :restart #(8 :button :released) :pause "B"}} diff --git a/tanki/player.hy b/tanki/player.hy index d4a58e1..b814669 100644 --- a/tanki/player.hy +++ b/tanki/player.hy @@ -42,8 +42,7 @@ self.fall-speed 4 self.jump-speed 10 self.weapon-cooldown 10 - self.texture (pr.load-texture "assets/gfx/player.png" - pr.WHITE) + self.texture (pr.load-texture "assets/gfx/player.png") self.fuel-depletion-sound (pr.load-sound "assets/snd/select.wav") self.jetpack-sound (JetpackSound) self.collision-rect (pr.Rectangle (+ pos.x 10)