feat: made sure the aspect ration fit a pixel art game and added useful addons
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m16s

This commit is contained in:
2025-06-27 15:19:12 +02:00
parent 4ec91c1277
commit 9a79715e47
550 changed files with 18812 additions and 0 deletions

View File

@ -0,0 +1,22 @@
@tool
@icon("state_is_active_guard.svg")
## A guard that checks if a certain state is active.
class_name StateIsActiveGuard
extends Guard
const DebugUtil = preload("debug_util.gd")
## The state to be checked. When null this guard will return false.
@export_node_path("StateChartState") var state: NodePath
func is_satisfied(context_transition:Transition, context_state:StateChartState) -> bool:
## resolve the state, relative to the transition
var actual_state := context_transition.get_node_or_null(state)
if actual_state == null:
push_warning("State ", state , " referenced in StateIsActiveGuard below ", DebugUtil.path_of(context_state), " could not be resolved. Verify that the node path is correct.")
return false
return actual_state.active
func get_supported_trigger_types() -> int:
return StateChart.TriggerType.STATE_CHANGE