Museum of Lost Lights · Lesson 49 of 50 · Publishing · About 40 min
A reviewer has never seen your museum. Give them an accurate description and a short set of steps to reach a playable puzzle and test the main feature.

Download the projects from the course page. In Godot’s Project Manager, choose Import, select project.godot, and use Run Project (F5). Start from checkpoints/48 when the lesson builds on prior work, or copy the checkpoints/49 folder to try this lesson on its own. Read the file names in the steps before editing.

Build it step by step
Language and tools in this lesson Array[CheckBox], CheckBox.toggled, bool argument, for loop, early return, manual vs automatic release.
-
Open the checkpoint in Godot
Extract the course files. In Godot Project Manager, choose Import and point it to this lesson’s project.godot. Double-click main.gd in FileSystem to open the script. Press F6 to run the current scene once main.tscn is open, or F5 to run the project. Click the checklist entries and watch the draft label. The program does not submit anything, and you can rehearse without a store account.
const UI = preload("res://lesson_ui.gd")Why it works This small project lets you see one release skill at a time. The finished Museum of Lost Lights is a second, independent project. Keep both projects in their own folders.
-
Build a release pack
In a new folder, gather the build number and release notes, the correct signed package or archive reference, icon and gameplay screenshots, store descriptions, credits and privacy evidence from the earlier lessons. Keep signing secrets out of the folder you share.
Why it works One organised pack keeps the app version, visuals and descriptions aligned.
-
Connect the checkbox signal
In main.gd, find a CheckBox created inside a for loop. Its toggled signal sends one bool recording its new state. The _changed function receives the value, then reruns the checklist.
check.toggled.connect(_changed)Why it works A signal tells your program an event happened. Every checkbox can reuse the same handler rather than having its own copy of the rules.
-
Check every item before you change the status
Read _refresh. For each CheckBox, it reads button_pressed. If one item is open, the function sets the draft message and returns immediately. If all are checked, the final status appears.
if not check.button_pressed:Why it works Returning early stops extra work. The readiness message is reached only when all boxes have passed their current checks.
-
Rehearse the App Store review route
The publishing adult opens the correct app and platform version in App Store Connect, selects the processed build, completes the store information and app-review details, then uses the submission flow and chooses how an approved version will release. Draft the reviewer notes with a precise path to your first puzzle and any other information the reviewer needs.
Why it works The version page, selected build and review submission must refer to the same release. TestFlight feedback is evidence from a beta.
-
Rehearse the Play production route
The publisher completes the Play Console setup and any required tests, selects the production track once eligible, creates a release from the correct Android App Bundle, checks the countries and price, resolves blockers, then follows the review and publishing controls. Use the adult-managed account’s exact screen labels and current requirements.
Why it works Play Console can require action on forms or testing before a production release is available. Drafts and testing tracks help you verify the app before it reaches buyers.
-
Read the result, then apply it to your game
Write one note explaining what you will do if a reviewer reports an issue. Reproduce it on the submitted build, make a fix in your development project, increment the build number and repeat the relevant checks before resubmitting.
Why it works The checkpoint shows what to look for. Your game’s real result comes from testing your own build, assets and settings.
Watch the values change
-
Open the exercise Every sample checkbox is clear.
What you see. The draft status appears. -
Check two rows At least one unchecked row remains.
What you see. The draft status stays visible. -
Mark every row All rows are selected.
What you see. The exercise reports readiness for human review.
Predict before you run After checking all boxes, can you tell whether the store has approved the game?
Reveal the answer
No. The script checks your practice list. The platform reviews the real submission and sends the decision to the publisher.
Complete checkpoint
The checklist reports Draft until every entry is checked. It goes back to Draft if you clear one entry.
main.gd
extends Control
const UI = preload("res://lesson_ui.gd")
const PACK: Array[String] = [
"Correct test build and release notes",
"Real screenshots and clear store description",
"Ratings, privacy, credits and agreements reviewed",
"Publisher and reviewer notes ready",
]
var boxes: Array[CheckBox] = []
var status: Label
func _ready() -> void:
var column := UI.build(self, "Museum review rehearsal", "This practice list stays on your computer.")
for requirement in PACK:
var check := CheckBox.new()
check.text = requirement
check.toggled.connect(_changed)
column.add_child(check)
boxes.append(check)
status = UI.message(column, "")
_refresh()
func _changed(_checked: bool) -> void:
_refresh()
func _refresh() -> void:
for check in boxes:
if not check.button_pressed:
status.text = "Draft. At least one item needs a check."
return
status.text = "Practice release pack ready for review with your publisher."
lesson_ui.gd
extends RefCounted
static func build(screen: Control, heading: String, opening: String) -> VBoxContainer:
var margins := MarginContainer.new()
screen.add_child(margins)
margins.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
for edge in ["left", "right", "top", "bottom"]:
margins.add_theme_constant_override("margin_" + edge, 24)
var scroll := ScrollContainer.new()
margins.add_child(scroll)
var column := VBoxContainer.new()
column.size_flags_horizontal = Control.SIZE_EXPAND_FILL
scroll.add_child(column)
column.add_theme_constant_override("separation", 12)
var title := Label.new()
title.text = heading
title.add_theme_font_size_override("font_size", 30)
column.add_child(title)
message(column, opening)
return column
static func message(column: VBoxContainer, text: String) -> Label:
var line := Label.new()
line.text = text
line.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
column.add_child(line)
return line
static func button(column: Container, caption: String, action: Callable) -> Button:
var control := Button.new()
control.text = caption
control.custom_minimum_size.y = 48
control.pressed.connect(action)
column.add_child(control)
return control
GDScript line by line
Follow the line numbers, including the indent at the start of each line. Find the code the game will run first, then look for the function that reacts when you tap or change something.
Read main.gd line by line
-
extends ControlStarts with Godot's Control type. This script gets the abilities of that type and adds the game's own rules. -
const UI = preload("res://lesson_ui.gd")Creates a constant named UI. The expression prepares a resource at a fixed project path when the script is loaded. -
const PACK: Array[String] = [Creates a constant named PACK. The expression makes a list whose items keep their order. The type after the colon says what kind of value it can hold. -
"Correct test build and release notes",Continues the same instruction on a new line. This is one of the arguments, data entries or expressions started above. -
"Real screenshots and clear store description",Continues the same instruction on a new line. This is one of the arguments, data entries or expressions started above. -
"Ratings, privacy, credits and agreements reviewed",Continues the same instruction on a new line. This is one of the arguments, data entries or expressions started above. -
"Publisher and reviewer notes ready",Continues the same instruction on a new line. This is one of the arguments, data entries or expressions started above. -
]Closes the parentheses, list or dictionary opened above. Any trailing comma separates this item from the next. -
var boxes: Array[CheckBox] = []Creates a variable named boxes. The expression makes a list whose items keep their order. The type after the colon says what kind of value it can hold. -
var status: LabelDeclares status for later use. A colon followed by a type says which kind of value belongs here. -
func _ready() -> void:Godot calls this once after the scene and its children are ready. Use it to set up the room and connect controls. -
var column := UI.build(self, "Museum review rehearsal", "This practice list stays on your computer.")Creates a variable named column. The expression calls UI.build with the values in its parentheses. Godot infers the type from the first value. -
for requirement in PACK:Repeats the indented instructions for each value in PACK. -
var check := CheckBox.new()Creates a variable named check. The expression creates a new CheckBox object. Godot infers the type from the first value. -
check.text = requirementUpdates check.text, which controls the words a player sees. The expression reads requirement. -
check.toggled.connect(_changed)Links a signal to the function that should run when the event happens. -
column.add_child(check)Adds the new node to the scene tree so that Godot can run and draw it. -
boxes.append(check)Adds an item to the end of a list. -
status = UI.message(column, "")Stores the new value in status. The expression calls UI.message with the values in its parentheses. -
_refresh()Calls _refresh with the values in its parentheses. -
func _changed(_checked: bool) -> void:Defines changed, a reusable set of instructions. Parameters between the parentheses receive inputs. A return type after the arrow tells you which kind of result to expect. -
_refresh()Calls _refresh with the values in its parentheses. -
func _refresh() -> void:Defines refresh, a reusable set of instructions. Parameters between the parentheses receive inputs. A return type after the arrow tells you which kind of result to expect. -
for check in boxes:Repeats the indented instructions for each value in boxes. -
if not check.button_pressed:Checks not check.button_pressed. The indented instructions below run only if this test passes. -
status.text = "Draft. At least one item needs a check."Updates status.text, which controls the words a player sees. The expression uses the text inside the quotes. -
returnFinishes the function right here. Any later instructions in this function are skipped. -
status.text = "Practice release pack ready for review with your publisher."Updates status.text, which controls the words a player sees. The expression uses the text inside the quotes.
Read lesson_ui.gd line by line
-
extends RefCountedStarts with Godot's RefCounted type. This script gets the abilities of that type and adds the game's own rules. -
static func build(screen: Control, heading: String, opening: String) -> VBoxContainer:Defines build, a reusable set of instructions. Parameters between the parentheses receive inputs. A return type after the arrow tells you which kind of result to expect. -
var margins := MarginContainer.new()Creates a variable named margins. The expression creates a new MarginContainer object. Godot infers the type from the first value. -
screen.add_child(margins)Adds the new node to the scene tree so that Godot can run and draw it. -
margins.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)Positions this Control relative to the bounds of its parent. -
for edge in ["left", "right", "top", "bottom"]:Repeats the indented instructions for each value in ["left", "right", "top", "bottom"]. -
margins.add_theme_constant_override("margin_" + edge, 24)Calls margins.add_theme_constant_override with the values in its parentheses. -
var scroll := ScrollContainer.new()Creates a variable named scroll. The expression creates a new ScrollContainer object. Godot infers the type from the first value. -
margins.add_child(scroll)Adds the new node to the scene tree so that Godot can run and draw it. -
var column := VBoxContainer.new()Creates a variable named column. The expression creates a new VBoxContainer object. Godot infers the type from the first value. -
column.size_flags_horizontal = Control.SIZE_EXPAND_FILLStores the new value in column.size_flags_horizontal. The expression reads Control.SIZE_EXPAND_FILL. -
scroll.add_child(column)Adds the new node to the scene tree so that Godot can run and draw it. -
column.add_theme_constant_override("separation", 12)Calls column.add_theme_constant_override with the values in its parentheses. -
var title := Label.new()Creates a variable named title. The expression creates a new Label object. Godot infers the type from the first value. -
title.text = headingUpdates title.text, which controls the words a player sees. The expression reads heading. -
title.add_theme_font_size_override("font_size", 30)Calls title.add_theme_font_size_override with the values in its parentheses. -
column.add_child(title)Adds the new node to the scene tree so that Godot can run and draw it. -
message(column, opening)Calls message with the values in its parentheses. -
return columnFinishes the function and hands its result back to the caller. The expression reads column. -
static func message(column: VBoxContainer, text: String) -> Label:Defines message, a reusable set of instructions. Parameters between the parentheses receive inputs. A return type after the arrow tells you which kind of result to expect. -
var line := Label.new()Creates a variable named line. The expression creates a new Label object. Godot infers the type from the first value. -
line.text = textUpdates line.text, which controls the words a player sees. The expression reads text. -
line.autowrap_mode = TextServer.AUTOWRAP_WORD_SMARTStores the new value in line.autowrap_mode. The expression reads TextServer.AUTOWRAP_WORD_SMART. -
column.add_child(line)Adds the new node to the scene tree so that Godot can run and draw it. -
return lineFinishes the function and hands its result back to the caller. The expression reads line. -
static func button(column: Container, caption: String, action: Callable) -> Button:Defines button, a reusable set of instructions. Parameters between the parentheses receive inputs. A return type after the arrow tells you which kind of result to expect. -
var control := Button.new()Creates a variable named control. The expression creates a new Button object. Godot infers the type from the first value. -
control.text = captionUpdates control.text, which controls the words a player sees. The expression reads caption. -
control.custom_minimum_size.y = 48Stores the new value in control.custom_minimum_size.y. The expression uses the whole number 48. -
control.pressed.connect(action)Links a signal to the function that should run when the event happens. -
column.add_child(control)Adds the new node to the scene tree so that Godot can run and draw it. -
return controlFinishes the function and hands its result back to the caller. The expression reads control.
Find and fix a bug
If selecting one checkbox marks the whole pack ready, ensure the success assignment sits after the for loop. The loop needs to inspect each checkbox before showing success.
Try a change
Ages 10–12: explain the path to the first puzzle in three short lines. Ages 13–16: build a release matrix for Android and iOS and mark which build and evidence applies to each platform.