diff --git a/README.md b/README.md index 3b9c8ca..1f43f35 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ This was initially based on Sable Spirit Studio's YT series but has evolved to b | Description | Binding | | ----------- | ------- | -| Create block | `Right Click` | -| Delete/Remove block | `Left Click` | +| Create block | `Left Click` | +| Delete/Remove block | `Right Click` | | Change selected block (next) | `.` | | Change selected block (previous) | `,` | | Change selected block | `Scroll Wheel` | diff --git a/scenes/blocks/block.gd b/scenes/blocks/block.gd index 2af5087..231cc0b 100644 --- a/scenes/blocks/block.gd +++ b/scenes/blocks/block.gd @@ -28,7 +28,7 @@ func hook() -> void: # TODO: Rename to something else (maybe remove()) # Move to signal? -func interact_left_click() -> void: +func destroy_block() -> void: queue_free() func release() -> void: diff --git a/scenes/player/ray_cast_look.gd b/scenes/player/ray_cast_look.gd index 515c8a1..0f46061 100644 --- a/scenes/player/ray_cast_look.gd +++ b/scenes/player/ray_cast_look.gd @@ -6,9 +6,9 @@ func _process(_delta: float) -> void: var collider: Object = get_collider() if collider is Block: - if Input.is_action_just_pressed("left_click_interact"): - (collider as Block).interact_left_click() if Input.is_action_just_pressed("right_click_interact"): + (collider as Block).destroy_block() + if Input.is_action_just_pressed("left_click_interact"): EntityManager.create_block.emit( InventoryManager.quick_slot_item_id, collider.position + get_collision_normal()