Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove debug prints #90

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func _ready()-> void:
func setup_obstacles()->void:
if astargrid_resource.value == null:
return
print("Collision layer: ", collision_layer)
var _tilemap_rect:Rect2i = tilemap_layer.get_used_rect()
var _astar_rect:Rect2i = astargrid_resource.value.region
var _astar:AStarGrid2D = astargrid_resource.value
Expand Down Expand Up @@ -54,7 +53,6 @@ func setup_obstacles()->void:

for _offset:Vector2 in _offset_list:
var _tile_pos_off:Vector2i = _tile_pos + Vector2i(_offset)
print("Offsets: ", _tile_pos_off)

assert(_astar.region.has_point(_tile_pos_off))
_astar.set_point_solid(_tile_pos_off, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ func initialize_astargrid()->void:

var _tile_rect:Rect2i = tilemap_layer.get_used_rect()
_tile_rect = _tile_rect.grow(grow_region)
print("Tile region: ", _tile_rect)

var _astar:AStarGrid2D = AStarGrid2D.new()
_astar.region = _tile_rect
Expand Down