Cruise Game 48 · Check asset rights and choose a price

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

A release manifest records where each sound, illustration and font came from. It helps carry only work you have permission to ship.

The ship’s Art Deco Grand Atrium, with carved rails, teal upholstery and warm gold lights.
What you’ll make Keep an asset permission ledger and prepare a sensible free or paid store decision for the publisher.

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/47 when the lesson builds on prior work, or copy the checkpoints/48 folder to try this lesson on its own. Read the file names in the steps before editing.

Inventory the assets. Record creator and source. → Check permissions. Read terms and keep evidence. → Prepare credits. Include required notices. → Choose a price. The publisher checks both store routes.
Inventory the assets → Check permissions → Prepare credits → Choose a price

Build it step by step

Language and tools in this lesson Array[Dictionary], get(), boolean gates, String.join(), records, asset licensing.

  1. List every important asset

    For the full project write one row per sprite pack, sound, music track, font and helper library. Record source, creator, license, attribution, permission for your intended use and where your evidence is kept.

    Why it works The export contains more than your visible code. A ledger makes it possible to check all of it.

  2. Look at permissions before selling

    Use your own original artwork or an asset license that supports your specific intended commercial use and includes steps you can follow. Check the download's actual terms. Record separately any license needed for included third-party tools and Godot notices.

    Why it works Permission for a general use may still come with attribution, redistribution conditions or other requirements. A label in your notes is a reminder rather than proof.

  3. Run the practice ledger

    Open checkpoint 48 and choose Draft ledger, then Replaced sound example. Read review(). Missing evidence or unsettled permission adds the asset name to the list.

    pending.append(str(row.get("asset", "unnamed asset")))

    Why it works A boolean gate identifies unresolved rows. The adult publisher still opens the actual permission document.

  4. Choose a store price model

    Use the simplest model for a first project, either free or a one-time price. Ask the adult publisher to review Google Play price setup and Apple's Paid Apps Agreement, territories, local price options and applicable payments setup. On Google Play, a published free app cannot be switched directly to paid under the same app record. Confirm current rules before making the decision.

    Why it works Pricing and agreements belong to the publisher. Picking the model first avoids an account change later.

  5. Compare a price with a payout

    Try the practice £2.99 price line and write ‘display price’ in your ledger. Ask the adult publisher to confirm the store's actual terms and reporting. Keep sales, refunds, fees and income records in the owner’s own account.

    Why it works A store price is what shows to the customer. The actual payout follows the store's terms and the publisher's circumstances.

  6. Finish the release credits

    Add credits to the real game and record the build that contains them. If an asset still lacks evidence, replace it with an original asset or get clear permission before release.

    Why it works The ledger is finished when every row has evidence and any required attribution appears in the build.

Watch the values change

  1. Check draft The sample chime has no evidence of rights.
    What you see. The lab flags it.
  2. Replace the chime A separate original audio row replaces it.
    What you see. The sample ledger no longer flags the row.
  3. Check listing price The sample is labelled as a display price.
    What you see. Payout is left to the real store report.

Predict before you run Can writing ‘original’ in the sample change who owns an asset that you copied?

Reveal the answer

No. The label cannot grant rights. The ledger is a record of evidence and permission.

Complete checkpoint

The draft flags Random web chime. The revised rows pass the practice checklist.

main.gd

extends Control

const Lab = preload("res://release_lab.gd")
const TITLE := "Check asset rights and choose a price"
var ui: VBoxContainer

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

const DRAFT: Array[Dictionary] = [
	{"asset": "Original deck illustration", "evidence": true, "cleared": true},
	{"asset": "Random web chime", "evidence": false, "cleared": false}
]

const REVISED: Array[Dictionary] = [
	{"asset": "Original deck illustration", "evidence": true, "cleared": true},
	{"asset": "Recorded-in-house chime", "evidence": true, "cleared": true}
]

func build() -> void:
	ui.say("Practice ledger. The actual permission record stays with the publisher.")
	ui.option("Draft ledger", func(): ui.say(review(DRAFT)))
	ui.option("Replaced sound example", func(): ui.say(review(REVISED)))
	ui.option("Show sample price", func(): ui.say("Illustrative display price: £2.99. The actual payout comes from the publisher's store report."))

func review(rows: Array[Dictionary]) -> String:
	var pending: PackedStringArray = []
	for row in rows:
		if not row.get("evidence", false) or not row.get("cleared", false):
			pending.append(str(row.get("asset", "unnamed asset")))
	if not pending.is_empty():
		return "Open the rights evidence for: " + ", ".join(pending) + "."
	return "No unfinished rows in the sample. The publisher verifies the real documents and credits."

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 := "Check asset rights and choose a price"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 DRAFT: Array[Dictionary] = [Creates a constant named DRAFT. The expression makes a list whose items keep their order. The type after the colon says what kind of value it can hold.
  12. {"asset": "Original deck illustration", "evidence": true, "cleared": true},Starts a list or dictionary used as part of the instruction above.
  13. {"asset": "Random web chime", "evidence": false, "cleared": 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. const REVISED: Array[Dictionary] = [Creates a constant named REVISED. The expression makes a list whose items keep their order. The type after the colon says what kind of value it can hold.
  16. {"asset": "Original deck illustration", "evidence": true, "cleared": true},Starts a list or dictionary used as part of the instruction above.
  17. {"asset": "Recorded-in-house chime", "evidence": true, "cleared": true}Starts a list or dictionary used as part of the instruction above.
  18. ]Closes the parentheses, list or dictionary opened above. Any trailing comma separates this item from the next.
  19. 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.
  20. ui.say("Practice ledger. The actual permission record stays with the publisher.")Calls ui.say with the values in its parentheses.
  21. ui.option("Draft ledger", func(): ui.say(review(DRAFT)))Calls ui.option with the values in its parentheses.
  22. ui.option("Replaced sound example", func(): ui.say(review(REVISED)))Calls ui.option with the values in its parentheses.
  23. ui.option("Show sample price", func(): ui.say("Illustrative display price: £2.99. The actual payout comes from the publisher's store report."))Calls ui.option with the values in its parentheses.
  24. func review(rows: Array[Dictionary]) -> 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.
  25. var pending: PackedStringArray = []Creates a variable named pending. The expression makes a list whose items keep their order. The type after the colon says what kind of value it can hold.
  26. for row in rows:Repeats the indented instructions for each value in rows.
  27. if not row.get("evidence", false) or not row.get("cleared", false):Checks not row.get("evidence", false) or not row.get("cleared", false). The indented instructions below run only if this test passes.
  28. pending.append(str(row.get("asset", "unnamed asset")))Adds an item to the end of a list.
  29. if not pending.is_empty():Checks not pending.is_empty(). The indented instructions below run only if this test passes.
  30. return "Open the rights evidence for: " + ", ".join(pending) + "."Finishes the function and hands its result back to the caller. The expression uses the text inside the quotes.
  31. return "No unfinished rows in the sample. The publisher verifies the real documents and credits."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

If one sound has unknown terms, review its source or replace it. A publicly downloadable file does not automatically carry commercial permission.

Try a change

Ages 10–12. Create your own chime and credit it. Ages 13–16. Make a ledger with fields for source URL, obligations, permission evidence and the build that contains it.

Official instructions