Skip to content

Create a global sprite pool for new sprites to be created #22

@stringdotjar

Description

@stringdotjar

There should be a global sprite pool (located in the global Flixel class), with a helper methods in the Flixel class such as newSprite(), with parameters that a normal FlixelSprite would take. This function should free a sprite from the pool and return a freshly new, reused sprite object

It should look something like this for creating new sprites:

FlixelSprite sprite = Flixel.newSprite();
FlixelSprite spriteParams = Flixel.newSprite("path/to/image/texture");

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestflixelgdxFNF:JE's custom 1:1, Flixel-to-Java framework built on libGDXhigh priorityNot urgent, but must be completed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions