A performance-first ECS experiment for MoonBit.
Dependencies
///|
#valtype
priv struct Pos {
x : Double
y : Double
}
///|
#valtype
priv struct Vel {
x : Double
y : Double
}
///|
test {
let position = Pos::{ x: 1.0, y: 2.0, }
let velocity = Vel::{ x: 3.0, y: 4.0, }
assert_eq(position.x + velocity.x, 4.0)
assert_eq(position.y + velocity.y, 6.0)
}Install
Download zipA performance-first ECS experiment for MoonBit.
Dependencies