This commit is contained in:
2026-08-03 21:11:00 +03:00
parent 8f596735e1
commit 06e41fc7da
33 changed files with 2180 additions and 356 deletions
+22
View File
@@ -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) {
}