Skip to content

Instantly share code, notes, and snippets.

View interfacekun's full-sized avatar
😇
Working from home

interfacekun

😇
Working from home
View GitHub Profile
@cloudwu
cloudwu / ecs.lua
Created December 3, 2017 14:22
Lua ECS
local core = require "ecs.core"
local ecs = {}
local entities = {} -- all Entities, eid -> entity
local entity_id = 0
ecs.entities = entities
-- cset: component set
local cset = { __mode = "kv" }