Skip to content

Instantly share code, notes, and snippets.

View Lassi-Koykka's full-sized avatar
:shipit:
👨‍💻

Lassi Köykkä Lassi-Koykka

:shipit:
👨‍💻
View GitHub Profile
@mbforbes
mbforbes / minimal-ecs.ts
Created September 5, 2021 06:50
A minimal but complete Entity Component System (ECS) implementation in 99 lines.
type Entity = number
abstract class Component { }
abstract class System {
public abstract componentsRequired: Set<Function>
public abstract update(entities: Set<Entity>): void
public ecs: ECS
}
type ComponentClass<T extends Component> = new (...args: any[]) => T
class ComponentContainer {
private map = new Map<Function, Component>();
@matthewjberger
matthewjberger / instructions.md
Last active May 10, 2024 09:05
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache