Skip to content

Commit

Permalink
Bump raylib to 5.5.0.0, update readmacro usage for hy 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulev committed Jan 6, 2025
1 parent ac57e02 commit 21137ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tanki/controls.hy
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand All @@ -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"}}

Expand Down
3 changes: 1 addition & 2 deletions tanki/player.hy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 21137ea

Please sign in to comment.