Skip to content

Instantly share code, notes, and snippets.

--[[
Aseprite script to export all layers as sprite sheets.
]]
local spr = app.activeSprite
if not spr then
return print('No active sprite')
@manuq
manuq / gist:c9870071e23afd2ef8e77f463949389f
Created March 16, 2026 20:05
add_player_mode_to_scenes.py
"""Add a PlayerMode node as first child of root to story quest scenes.
For each scene in scenes/quests/story_quests/ that has a Player instance
(uid iu2q66clupc6), this script:
- Adds an ext_resource for PlayerMode.gd
- Inserts a PlayerMode node as first child of the root
- Sets the mode based on the Player node's existing mode property
(0=COZY default, 1=FIGHTING, 2=HOOKING)
"""
"""Add a PlayerMode node as first child of root to story quest scenes.
For each scene in scenes/quests/story_quests/ that has a Player instance
(uid iu2q66clupc6), this script:
- Adds an ext_resource for PlayerMode.gd
- Inserts a PlayerMode node as first child of the root
- Sets the mode based on the Player node's existing mode property
(0=COZY default, 1=FIGHTING, 2=HOOKING)
"""