Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Sprite support #7

Open
rdrpenguin04 opened this issue Jun 29, 2020 · 1 comment
Open

Sprite support #7

rdrpenguin04 opened this issue Jun 29, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@rdrpenguin04
Copy link
Member

Goal: To implement a "Sprite" construct that renders a scalable image on the screen.

Constraints:

  • Constructing a Sprite should return something usable as a Thing.
  • Sprite should have an initialization function that takes a starting coordinate pair (float, float), a starting size (float, float; passing 0 uses the size of the image, scaled by a constant), a starting depth (float), and a list of images (in C, these should be sent as uint32_t, char**) as parameters
  • Sprite should have a function to set the current frame of animation based on id
  • Sprite should have a function to add an update handler. This can be used to give Sprites a primitive AI. The handler shall be aware of the Sprite, and it shall run during the update cycle to prevent concurrency issues.
  • Sprite should have a function to change the X or Y coordinate, or both at once, as well as a function to change the X/Y/combined scale factor(s).
@rdrpenguin04 rdrpenguin04 self-assigned this Jun 29, 2020
@rdrpenguin04 rdrpenguin04 added the enhancement New feature or request label Jun 29, 2020
@chorman0773
Copy link
Member

This should be finished ASAP. I have thing blocked on this.

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

No branches or pull requests

2 participants