Released under the MIT license.
A collection of simple building-block components that are designed to be easy to use and be dropped into any Godot 4 project, ready to use with no (or minimal) configuration, and "smart" (or at least sensible) defaults.
These components may be useful for rapid prototyping, quickly testing ideas without requiring major time investment, and for learning (feel free to check out the lovingly-commented source code).
While efforts has been made to make the components robust and performant enough for development use, they are not necessarily optimised for production environments. Caveat consumptor. If in doubt, feel free to disassemble and reassemble the components to your own purposes.
-
StatComponent
- Keep track of an arbitrary numerical statistic (stat). -
HealthComponent
- Keep track of a health-like numerical statistic (stat).
-
VelocityComponent
- Apply acceleration and deceleration toCharacterBody2D.velocity
. -
ControlsLeftRight
- Apply left/right movement to aVelocityComponent
. -
MovementControlsUpDown
- Apply up/down movement to aVelocityComponent
. -
MovementControlsFourWay
- Apply four-way movement to aVelocityComponent
.
-
PlaceholderComponent
- A visual placeholder component. -
LookAtCursorComponent
- Rotate aNode2D
to "look" at the cursor. -
LookAtNodeComponent
- Rotate aNode2D
to "look" at anotherNode2D
. -
AlignToVelocityComponent
- Align aNode2D
's rotation to follow aVelocityComponent
. -
RotateComponent
- Rotate aNode2D
at a constant angular speed.