3d
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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) {
|
||||
}
|
||||
Reference in New Issue
Block a user