Museum of Lost Lights · Lesson 47 of 50 · Publishing · About 40 min
The museum downloads to the player’s device. Its release checklist must explain who made the artwork and audio, what happens to game progress and what kind of content children will encounter.

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/46 when the lesson builds on prior work, or copy the checkpoints/47 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 Dictionary flags, Array[String], boolean not, Array.is_empty, conditional message, local game data.
-
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. Select the two review buttons and watch the sample report. This checker only asks questions about a fictional project.
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.
-
Write an asset register
For each font, picture, sound, piece of music and reusable code file, list the name, creator, source, licence, whether commercial use is allowed, and how to give credit. Include your own original work, and keep records showing where it came from.
Why it works An asset used in a class might have different permission for a commercial app. The register helps the adult publisher verify each item before it ships.
-
Write the game’s data map
For every feature in your actual build, write down what it reads, stores or sends. Check saves, network requests, plug-ins and the app permissions. For the offline example, progress stays on device. If you add a tool that sends device or user information, update the map.
Why it works Privacy answers describe the real behaviour of the whole app, including any third-party parts you installed. Device-local saving is a separate question from transmitting information.
-
See how the checker records reviewed items
In _toggle, watch reviewed[topic] change from false to true. The dictionary key selects one checklist row. In _render, open the for loop and see which topics remain in the missing list.
reviewed[topic] = not reviewed[topic]Why it works not flips a boolean flag. When a key is false, that topic still needs review. The code stores the selected topic separately from the words shown on the screen.
-
Answer the store questionnaires from evidence
For Apple, the adult opens App Information to answer the age-rating questions, and App Privacy to answer data questions and supply the privacy policy URL. For Google Play, the adult checks App content for the target audience, rating questionnaire, Data safety and privacy policy tasks. If the intended audience includes children, follow the requirements for the relevant platform and audience.
Why it works A rating comes from the app content and questionnaire. The learners’ course age band does not itself set a store listing's rating.
-
Read the actual build before you say it is offline
Test without a network and review connected plug-ins and platform permissions. Write a short plain-language note explaining where the save is kept and what happens if a person uninstalls it. Repeat your review after adding any new feature.
if missing.is_empty():Why it works An offline run is evidence of how play behaves without service. To understand data handling, also examine the app, its settings, and any software it includes.
-
Read the result, then apply it to your game
Keep the asset register and data map as part of your release pack. Use the finished game’s Credits screen to give the correct credits, including any engine or third-party notices that apply.
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 checklist Both review flags are false.
What you see. Both topics appear as needing review. -
Mark artwork as reviewed Only the asset flag becomes true.
What you see. The data map remains on the list. -
Mark data as reviewed Both review flags are true.
What you see. The practice checklist is clear.
Predict before you run You add music with instructions that require a credit. Where should it go?
Reveal the answer
Record it in the asset register and put the required notice where the licence asks. If you cannot verify that commercial distribution is permitted, choose a track with clear terms.
Complete checkpoint
Both topics start unreviewed. With both buttons selected, the result reads ‘Both example topics marked reviewed.’ Selecting either again reopens that topic.
main.gd
extends Control
const UI = preload("res://lesson_ui.gd")
var reviewed := {"asset rights": false, "data handling": false}
var output: Label
func _ready() -> void:
var column := UI.build(self, "Museum release evidence", "Mark one topic once you’ve reviewed it. Click it again to reopen it.")
UI.button(column, "Toggle asset rights review", _toggle.bind("asset rights"))
UI.button(column, "Toggle data handling review", _toggle.bind("data handling"))
output = UI.message(column, "")
_render()
func _toggle(topic: String) -> void:
reviewed[topic] = not reviewed[topic]
_render()
func _render() -> void:
var missing: Array[String] = []
for topic in reviewed:
if not reviewed[topic]:
missing.append(topic)
if missing.is_empty():
output.text = "Both example topics marked reviewed."
else:
output.text = "Still to review: %s." % ", ".join(missing)
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. -
var reviewed := {"asset rights": false, "data handling": false}Creates a variable named reviewed. The expression makes a dictionary that looks up values by key. Godot infers the type from the first value. -
var output: LabelDeclares output 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 release evidence", "Mark one topic once you’ve reviewed it. Click it again to reopen it.")Creates a variable named column. The expression calls UI.build with the values in its parentheses. Godot infers the type from the first value. -
UI.button(column, "Toggle asset rights review", _toggle.bind("asset rights"))Calls UI.button with the values in its parentheses. -
UI.button(column, "Toggle data handling review", _toggle.bind("data handling"))Calls UI.button with the values in its parentheses. -
output = UI.message(column, "")Stores the new value in output. The expression calls UI.message with the values in its parentheses. -
_render()Calls _render with the values in its parentheses. -
func _toggle(topic: String) -> void:Defines toggle, 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. -
reviewed[topic] = not reviewed[topic]Stores the new value in reviewed[topic]. The expression looks up the item or key written between the square brackets. -
_render()Calls _render with the values in its parentheses. -
func _render() -> void:Defines render, 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 missing: Array[String] = []Creates a variable named missing. The expression makes a list whose items keep their order. The type after the colon says what kind of value it can hold. -
for topic in reviewed:Repeats the indented instructions for each value in reviewed. -
if not reviewed[topic]:Checks not reviewed[topic]. The indented instructions below run only if this test passes. -
missing.append(topic)Adds an item to the end of a list. -
if missing.is_empty():Checks missing.is_empty(). The indented instructions below run only if this test passes. -
output.text = "Both example topics marked reviewed."Updates output.text, which controls the words a player sees. The expression uses the text inside the quotes. -
else:Runs the indented fallback instructions if none of the earlier tests passed. -
output.text = "Still to review: %s." % ", ".join(missing)Updates output.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 a checklist says complete when a topic is false, check the not inside the loop. You want a list of topics still waiting for review.
Try a change
Ages 10–12: list who made three things your game uses. Ages 13–16: inspect each added plug-in and write a one-sentence evidence note explaining each data-map decision.