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

[Implement] "Cache Sprite" Packet #30

Open
acagliano opened this issue Dec 2, 2020 · 0 comments
Open

[Implement] "Cache Sprite" Packet #30

acagliano opened this issue Dec 2, 2020 · 0 comments
Assignees

Comments

@acagliano
Copy link
Owner

This packet needs the following format:

 struct {
                uint8_t control_code;
                uint8_t type;
                uint8_t slot;
                uint24_t size;
                gfx_sprite_t sprite;
            } *packet = (void*)data;

Type is ether 0 for terrain or 1 for player.
Slot is the Type ID of the terrain or PlayerID of the player.
Size is the decompressed size of the sprite.
If the serial buffer on calc needs to be larger to accomodate, lmk.

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

No branches or pull requests

2 participants