Skip to content

Game Engine

collinalexbell edited this page Apr 24, 2024 · 2 revisions

HackMatrix is a game engine with an entity component system.

Bootable Component

If you are using HackMatrix as a window manager, the most interesting component will be the Bootable, which will allow you to launch programs on startup.

To add a bootable, open the Entity Editor, then + Create Entity. The new entity should be at the top.

Create component Bootable

Give it a height and with that is the same as your screen aspect ratio (will change this requirement in a later version)

Give it an x and y of 0.15 * width & 0.15 * height respectively (again, will change this requirement)

Give it command and optional args (space seperated)

Boot on startup True

Kill on exit False

Next create component Positionable under the same entity

Give it x,y,z of something like (0, 1.1, -1)

Scroll to the top and click Persist All

Reboot matrix (with <escape> and maybe startx if you aren't using the trampoline)

Clone this wiki locally