RapidGameFramework
Reusable Godot managers for data-driven small games
Loading...
Searching...
No Matches
character_controller_2d.gd File Reference

Data-oriented platformer movement helper. More...

Go to the source code of this file.

Namespaces

namespace  character_controller_2d
 

Variables

 character_controller_2d.Dictionary
 Create initial controller state.
 
 character_controller_2d.settings
 
 character_controller_2d.next
 
 character_controller_2d.velocity = Vector2(float(next.get("facing", 1)) * float(settings["dash_speed"]), 0)
 
 character_controller_2d.move
 
 character_controller_2d.x
 
 character_controller_2d.y
 

Detailed Description

Data-oriented platformer movement helper.

This does not move a Godot node directly. It returns velocity/state dictionaries so platformers can use the same rules with CharacterBody2D, custom collision, or tests.

Definition in file character_controller_2d.gd.