From b1ac1abcdbe11c0bb465fe042eaba2ab9e012a5a Mon Sep 17 00:00:00 2001 From: realtradam Date: Sat, 8 May 2021 05:21:24 -0400 Subject: tiles fit to menu --- tileset.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tileset.rb') 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 -- cgit v1.2.3