Skip to content

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

Open
RudolfVonKrugstein wants to merge 12 commits into
skylarkstudio:masterfrom
RudolfVonKrugstein:blendadd
Open

Enable different ways of rendering frames, also introduced flag for drawing with "ADD" blendMode#15
RudolfVonKrugstein wants to merge 12 commits into
skylarkstudio:masterfrom
RudolfVonKrugstein:blendadd

Conversation

@RudolfVonKrugstein

Copy link
Copy Markdown
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