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

Testing Fighter definition #152

Open
odecay opened this issue Jul 26, 2022 · 2 comments
Open

Testing Fighter definition #152

odecay opened this issue Jul 26, 2022 · 2 comments
Assignees
Labels
audience:developer Related to something only developers or project members see scope:small A small and well-defined task

Comments

@odecay
Copy link
Collaborator

odecay commented Jul 26, 2022

Description

I would like to introduce a player character fighter definition/asset in which animations for each attack/action are loaded from their own spritesheet instead of a single complete character spritesheet.

This will be used when testing unfinished "sketch" animations from our artists while in the process of developing upcoming attack system changes.

Alternatives & Prior Art

No response

@odecay odecay added scope:small A small and well-defined task scope:undetermined Undetermined size, needs investigation audience:developer Related to something only developers or project members see and removed scope:undetermined Undetermined size, needs investigation labels Jul 26, 2022
@odecay odecay self-assigned this Aug 12, 2022
@odecay odecay added this to the v0.0.4 milestone Aug 12, 2022
@odecay
Copy link
Collaborator Author

odecay commented Aug 18, 2022

Alright im working on this, trying to figure out how to make a TextureAtlas from multiple textures but also using TextureAtlas::from_grid() since the other alternative seems like it is specifying each texture offset/rect individually which seems like a pain for this usecase.

edit: ok it looks like this will not be a very fruitful path to go down, may have to rethink this. Bevy provides TextureAtlas and TextureAtlasBuilder apis for making texture atlases from a spritesheet or individual frames respectively but there doesn't seem to be consideration for slicing from spritesheets and combining from other spritesheets at the same time.

@zicklag
Copy link
Member

zicklag commented Aug 20, 2022

It wouldn't be way too difficult to use the image crate to combine multiple images into one before giving it to bevy and splitting it up by a grid, but I'm not sure if that's something we want to worry about right now, and it would increase loading times ( which might be fine if this is just for development ).

@odecay odecay removed this from the v0.0.4 milestone Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audience:developer Related to something only developers or project members see scope:small A small and well-defined task
Projects
None yet
Development

No branches or pull requests

2 participants