Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Handling of Slide Data #32

Closed
codythegreat opened this issue Nov 1, 2019 · 1 comment
Closed

Better Handling of Slide Data #32

codythegreat opened this issue Nov 1, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@codythegreat
Copy link
Owner

codythegreat commented Nov 1, 2019

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:

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.

@codythegreat codythegreat added the enhancement New feature or request label Nov 1, 2019
@codythegreat
Copy link
Owner Author

This has been implemented by commits e704933 - d946e14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant