Skip to content

Break up arcade.create_text_sprite into several useful functions #1410

@bunny-therapist

Description

@bunny-therapist

Enhancement request:

What should be added/changed?

In 2.6.16, there was a function called arcade.create_text_image. In 2.7.1.dev3, it is gone. Instead, there is arcade.create_text_sprite.
This function first creates arcade.Text, then renders that into an arcade.Texture, then puts that into arcade.Sprite and returns it. It seems like it would be possible to have arcade.create_text_image put back, but using the new rending method instead. Also, there could be an arcade.create_text_texture. All that is needed is to break out parts of arcade.create_text_sprite into functions which return texture and/or image.

What would it help with?

I want to be able to create instances of arcade.Texture which contain text, which I can use in my game. To do this now, I am replacing calls to arcade.create_text_image with calls to arcade.create_text_sprite and then take .texture on it, which means Sprite is needlessly instantiated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions