aboutsummaryrefslogtreecommitdiff
path: root/src/macroknight/tiles.hy
diff options
context:
space:
mode:
authorGene Pasquet <gene@pacerevenue.com>2025-05-15 14:20:19 +0200
committerGene Pasquet <gene@pacerevenue.com>2025-05-15 14:20:19 +0200
commitd5a454eff8e722c372b42efd476b52a51bba327d (patch)
treee3ebeab02d9554ff6430169304c34916734fc714 /src/macroknight/tiles.hy
parentcee75e57560b77e8ec0a394c1d3c98b9839be80e (diff)
Define player start position in level tmx
Diffstat (limited to 'src/macroknight/tiles.hy')
-rw-r--r--src/macroknight/tiles.hy4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macroknight/tiles.hy b/src/macroknight/tiles.hy
index 40692e7..f9e112d 100644
--- a/src/macroknight/tiles.hy
+++ b/src/macroknight/tiles.hy
@@ -1,13 +1,13 @@
(import pygame)
(defclass TileSet []
- (defn __init__ [self image scaling tile-w tile-h [padding 0]]
+ (defn __init__ [self image-file scaling tile-w tile-h [padding 0]]
(setv self.tile-w tile-w)
(setv self.tile-h tile-h)
(setv self.scaling scaling)
(setv self.sheet
- (let [surf (pygame.image.load "assets/monochrome-transparent.png")
+ (let [surf (pygame.image.load image-file)
map-width (* (.get_width surf) self.scaling)
map-height (* (.get_height surf) self.scaling)]
(if (!= self.scaling 1)