mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
More or less standardised separator comments in the code
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
class Sprite_Picture
|
||||
def initialize(viewport, picture)
|
||||
@viewport = viewport
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
class Sprite_Timer
|
||||
def initialize(viewport = nil)
|
||||
@viewport = viewport
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
class Sprite_Reflection
|
||||
attr_reader :visible
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
class Sprite_SurfBase
|
||||
attr_reader :visible
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
class Spriteset_Global
|
||||
attr_reader :playersprite
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user