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

Enable different ways of rendering frames, also introduced flag for drawing with "ADD" blendMode #15

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

RudolfVonKrugstein
Copy link
Contributor

Enable different ways of rendering frames:

  • Traditionally, with a single bitmapData for every frame
  • By drawing a rect from one single bitmap data
  • Using tilesheets

For this render targets are introduced, which render into a "graphics" object.
For now the graphics object is the "graphics" member of the AnimatedSprite.

Also: Introduced flag for rendering with "ADD" blendMode.
Due to some issue, rendering with blendmode "Add" works only using tilesheets on C++
targets and by setting "blendMode" of the sprite on flash target.

* Traditionally, with a single bitmapData for every frame
* By drawing a rect from one single bitmap data
* Using tilesheets

For this render targets are introduced, which render into a "graphics" object.
For now the graphics object is the "graphics" member of the AnimatedSprite.

Also: Introduced flag for rendering with "ADD" blendMode.
Due to some issue, rendering with blendmode "Add" works only using tilesheets on C++
targets and by setting "blendMode" of the sprite on flash target.
Conflicts:
	spritesheet/AnimatedSprite.hx
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

Successfully merging this pull request may close these issues.

1 participant