Class: Configs::Project::Display::TilemapSettings
- Defined in:
- docs/000_a_root.rb
Overview
Data class describing Tilemap configuration
Instance Attribute Summary collapse
-
#autotile_idle_frame_count ⇒ Integer
readonly
Get the number of frame autotiles does not animate.
-
#center ⇒ Point
readonly
Get the center of the screen in sub pixel size.
-
#character_sprite_zoom ⇒ Float
readonly
Get the zoom of the sprite as character.
-
#character_tile_zoom ⇒ Float
readonly
Get the zoom of the tiles as character.
-
#map_linker_offset ⇒ Point
readonly
Get the map linker offset.
-
#tilemap_class ⇒ String
readonly
Get the tilemap class.
-
#tilemap_size ⇒ Point
readonly
Get the size of the tilemap.
-
#uses_old_map_linker ⇒ Boolean
readonly
Tell if the game uses the old map linker settings.
Instance Method Summary collapse
-
#initialize(v) ⇒ TilemapSettings
constructor
A new instance of TilemapSettings.
Constructor Details
#initialize(v) ⇒ TilemapSettings
Returns a new instance of TilemapSettings.
175 176 |
# File 'docs/000_a_root.rb', line 175 def initialize(v) end |
Instance Attribute Details
#autotile_idle_frame_count ⇒ Integer (readonly)
Get the number of frame autotiles does not animate
159 160 161 |
# File 'docs/000_a_root.rb', line 159 def autotile_idle_frame_count @autotile_idle_frame_count end |
#center ⇒ Point (readonly)
Get the center of the screen in sub pixel size
168 169 170 |
# File 'docs/000_a_root.rb', line 168 def center @center end |
#character_sprite_zoom ⇒ Float (readonly)
Get the zoom of the sprite as character
165 166 167 |
# File 'docs/000_a_root.rb', line 165 def character_sprite_zoom @character_sprite_zoom end |
#character_tile_zoom ⇒ Float (readonly)
Get the zoom of the tiles as character
162 163 164 |
# File 'docs/000_a_root.rb', line 162 def character_tile_zoom @character_tile_zoom end |
#map_linker_offset ⇒ Point (readonly)
Get the map linker offset
171 172 173 |
# File 'docs/000_a_root.rb', line 171 def map_linker_offset @map_linker_offset end |
#tilemap_class ⇒ String (readonly)
Get the tilemap class
153 154 155 |
# File 'docs/000_a_root.rb', line 153 def tilemap_class @tilemap_class end |
#tilemap_size ⇒ Point (readonly)
Get the size of the tilemap
156 157 158 |
# File 'docs/000_a_root.rb', line 156 def tilemap_size @tilemap_size end |
#uses_old_map_linker ⇒ Boolean (readonly)
Tell if the game uses the old map linker settings
174 175 176 |
# File 'docs/000_a_root.rb', line 174 def uses_old_map_linker @uses_old_map_linker end |