23 lines
437 B
Odin
23 lines
437 B
Odin
package main
|
|
import rl "vendor:raylib"
|
|
|
|
GroundItem :: struct {
|
|
using base: BaseEntity,
|
|
heal: i32,
|
|
}
|
|
|
|
make_ground_item :: proc(pos: rl.Vector2) -> Entity {
|
|
return Entity{
|
|
v = GroundItem{
|
|
base = BaseEntity{
|
|
pos = pos, col_size = 10,
|
|
gfx = {0 = GfxCircle{pos = {}, radius = 6, color = {255, 220, 50, 255}}},
|
|
},
|
|
heal = 25,
|
|
},
|
|
}
|
|
}
|
|
|
|
item_update :: proc(state: ^GameState, i: ^GroundItem, h: Handle, dt: f32) {
|
|
}
|