rework rectangles in floppy
rectangles are objects that one collides into. rework so rectanlges themselves are immutable, and only draw visible rectangles.task id: rework-rectangles
2024-06-04 09:32: let's revisit the code #rework-rectangles #game-jam
2024-06-04 09:47: it would be nice to get rid of tubePos #rework-rectangles #game-jam
2024-06-04 09:51: it's going to take to much time to recode this properly I think #rework-rectangles #game-jam
2024-06-04 09:53: hmm, maybe I can start by trying to introduce global x offset #rework-rectangles #game-jam
2024-06-04 10:00: trying to make tubes immutable data #rework-rectangles #game-jam
Instead of updating the xoffset every time, create a new rectangle with global X offset applied.
2024-06-04 10:09: attempt to establish more low-level rectangle format in JSON #rework-rectangles #game-jam
I don't necessarily want double rectangles every time any more.
I have the schema, but more refactoring is needed. I want to load the raw rectangle and skip the tube positions (which then copy over to the rectangles).
2024-06-04 10:17: might need to eliminate tubePos at this point? #rework-rectangles #game-jam
The JSON file is loading rectangles directly, I don't think tubePos is required anymore?
2024-06-04 10:57: JSON rectangle format works! now to generate in lua #rework-rectangles #game-jam
I guess I'll have to live with it?