summaryrefslogtreecommitdiffhomepage
path: root/tileset.rb
diff options
context:
space:
mode:
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