moved bucket to the playercontroller, changed tweenStages to a list of pegactions, so processtween takes in actions and builds off of that so that movement/actions priority will line up properly. change tweenstages key to be priority:loop. added category to actions to divide into movement vs action

This commit is contained in:
2026-06-30 02:46:00 -04:00
parent 982c3e6786
commit c8e81e4f48
12 changed files with 48 additions and 41 deletions
+1
View File
@@ -7,6 +7,7 @@ public partial class BasicMovement : PegAction
public override void _Ready()
{
base._Ready();
_category = "movement";
_priority = 0;
_healthChange = 0;
_cost = 1;
+1
View File
@@ -7,6 +7,7 @@ public partial class Shortbow : PegAction
public override void _Ready()
{
base._Ready();
_category = "attack";
_priority = 1;
_healthChange = -1;
_cost = 2;
+1
View File
@@ -7,6 +7,7 @@ public partial class Shortsword : PegAction
public override void _Ready()
{
base._Ready();
_category = "attack";
_priority = 1;
_healthChange = -2;
_cost = 2;
+1
View File
@@ -3,6 +3,7 @@ using System;
public partial class PegAction : Node2D
{
public string _category;
public int _priority, _healthChange, _cost, _range, _usesMax, _usesRemaining, _triggers = 0;
public Sprite2D _image;