Skip to content

Commit

Permalink
No, I say, NO! Top this madness!
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisl8 committed Mar 12, 2024
1 parent 21725e9 commit ddac9c6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions player/player_interaction_controller.gd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const INTERACT_RANGE: float = 200.0
@export var mouse_position: Vector2

var is_local: bool = false
var current_tool: int = 1
var max_hand_distance: float = 25.0
var mouse_left_down: bool
var mine_cast: RayCast2D
Expand Down Expand Up @@ -178,20 +177,13 @@ func de_spawn_placing_item() -> void:
func _input(event: InputEvent) -> void:
if event is InputEventMouseButton:
if event.button_index == 1 and event.is_pressed():
if !mouse_left_down:
left_mouse_clicked()
mouse_left_down = true
elif event.button_index == 1 and not event.is_pressed():
mouse_left_down = false
elif event.button_index == 2 and event.is_pressed():
right_mouse_clicked()


func left_mouse_clicked() -> void:
if current_tool == 1:
pass


func mine_raycast() -> void:
if current_mining_time > mining_speed:
current_mining_time = 0.0
Expand Down

0 comments on commit ddac9c6

Please sign in to comment.