summaryrefslogtreecommitdiffhomepage
path: root/tileset.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-05-08 05:21:24 -0400
committerrealtradam <[email protected]>2021-05-08 05:21:24 -0400
commitb1ac1abcdbe11c0bb465fe042eaba2ab9e012a5a (patch)
treee10790fc1858649874f20ca36efd09cc3a07cfa0 /tileset.rb
parent625042cef2f11211ab4cae145ea5cf309994312e (diff)
downloadtileset-map-editor-master.tar.gz
tileset-map-editor-master.zip
tiles fit to menuHEADmaster
Diffstat (limited to 'tileset.rb')
-rw-r--r--tileset.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/tileset.rb b/tileset.rb
index 1f870df..8e82d5d 100644
--- a/tileset.rb
+++ b/tileset.rb
@@ -28,12 +28,13 @@ class Tileset
end
end
- def create_image(column:, row:, x: 0, y: 0)
+ def create_image(column:, row:, x: 0, y: 0, z: 0, width: self.width, height: self.height)
Image.new(tileset[column][row],
width: width,
height: height,
x: x,
- y: y)
+ y: y,
+ z: z)
end
private