Skip to content

Commit

Permalink
Fix tilemap creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Sep 2, 2023
1 parent 8be2ebb commit df3056e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assets/tile-data.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

(defclass tilemap (texture)
((target :initform :texture-2d)
(pixel-type :initform :unsigned-byte)
(pixel-format :initform :rg-integer)
(internal-format :initform :rg8ui)
(min-filter :initform :nearest)
(mag-filter :initform :nearest)
Expand Down Expand Up @@ -54,7 +52,7 @@
(ensure-instance (resource asset (gethash "id" data)) 'tilemap
:width width
:height height
:pixel-data pixel-data
:sources (list (make-image-source pixel-data width height :unsigned-byte :rg))
:tileset tileset)))

(defun decode-tiled-tileset (data path asset)
Expand Down

0 comments on commit df3056e

Please sign in to comment.