update readme
This commit is contained in:
@@ -38,10 +38,10 @@ main :: proc() {
|
|||||||
systems are procedures that run on set schedules
|
systems are procedures that run on set schedules
|
||||||
|
|
||||||
a schedule just determines when a producure runs\
|
a schedule just determines when a producure runs\
|
||||||
schedules are:\
|
schedules are:
|
||||||
- STARTUP\
|
- STARTUP
|
||||||
- UPDATE\
|
- UPDATE
|
||||||
- DRAW\
|
- DRAW
|
||||||
|
|
||||||
`STARTUP` runs once at the start of an app\
|
`STARTUP` runs once at the start of an app\
|
||||||
`UPDATE` runs every frame\
|
`UPDATE` runs every frame\
|
||||||
@@ -90,7 +90,7 @@ main :: proc() {
|
|||||||
|
|
||||||
and give it new components with `add_component()`
|
and give it new components with `add_component()`
|
||||||
|
|
||||||
```odin
|
```od\
|
||||||
main :: proc() {
|
main :: proc() {
|
||||||
ecs.add_component(entity, &Example) // make sure to pass a reference to the storage, not the component type
|
ecs.add_component(entity, &Example) // make sure to pass a reference to the storage, not the component type
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user