From 6136346faaef951d7b4a20d243faa1333f769bde Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Sun, 20 Nov 2022 20:20:31 +0100 Subject: [PATCH] Minor adjustments --- scenes/AdaptiveWorldStream.tscn | 2 +- scenes/HexTile3D.tscn | 2 ++ scenes/StreamContainer.gd | 4 +--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scenes/AdaptiveWorldStream.tscn b/scenes/AdaptiveWorldStream.tscn index ddf779c..5264b5d 100644 --- a/scenes/AdaptiveWorldStream.tscn +++ b/scenes/AdaptiveWorldStream.tscn @@ -127,7 +127,7 @@ text = "0" [node name="StreamContainer" type="Spatial" parent="."] script = ExtResource( 4 ) -world_rect = Rect2( 0, 0, 25, 18 ) +world_rect = Rect2( 0, 0, 25, 20 ) [node name="ActiveTiles" type="Spatial" parent="StreamContainer"] diff --git a/scenes/HexTile3D.tscn b/scenes/HexTile3D.tscn index 3d5d38a..39fbcf9 100644 --- a/scenes/HexTile3D.tscn +++ b/scenes/HexTile3D.tscn @@ -24,6 +24,8 @@ mesh = SubResource( 6 ) material/0 = ExtResource( 2 ) [node name="Area" type="Area" parent="Mesh"] +monitoring = false +monitorable = false [node name="CollisionShape" type="CollisionShape" parent="Mesh/Area"] transform = Transform( 1, 0, 0, 0, 10, 0, 0, 0, 1, 0, 0, 0 ) diff --git a/scenes/StreamContainer.gd b/scenes/StreamContainer.gd index a51597f..c47e5ca 100644 --- a/scenes/StreamContainer.gd +++ b/scenes/StreamContainer.gd @@ -22,10 +22,8 @@ func _ready(): func is_hex_coord_in_rect (coord: Vector2): - var has_point = offset_coord_rect.has_point(coord) var rect_end = offset_coord_rect.end - var manual = coord.x >= offset_coord_rect.position.x and coord.x < offset_coord_rect.end.x and coord.y >= offset_coord_rect.position.y and coord.y < offset_coord_rect.end.y - return has_point || manual + return coord.x >= offset_coord_rect.position.x and coord.x < offset_coord_rect.end.x and coord.y >= offset_coord_rect.position.y and coord.y < offset_coord_rect.end.y func create_hextile3d_at (coord: Vector2) -> HexTile3D: