TodePond / Habitat

my javascript helpers
MIT License
45 stars 5 forks source link

Use an options helper #134

Closed TodePond closed 1 year ago

TodePond commented 1 year ago
new State("2d")
new Stage("2d", { speed: 0.5 })
new Stage({ context: "2d", speed" 0.5 })
new Component("stats")
new Component("stats", { health: 10 })
new Component({ name: "stats", health: 10 })

new Options("name", {
    name: () => "component",
    //isDefault: (v) => typeof v === "string",
})
TodePond commented 1 year ago

Doine