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

Allow multiple copy lines to super-impose sprites #38

Open
m-ender opened this issue Feb 21, 2022 · 5 comments
Open

Allow multiple copy lines to super-impose sprites #38

m-ender opened this issue Feb 21, 2022 · 5 comments
Labels
animation anything that can help create animations or make better animations in a game feature New feature or request polish Make the games or editor behave/look better sprite manipulations copying and transforming sprites syntax/language Concerns the language or its syntax

Comments

@m-ender
Copy link
Collaborator

m-ender commented Feb 21, 2022

When defining a sprite via sprite copy/transformations, it would be useful to allow several sprites to be copied on top of each other and transformed individually.

@ClementSparrow ClementSparrow added feature New feature or request syntax/language Concerns the language or its syntax labels Feb 21, 2022
@ClementSparrow
Copy link
Owner

yeah, I was considering doing that, too.

@ClementSparrow ClementSparrow added polish Make the games or editor behave/look better sprite manipulations copying and transforming sprites animation anything that can help create animations or make better animations in a game labels Jul 22, 2022
@david-pfx
Copy link

Common situation for puzzle pieces is symmetry. Boring to define a large piece with much duplication. So, define one half or quarter and use copy/rotation to fill in the rest.

@david-pfx
Copy link

This is non-trivial to define. For example, what would this mean?

    Lava:Anim5
    Red Orange #CF4020
    copy: Lava:PrevAnim5 shift:left
    copy: overlay rot:up:right 

What does the rot apply to?

@ClementSparrow
Copy link
Owner

Yes, there is some ambiguity in the syntax, but I think it makes more sense if the transformations apply only to the last bitmap provided (if needed, you can also add the same transformation after the transformations for the other bitmaps provided).

Also, I'd like to be able to provide a bitmap directly without copying it from another object. Something like:

Lava:Anim5
Red Orange #CF4020
copy: Lava:PrevAnim5 shift:left
+
00100
01000
11111
01000
00100
rot:up:right 

@david-pfx
Copy link

That's turning into a whole sub-language. No problem, but needs careful specification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
animation anything that can help create animations or make better animations in a game feature New feature or request polish Make the games or editor behave/look better sprite manipulations copying and transforming sprites syntax/language Concerns the language or its syntax
Projects
None yet
Development

No branches or pull requests

3 participants