From b7c034d877ba415103835e2e4dd1efc3e8e15b6b Mon Sep 17 00:00:00 2001 From: Nitsud Yarg Date: Fri, 7 Jun 2024 11:17:12 -0700 Subject: [PATCH] remove android build from tracking --- .gitignore | 2 +- script_templates/.gdignore | 0 script_templates/Actor.gd | 22 ++++++++++++++ script_templates/MovementComponent.gd | 42 +++++++++++++++++++++++++++ 4 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 script_templates/.gdignore create mode 100644 script_templates/Actor.gd create mode 100644 script_templates/MovementComponent.gd diff --git a/.gitignore b/.gitignore index 121ad74..2771203 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ .import/ .mono/ addons/ -android/build/ \ No newline at end of file +android/ \ No newline at end of file diff --git a/script_templates/.gdignore b/script_templates/.gdignore new file mode 100644 index 0000000..e69de29 diff --git a/script_templates/Actor.gd b/script_templates/Actor.gd new file mode 100644 index 0000000..58cc799 --- /dev/null +++ b/script_templates/Actor.gd @@ -0,0 +1,22 @@ +extends %BASE% + + +# Declare member variables here. Examples: +# var a%INT_TYPE% = 2 +# var b%STRING_TYPE% = "text" + + +# Called when the node enters the scene tree. +# you do not normally need to define this for Actor +# func _ready()%VOID_RETURN%: +# pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +# you do not normally need to define this for Actor +#func _process(delta%FLOAT_TYPE%)%VOID_RETURN%: +# pass + +# Attach any number of signals from children nodes here. +# It's a good idea to define component signals here then call functions +# from other components. diff --git a/script_templates/MovementComponent.gd b/script_templates/MovementComponent.gd new file mode 100644 index 0000000..02ae896 --- /dev/null +++ b/script_templates/MovementComponent.gd @@ -0,0 +1,42 @@ +extends %BASE% + +## Constants available to you +# UP = -1.0 +# DOWN = 1.0 +# LEFT = -1.0 +# RIGHT = 1.0 + +# Avalable functions to call +# A Series of helper functions +# go_up(): +# go_down(): +# go_left(): +# go_right(): +# stop(): + + +## Other needed variables +# desired_movement_vector: Vector2 - Used to store desired movement depending on the state +# current_movement_state:String - The name of the current State + +# Since animactor state machine can actually view properties from this type +# I'm thinking about moving the velocity tracker in here instead of player. +# velocity: Vector2 - Current velocity, you can change this at will but state may modify it + +# Declare any other member variables here. Examples: +# var a%INT_TYPE% = 2 +# var b%STRING_TYPE% = "text" + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +# you do not normally need to define this for Actor +#func process(delta%FLOAT_TYPE%)%VOID_RETURN%: +# pass + +# For Enemy and NPC Actors: +# should be called on the frame process. + +# For Player Actors: +# Should be called on the input process + +