More or less standardised separator comments in the code

This commit is contained in:
Maruno17
2024-06-27 21:21:26 +01:00
parent 225549bfce
commit 509a414f37
198 changed files with 1907 additions and 1263 deletions

View File

@@ -1,23 +1,28 @@
#===============================================================================
#
#===============================================================================
module ScreenPosHelper
def self.pbScreenZoomX(ch)
@heightcache = {}
module_function
def pbScreenZoomX(ch)
return Game_Map::TILE_WIDTH / 32.0
end
def self.pbScreenZoomY(ch)
def pbScreenZoomY(ch)
return Game_Map::TILE_HEIGHT / 32.0
end
def self.pbScreenX(ch)
def pbScreenX(ch)
return ch.screen_x
end
def self.pbScreenY(ch)
def pbScreenY(ch)
return ch.screen_y
end
@heightcache = {}
def self.bmHeight(bm)
def bmHeight(bm)
h = @heightcache[bm]
if !h
bmap = AnimatedBitmap.new("Graphics/Characters/" + bm, 0)
@@ -28,7 +33,7 @@ module ScreenPosHelper
return h
end
def self.pbScreenZ(ch, height = nil)
def pbScreenZ(ch, height = nil)
if height.nil?
height = 0
if ch.tile_id > 0