Removing superfluous code, updating camera a bit
This commit is contained in:
parent
cec9227b67
commit
fc896925d6
7 changed files with 157 additions and 119 deletions
|
|
@ -19,7 +19,6 @@ func _ready() -> void:
|
|||
Log.pr("CrystalGlowComponent ready")
|
||||
|
||||
tile_size = tile_map.get_tileset().tile_size
|
||||
map_pixel_size = tilemap_size * tile_size
|
||||
tilemap_size = tile_map.get_used_rect().end - tile_map.get_used_rect().position
|
||||
|
||||
crystal_layer = tile_map.get_layer_id_by_name('Crystals')
|
||||
|
|
@ -42,7 +41,7 @@ func add_crystal_glow() -> void:
|
|||
continue
|
||||
else:
|
||||
var glow : CrystalGlow = crystal_glow.instantiate().duplicate()
|
||||
glow.set_position(coords * tile_map.get_tileset().tile_size + tile_map.get_tileset().tile_size / 2)
|
||||
glow.set_position(coords * tile_size + tile_size / 2)
|
||||
glow.glow_colour = glow_colour
|
||||
glow.orientation = orientation
|
||||
crystal_glow_container.add_child(glow)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue