Cruise Game 47 · Prepare privacy and age-rating answers

Midnight Deck Dash · Lesson 47 of 50 · Publishing · About 45 min

The ship's manifest should say exactly what it carries. Your app's data manifest does the same for player information.

The ship’s Art Deco Grand Atrium, with carved rails, teal upholstery and warm gold lights.
What you’ll make Inventory what the published build reads, keeps and sends so the adult publisher can answer store questionnaires accurately.

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.

List features. Include saves, permissions and SDKs. → Trace data. Ask where each value goes. → Review content. Use each store's current rating form. → Update answers. Keep forms consistent with the build.
List features → Trace data → Review content → Update answers

Build it step by step

Language and tools in this lesson Array, Dictionary, append(), is_empty(), join(), data flow, questionnaire evidence.

  1. Make a feature inventory

    Open a new table with feature, data, purpose, stored where, sent where, and who receives it. Include local job progress, preferences and every plugin in the actual build. Run a project search for HTTPRequest, network libraries and third-party SDKs, and inspect export permissions.

    Why it works A disclosure describes the actual configuration and all code in the app, including third-party code.

  2. Separate local storage from transmission

    Open the save script and trace which keys go to user://. Observe a network-free test with the base build. Treat a purely local completion flag separately from any analytics SDK that sends events.

    Why it works Saving on a device and sending data off it are different paths. Local-only evidence by itself cannot describe another export or SDK.

  3. Practise a data-flow check

    Open checkpoint 47, press F5 and compare Base game example and Example with an SDK. In the loop, append the name of a feature when its sends field says true. Notice that a newly added feature changes the result.

    outgoing.append(str(feature["name"]))

    Why it works The lab is a scoped checklist, not an automatic technical audit or a privacy form.

  4. Answer age questions against content

    The adult publisher opens the App Store Connect age-rating questionnaire and the Play Console content-rating form. Describe what is in the version being reviewed, such as cart encounters and text, and identify features like chat, purchases or browsing accurately if your version has them.

    Why it works A learning age recommendation is separate from any rating calculated by the stores. The forms describe app content, interactions and audience as asked.

  5. Review children and disclosure rules

    If the app is directed to children or includes them in its declared audience, have the publisher review each platform's current child safety and family requirements. Complete Apple's App Privacy and Google's Data safety questions from the evidence. Review any required privacy policy and support URLs against the real build.

    Why it works The same content can prompt different questions on different stores. A publisher checks applicable law and store rules before answering.

  6. Keep the inventory current

    Change one fictional feature in the demo and observe its different output. In the full project update the inventory and the listing forms whenever permissions, SDKs, purchases or information handling change.

    Why it works The reviewed answers should describe the current build, including updates.

Watch the values change

  1. Check local progress A local save is listed and no sending field is on.
    What you see. The lab gives a carefully scoped review result.
  2. Add a sample SDK The SDK sends field is true.
    What you see. The report names it for the publisher to investigate.
  3. Review content Age questions are separate from the data list.
    What you see. The publisher answers both based on actual features.

Predict before you run If progress is local but a new SDK sends crash reports, can you reuse an old no-transmission answer without checking it?

Reveal the answer

No. Review the new SDK's behavior and apply the store's current definitions before updating disclosures.

Complete checkpoint

Base game reports the scope of the local-only sample. The SDK button names the fictional outgoing feature.

main.gd

extends Control

const Lab = preload("res://release_lab.gd")
const TITLE := "Prepare privacy and age-rating answers"
var ui: VBoxContainer

func _ready() -> void:
	ui = VBoxContainer.new()
	ui.set_script(Lab)
	add_child(ui)
	ui.start(TITLE)
	build()

const LOCAL: Array = [
	{"name": "Local job progress", "sends": false},
	{"name": "Local sound preference", "sends": false}
]

func build() -> void:
	ui.say("This learning lab reads the fictional inventory. Scan the actual game separately.")
	ui.option("Base game example", func(): ui.say(review(LOCAL)))
	ui.option("Example with an SDK", include_sdk)

func include_sdk() -> void:
	var sample := LOCAL.duplicate()
	sample.append({"name": "Sample crash-reporting SDK", "sends": true})
	ui.say(review(sample))

func review(features: Array) -> String:
	var outgoing: PackedStringArray = []
	for feature in features:
		if feature.get("sends", false):
			outgoing.append(str(feature["name"]))
	if outgoing.is_empty():
		return "This sample lists local-only features. Review the actual build and its dependencies."
	return "Check these outgoing features against the current question: " + ", ".join(outgoing) + "."

release_lab.gd

extends VBoxContainer

var body: Label

func start(title_text: String) -> void:
	set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
	offset_left = 34.0
	offset_top = 24.0
	offset_right = -34.0
	offset_bottom = -24.0
	add_theme_constant_override("separation", 12)
	var title := Label.new()
	title.text = title_text
	title.add_theme_font_size_override("font_size", 31)
	title.add_theme_color_override("font_color", Color("#f5cd85"))
	add_child(title)
	body = Label.new()
	body.custom_minimum_size.y = 138.0
	body.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
	body.add_theme_font_size_override("font_size", 19)
	add_child(body)
	var bg := ColorRect.new()
	bg.color = Color("#132942")
	bg.mouse_filter = Control.MOUSE_FILTER_IGNORE
	bg.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
	get_parent().add_child(bg)
	get_parent().move_child(bg, 0)

func say(message: String) -> void:
	body.text = message

func option(label: String, command: Callable) -> void:
	var button := Button.new()
	button.text = label
	button.custom_minimum_size.y = 45.0
	button.add_theme_font_size_override("font_size", 19)
	button.pressed.connect(command)
	add_child(button)

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
  1. extends ControlStarts with Godot's Control type. This script gets the abilities of that type and adds the game's own rules.
  2. const Lab = preload("res://release_lab.gd")Creates a constant named Lab. The expression prepares a resource at a fixed project path when the script is loaded.
  3. const TITLE := "Prepare privacy and age-rating answers"Creates a constant named TITLE. The expression uses the text inside the quotes. Godot infers the type from the first value.
  4. var ui: VBoxContainerDeclares ui for later use. A colon followed by a type says which kind of value belongs here.
  5. 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.
  6. ui = VBoxContainer.new()Stores the new value in ui. The expression creates a new VBoxContainer object.
  7. ui.set_script(Lab)Calls ui.set_script with the values in its parentheses.
  8. add_child(ui)Adds the new node to the scene tree so that Godot can run and draw it.
  9. ui.start(TITLE)Calls ui.start with the values in its parentheses.
  10. build()Calls build with the values in its parentheses.
  11. const LOCAL: Array = [Creates a constant named LOCAL. The expression makes a list whose items keep their order. The type after the colon says what kind of value it can hold.
  12. {"name": "Local job progress", "sends": false},Starts a list or dictionary used as part of the instruction above.
  13. {"name": "Local sound preference", "sends": false}Starts a list or dictionary used as part of the instruction above.
  14. ]Closes the parentheses, list or dictionary opened above. Any trailing comma separates this item from the next.
  15. func build() -> void: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.
  16. ui.say("This learning lab reads the fictional inventory. Scan the actual game separately.")Calls ui.say with the values in its parentheses.
  17. ui.option("Base game example", func(): ui.say(review(LOCAL)))Calls ui.option with the values in its parentheses.
  18. ui.option("Example with an SDK", include_sdk)Calls ui.option with the values in its parentheses.
  19. func include_sdk() -> void:Defines include sdk, 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.
  20. var sample := LOCAL.duplicate()Creates a variable named sample. The expression copies the collection so a later change can leave the original alone. Godot infers the type from the first value.
  21. sample.append({"name": "Sample crash-reporting SDK", "sends": true})Adds an item to the end of a list.
  22. ui.say(review(sample))Calls ui.say with the values in its parentheses.
  23. func review(features: Array) -> String:Defines review, 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.
  24. var outgoing: PackedStringArray = []Creates a variable named outgoing. The expression makes a list whose items keep their order. The type after the colon says what kind of value it can hold.
  25. for feature in features:Repeats the indented instructions for each value in features.
  26. if feature.get("sends", false):Checks feature.get("sends", false). The indented instructions below run only if this test passes.
  27. outgoing.append(str(feature["name"]))Adds an item to the end of a list.
  28. if outgoing.is_empty():Checks outgoing.is_empty(). The indented instructions below run only if this test passes.
  29. return "This sample lists local-only features. Review the actual build and its dependencies."Finishes the function and hands its result back to the caller. The expression uses the text inside the quotes.
  30. return "Check these outgoing features against the current question: " + ", ".join(outgoing) + "."Finishes the function and hands its result back to the caller. The expression uses the text inside the quotes.
