Vertex Docs

AssetManager.get_image(name)

Description: Retrieves an image that was previously loaded into the AssetManager using its assigned name. This allows images to be loaded once and reused throughout the application without reloading them from disk, improving performance and simplifying asset management.

Usage

from VertexEngine.assets import AssetManager

player_image = AssetManager.get_image("player")

Parameters

Returns

Image object — The image associated with the given name. This object can be drawn to a surface, transformed, or reused by multiple systems.

Notes