An open API service indexing awesome lists of open source software.

https://github.com/mlange-42/arche-demo

Demo for Arche, the Go Entity Component System (ECS)
https://github.com/mlange-42/arche-demo

ecs entity-component-system go golang

Last synced: 8 months ago
JSON representation

Demo for Arche, the Go Entity Component System (ECS)

Awesome Lists containing this project

README

          

# Arche Demo

[![Test status](https://img.shields.io/github/actions/workflow/status/mlange-42/arche-demo/tests.yml?branch=main&label=Tests&logo=github)](https://github.com/mlange-42/arche-demo/actions/workflows/tests.yml)
[![Go Reference](https://pkg.go.dev/badge/github.com/mlange-42/arche-demo.svg)](https://pkg.go.dev/github.com/mlange-42/arche-demo)
[![GitHub](https://img.shields.io/badge/github-repo-blue?logo=github)](https://github.com/mlange-42/arche-demo)
[![MIT license](https://img.shields.io/github/license/mlange-42/arche-demo)](https://github.com/mlange-42/arche-demo/blob/main/LICENSE)

Demo for the [Arche](https://github.com/mlange-42/arche) Entity Component System (ECS).

See the [live demo here](https://mlange-42.github.io/arche-demo/).


Arche (logo)

## Usage

Besides the [live demo](https://mlange-42.github.io/arche-demo/), you can run the examples locally.

Clone the repository, and navigate into it:

```
git clone https://github.com/mlange-42/arche-demo.git
cd arche-demo
```

Then, run individual examples like this:

```
go run .
```

In each example directory, file `run.go` is the entrypoint for an overview of the ECS systems
that make up the model.

## Dependencies

Due to the use of [Ebitengine](https://github.com/hajimehoshi/ebiten) for rendering, the dependencies of [go-gl/gl](https://github.com/go-gl/gl) and [go-gl/glfw](https://github.com/go-gl/glfw) apply. For Ubuntu/Debian-based systems, these are:

- `libgl1-mesa-dev`
- `xorg-dev`