render :: (use this: ^Entity) {
rect := this->get_rect();
- immediate_rectangle(rect.x, rect.y, rect.w, rect.h);
+ // immediate_rectangle(rect.x, rect.y, rect.w, rect.h);
+ immediate_image(^Tap.assets.texture, rect.x, rect.y, rect.w, rect.h);
+ }
+
+ #persist assets: struct {
+ #tag "./assets/images/keg.png"
+ texture: Texture;
}
}
-tap_assets: struct {
- #tag "./assets/"
- texture: Texture;
-}
\ No newline at end of file
// This process of queueing the asset bucket should
// be made automatic somehow...
queue_assets(^Player.assets);
+ queue_assets(^Tap.assets);
load_assets();