Class: Yuki::Tilemap

Inherits:
Object show all
Defined in:
docs/4_Systems_003_Map_Engine.rb

Overview

Class responsive of displaying the map

Direct Known Subclasses

Tilemap16px

Defined Under Namespace

Classes: MapData

Constant Summary collapse

PRIORITY_LAYER_COUNT =

Array telling how much layer each priority layer can show

[3, 2, 2, 1, 1, 1]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(viewport) ⇒ Tilemap

Create a new Tilemap

Parameters:



1321
1322
# File 'docs/4_Systems_003_Map_Engine.rb', line 1321

def initialize(viewport)
end

Instance Attribute Details

#map_datasArray<Yuki::Tilemap::MapData>

Get all the map data used by the tilemap

Returns:



1312
1313
1314
# File 'docs/4_Systems_003_Map_Engine.rb', line 1312

def map_datas
  @map_datas
end

#oxInteger

Get the ox

Returns:

  • (Integer)


1315
1316
1317
# File 'docs/4_Systems_003_Map_Engine.rb', line 1315

def ox
  @ox
end

#oyInteger

Get the oy

Returns:

  • (Integer)


1318
1319
1320
# File 'docs/4_Systems_003_Map_Engine.rb', line 1318

def oy
  @oy
end

Instance Method Details

#dispose

Dispose the tilemap



1338
1339
# File 'docs/4_Systems_003_Map_Engine.rb', line 1338

def dispose
end

#disposed?Boolean

Is the tilemap disposed

Returns:

  • (Boolean)


1331
1332
# File 'docs/4_Systems_003_Map_Engine.rb', line 1331

def disposed?
end

#reset

Reset the tilemap in order to force it to draw the frame



1324
1325
# File 'docs/4_Systems_003_Map_Engine.rb', line 1324

def reset
end

#update

Update the tilemap



1327
1328
# File 'docs/4_Systems_003_Map_Engine.rb', line 1327

def update
end