massive work towards godot 4

This commit is contained in:
2023-02-01 04:43:50 -05:00
parent 42259a89ed
commit 5dac6ced93
484 changed files with 5935 additions and 5084 deletions

7
scripts/pickup.gd Normal file
View File

@@ -0,0 +1,7 @@
extends Node2D
func _ready():
var tile_map = get_node("%tile_map") as TileMap
var tile_pos = tile_map.local_to_map(position)
if(tile_map.get_cell(0, Vector2i(tile_pos.x, tile_pos.y)) != 0):
queue_free()