Read release_lab.gd line by line
  1. extends VBoxContainerStarts with Godot's VBoxContainer type. This script gets the abilities of that type and adds the game's own rules.
  2. var body: LabelDeclares body for later use. A colon followed by a type says which kind of value belongs here.
  3. func start(title_text: String) -> void:Defines start, 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.
  4. set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)Positions this Control relative to the bounds of its parent.
  5. offset_left = 34.0Stores the new value in offset_left. The expression reads 34.0.
  6. offset_top = 24.0Stores the new value in offset_top. The expression reads 24.0.
  7. offset_right = -34.0Stores the new value in offset_right. The expression reads -34.0.
  8. offset_bottom = -24.0Stores the new value in offset_bottom. The expression reads -24.0.
  9. add_theme_constant_override("separation", 12)Calls add_theme_constant_override with the values in its parentheses.
  10. var title := Label.new()Creates a variable named title. The expression creates a new Label object. Godot infers the type from the first value.
  11. title.text = title_textUpdates title.text, which controls the words a player sees. The expression reads title_text.
  12. title.add_theme_font_size_override("font_size", 31)Calls title.add_theme_font_size_override with the values in its parentheses.
  13. title.add_theme_color_override("font_color", Color("#f5cd85"))Calls title.add_theme_color_override with the values in its parentheses.
  14. add_child(title)Adds the new node to the scene tree so that Godot can run and draw it.
  15. body = Label.new()Stores the new value in body. The expression creates a new Label object.
  16. body.custom_minimum_size.y = 138.0Stores the new value in body.custom_minimum_size.y. The expression reads 138.0.
  17. body.autowrap_mode = TextServer.AUTOWRAP_WORD_SMARTStores the new value in body.autowrap_mode. The expression reads TextServer.AUTOWRAP_WORD_SMART.
  18. body.add_theme_font_size_override("font_size", 19)Calls body.add_theme_font_size_override with the values in its parentheses.
  19. add_child(body)Adds the new node to the scene tree so that Godot can run and draw it.
  20. var bg := ColorRect.new()Creates a variable named bg. The expression creates a new ColorRect object. Godot infers the type from the first value.
  21. bg.color = Color("#132942")Stores the new value in bg.color. The expression builds a colour from these values.
  22. bg.mouse_filter = Control.MOUSE_FILTER_IGNOREUpdates bg.mouse_filter, which controls how this control participates in pointer and touch input. The expression reads Control.MOUSE_FILTER_IGNORE.
  23. bg.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)Positions this Control relative to the bounds of its parent.
  24. get_parent().add_child(bg)Calls get_parent with the values in its parentheses.
  25. get_parent().move_child(bg, 0)Calls get_parent with the values in its parentheses.
  26. func say(message: String) -> void:Defines say, 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.
  27. body.text = messageUpdates body.text, which controls the words a player sees. The expression reads message.
  28. func option(label: String, command: Callable) -> void:Defines option, 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.
  29. var button := Button.new()Creates a variable named button. The expression creates a new Button object. Godot infers the type from the first value.
  30. button.text = labelUpdates button.text, which controls the words a player sees. The expression reads label.
  31. button.custom_minimum_size.y = 45.0Stores the new value in button.custom_minimum_size.y. The expression reads 45.0.
  32. button.add_theme_font_size_override("font_size", 19)Calls button.add_theme_font_size_override with the values in its parentheses.
  33. button.pressed.connect(command)Links a signal to the function that should run when the event happens.
  34. add_child(button)Adds the new node to the scene tree so that Godot can run and draw it.

Find and fix a bug

An empty outgoing list from this hand-filled demo is not proof that an actual export never transmits data. Audit the real package and included dependencies.

Try a change

Ages 10–12. Draw one diagram showing local progress and a separate example of information leaving a device. Ages 13–16. Trace each actual plugin and update a versioned decision log.

Official instructions