platformer

command module
v0.0.0-...-fe6e43e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: CC0-1.0, MIT Imports: 9 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL