aboutsummaryrefslogtreecommitdiff
path: root/src/resources.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources.odin')
-rw-r--r--src/resources.odin11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/resources.odin b/src/resources.odin
index 7051fcf..315551d 100644
--- a/src/resources.odin
+++ b/src/resources.odin
@@ -30,12 +30,18 @@ Animation_Resource :: struct {
Object_Resource :: struct {
type: Object_Type,
+ tile_id: Maybe(u32),
pos: Vec2,
size: Vec2,
parallax: Vec2,
properties: map[string]Tiled_Property,
}
+Backgrond_Image :: struct {
+ image_id: Image_Id,
+ parallax: Vec2,
+}
+
Room_Resource :: struct {
width: i32,
height: i32,
@@ -43,11 +49,12 @@ Room_Resource :: struct {
tile_height: i32,
layers: [][]u32,
objects: []Object_Resource,
- background_image: Maybe(Image_Id),
+ background_color: Color,
+ background_images: []Backgrond_Image,
}
Tile_Resource :: struct {
- tileset: Tileset_Id,
+ image: Image_Id,
rect: Rect,
id: u32,
collisions: []Rect,