spawn an entity, no movement yet
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
World :: struct {
|
||||
entities: Entity_World,
|
||||
}
|
||||
|
||||
world_init :: proc() -> World {
|
||||
w := World{}
|
||||
w.entities = entity_world_init()
|
||||
return w
|
||||
}
|
||||
|
||||
world_draw :: proc(w: ^World, camera: ^Camera2D) {
|
||||
entity_draw(&w.entities, camera)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user