GuidesAsset management

Asset Management

Assets live with a game draft and are copied into safe published runtime snapshots. Keep filenames stable so source code continues to resolve them.

Supported files

Use PNG, JPG, and MP3. Prefer small compressed files so games load quickly on mobile networks.

Naming

Use lowercase names with dashes or underscores: player.png, coin.mp3, sparkle.json. Avoid spaces and repeated filenames.

Runtime use

from conjure import *
 
init_window(360, 640, "Asset Guide")
sprite = load_image("player.png")
 
while not window_should_close():
    begin_drawing()
    clear_background(WHITE)
    draw_image(sprite, 140, 280)
    end_drawing()

What next

Read using assets, images, and audio.