mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-14 14:22:23 +02:00
Added cards for objects + MISC
- Added flame animation - Added cards for objects - Added new background animation - Added placeable walls Co-Authored-By: deranonymos <deranonymos@users.noreply.github.com>
This commit is contained in:
@@ -38,7 +38,6 @@ func _reset_grids():
|
||||
|
||||
|
||||
func _ready():
|
||||
|
||||
var walls = get_tree().current_scene.get_node("FloorTileMap")
|
||||
offset = walls.global_position
|
||||
#todo put in grid_lul
|
||||
@@ -123,7 +122,7 @@ func _update_grid():
|
||||
var node_kind = node.get_node("Kind")
|
||||
var grid_corrds = _pixel_to_grid_coords(node.global_position)
|
||||
if (_is_in_grid(grid_corrds)):
|
||||
if(node_kind.general != Kind.FIELD and node_kind.general != Kind.WALL):
|
||||
if(node_kind.general != Kind.FIELD): #and node_kind.general != Kind.WALL):
|
||||
object_grid[grid_corrds.x][grid_corrds.y].push_back(node_kind.general)
|
||||
prio_grid[grid_corrds.x][grid_corrds.y].push_back(node_kind.kind)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user