added project with nerabochie cows
This commit is contained in:
17
scenes/characters/player/player.gd
Normal file
17
scenes/characters/player/player.gd
Normal file
@ -0,0 +1,17 @@
|
||||
class_name Player
|
||||
extends CharacterBody2D
|
||||
|
||||
@export var current_tool : DataTypes.Tools = DataTypes.Tools.None
|
||||
|
||||
var player_direction : Vector2
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if Input.is_action_pressed("tool_none"):
|
||||
current_tool = DataTypes.Tools.None
|
||||
if Input.is_action_pressed("tool_axe"):
|
||||
current_tool = DataTypes.Tools.AxeWood
|
||||
if Input.is_action_pressed("tool_tilling"):
|
||||
current_tool = DataTypes.Tools.TillGround
|
||||
if Input.is_action_pressed("tool_water"):
|
||||
current_tool = DataTypes.Tools.WaterCrops
|
Reference in New Issue
Block a user