mirror of
				https://github.com/JohnBreaux/Boat-Battle.git
				synced 2025-02-04 12:28:35 +00:00 
			
		
		
		
	Bug Fix: Board snap bordering fix
This commit is contained in:
		| @@ -25,7 +25,7 @@ func _input(event): | |||||||
| 				 | 				 | ||||||
| 		if held and not event.pressed: | 		if held and not event.pressed: | ||||||
| 			held = false; | 			held = false; | ||||||
| 			if (position.x > 17.4 and position.x < 337.5) and (position.y > 20.2 and position.y < 335.5): | 			if (position.x > 17.4 and position.x < 335.5) and (position.y > 20.2 and position.y < 335.5): | ||||||
| 				position = position.snapped(Vector2(32, 32)) + Vector2(4, 4) | 				position = position.snapped(Vector2(32, 32)) + Vector2(4, 4) | ||||||
| 			else: | 			else: | ||||||
| 				if originalPos != null: | 				if originalPos != null: | ||||||
| @@ -115,7 +115,7 @@ func _input(event): | |||||||
| 					rotate(PI/2) | 					rotate(PI/2) | ||||||
| 					vertical = true | 					vertical = true | ||||||
| 		 | 		 | ||||||
| 		if(position.x > 17.4 and position.x < 337.5) and (position.y > 20.2 and position.y < 335.5): | 		if(position.x > 17.4 and position.x < 335.5) and (position.y > 20.2 and position.y < 335.5): | ||||||
| 			# 2-Ship | 			# 2-Ship | ||||||
| 			if (get_parent().get_node("2Ship").rotation_degrees == 0): | 			if (get_parent().get_node("2Ship").rotation_degrees == 0): | ||||||
| 				if (get_parent().get_node("2Ship").position.y > 308): | 				if (get_parent().get_node("2Ship").position.y > 308): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user