Release 0.0.1.8.8.7
This commit is contained in:
1 parent
3c8a17aa78
commit
c7beab414c
16283 files changed
+768761
-2
No files matched your search
@@ -0,0 +1,28 @@
|
||||
class Game_Map
|
||||
def width
|
||||
if Graphics.width % 32 == 0
|
||||
@map.width
|
||||
else
|
||||
@map.width - 1
|
||||
end
|
||||
end
|
||||
|
||||
def height
|
||||
if Graphics.height % 32 == 0
|
||||
@map.height
|
||||
else
|
||||
@map.height - 1
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class Game_Player < Game_Character
|
||||
def center_x
|
||||
((Graphics.width / 32).floor - 1) / 2.0
|
||||
end
|
||||
|
||||
def center_y
|
||||
((Graphics.height / 32).floor - 1) / 2.0
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user