You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: So I've thought about this some more and I think that if we want the code to be readable and expandable in the future then a doubly linked listed for the slides would be better. I propose the following structure:
typedef struct slide {
int number;
int x, y;
int color;
line *first;
slide *next;
slide *prev;
} slide;
This is very simplified, and variables are subject to change, but this give us a much easier way to pass around the struct as we'd only need one instance to access the rest of the slides. We can use the number variable for our current movement system.
The text was updated successfully, but these errors were encountered:
Better Handling of Slide Data
Edit: So I've thought about this some more and I think that if we want the code to be readable and expandable in the future then a doubly linked listed for the slides would be better. I propose the following structure:
This is very simplified, and variables are subject to change, but this give us a much easier way to pass around the struct as we'd only need one instance to access the rest of the slides. We can use the
number
variable for our current movement system.The text was updated successfully, but these errors were encountered: