fixed picture center

This commit is contained in:
Issac332 2026-07-10 11:56:41 +03:00
parent 1d93d08099
commit 03879de933
2 changed files with 2 additions and 18 deletions

View file

@ -47,22 +47,6 @@ module RPG
end
end
class Table
def each_with_index
x = 0
y = 0
z = 0
while z < self.sizez
while y < self.sizey
while x < self.sizex
yield(self[x, y, z], x, y, z)
x += 1
end
y += 1
end
z += 1
end
end
def self._load(foo)
end
end

View file

@ -68,8 +68,8 @@ class Sprite_Picture < Sprite
self.ox = self.bitmap.width / 2
self.oy = self.bitmap.height / 2
# Set sprite coordinates
self.x = Graphics.width + @picture.x
self.y = Graphics.height + @picture.y
self.x = Graphics.width / 2 + @picture.x
self.y = Graphics.height / 2 + @picture.y
end
self.z = @picture.number
# Set zoom rate, opacity level, and blend method