diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-16 11:15:58 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-16 11:15:58 +0200 |
| commit | 9e14d5cd569e912c6a77222719a4d4a8be4b7c72 (patch) | |
| tree | 7b0868798c85f61a749e2e17113b8d5ced79933e /src/objects.c | |
| parent | fa7b6b01b68ad3934734e67b65d31d0d4ccfa0a6 (diff) | |
painting and new tiles
Diffstat (limited to 'src/objects.c')
| -rw-r--r-- | src/objects.c | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/src/objects.c b/src/objects.c index 9342eb0..2574ed7 100644 --- a/src/objects.c +++ b/src/objects.c @@ -169,6 +169,28 @@ image* get_image_from_objecttype(object_type tile) { return img_bowling_lane_end; case OBJECT_GLASS_DOOR_V: return img_glass_door_v_closed; + case OBJECT_BOWLING_MACHINE: + return img_bowling_machine; + case OBJECT_PAINTING1: + return img_painting1; + case OBJECT_PAINTING2: + return img_painting2; + case OBJECT_PAINTING3: + return img_painting3; + case OBJECT_PAINTING4: + return img_painting4; + case OBJECT_PAINTING5: + return img_painting5; + case OBJECT_PAINTING6: + return img_painting6; + case OBJECT_PAINTING7: + return img_painting7; + case OBJECT_PAINTING8: + return img_painting8; + case OBJECT_PAINTING9: + return img_painting9; + case OBJECT_PAINTING10: + return img_painting10; default: return 0; } @@ -180,6 +202,7 @@ void add_decoration_object(object o) { if (decoration_objects[i].active) continue; decoration_objects[i] = o; + return; } } @@ -203,9 +226,9 @@ void draw_objects(platform_window* window) { if (!loaded_map.objects[i].active) continue; object o = loaded_map.objects[i]; - //if (o.type == OBJECT_GLASS_DOOR_H) continue; - //if (o.type == OBJECT_GLASS_DOOR_V) continue; - //if (o.type == OBJECT_BOWLING_LANE) continue; + if (o.type == OBJECT_GLASS_DOOR_H) continue; + if (o.type == OBJECT_GLASS_DOOR_V) continue; + if (o.type == OBJECT_BOWLING_LANE) continue; box box = get_box_of_object(window, o); |
