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.
282 283 |
# File 'docs/000_a_root.rb', line 282 def initialize(v) end |
Instance Attribute Details
#autotile_idle_frame_count ⇒ Integer (readonly)
Get the number of frame autotiles does not animate
266 267 268 |
# File 'docs/000_a_root.rb', line 266 def autotile_idle_frame_count @autotile_idle_frame_count end |
#center ⇒ Point (readonly)
Get the center of the screen in sub pixel size
275 276 277 |
# File 'docs/000_a_root.rb', line 275 def center @center end |
#character_sprite_zoom ⇒ Float (readonly)
Get the zoom of the sprite as character
272 273 274 |
# File 'docs/000_a_root.rb', line 272 def character_sprite_zoom @character_sprite_zoom end |
#character_tile_zoom ⇒ Float (readonly)
Get the zoom of the tiles as character
269 270 271 |
# File 'docs/000_a_root.rb', line 269 def character_tile_zoom @character_tile_zoom end |
#map_linker_offset ⇒ Point (readonly)
Get the map linker offset
278 279 280 |
# File 'docs/000_a_root.rb', line 278 def map_linker_offset @map_linker_offset end |
#tilemap_class ⇒ String (readonly)
Get the tilemap class
260 261 262 |
# File 'docs/000_a_root.rb', line 260 def tilemap_class @tilemap_class end |
#tilemap_size ⇒ Point (readonly)
Get the size of the tilemap
263 264 265 |
# File 'docs/000_a_root.rb', line 263 def tilemap_size @tilemap_size end |
#uses_old_map_linker ⇒ Boolean (readonly)
Tell if the game uses the old map linker settings
281 282 283 |
# File 'docs/000_a_root.rb', line 281 def uses_old_map_linker @uses_old_map_linker end |