mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-16 15:10:20 +02:00
Added spike animation and added new WIP World layout
This commit is contained in:
@@ -17,7 +17,6 @@ func get_nearest_grid_pos(position, scale = 1):
|
||||
#what is to be done when data is dropped
|
||||
func drop_data(_pos, data:PackedScene):
|
||||
var new_pos = get_nearest_grid_pos(_pos)
|
||||
grid._draw_object_grid()
|
||||
if grid.object_grid[new_pos.x - 1][new_pos.y - 1].back() == Grid.Kind.FIELD:
|
||||
var child = data.instance()
|
||||
child.position = get_nearest_grid_pos(_pos, 32)
|
||||
|
||||
Reference in New Issue
Block a user