command
module
Version:
v0.0.0-...-07b684a
Opens a new window with list of versions in this module.
Published: Oct 31, 2024
License: CC0-1.0, MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Resolv Example using the ECS architecture
This example code is created based on the example of resolv created by SolarLune.
How to play
Arrow key to move, X to jump.
Architecture
This example code is based on the ECS architecture using donburi.
The ECS structure is as follows:
scenes
- contains the main logic for setup and execute ECS systems.
components
- contains all components. Components are Go structs with no behavior other than occasional helper methods.
systems
- contains all systems. Systems keep the logic of the game. Each system works on entities with a specific set of components.
archetypes
- contains helper functions for creating entities with specific sets of components.
factory
- contains helper functions for creating and initializing data of components. factory
uses archetype
helpers.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.