Cruise Game 46 · Write a clear and accessible listing

Midnight Deck Dash · Lesson 46 of 50 · Publishing · About 40 min

Can a passenger understand the game while using silent mode, or recognise each parcel in a dim cabin?

The ship’s Art Deco Grand Atrium, with carved rails, teal upholstery and warm gold lights.
What you’ll make Describe your game accurately and verify that its important cues work without colour or sound.

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

Describe the action. Say what a player does. → Add a second cue. Pair colour with a letter or icon. → Verify layout. Read labels on actual screens. → Write verified claims. Describe only supported features.
Describe the action → Add a second cue → Verify layout → Write verified claims
Godot checkpoint window for Write a clear and accessible listing
From the running Godot checkpoint.

Build it step by step

Language and tools in this lesson toggle booleans, if/else expressions, get_theme_font_size(), clampi(), Label, accessible design.

  1. Write the first two lines

    Describe the player's job with action verbs. For example, ‘Carry parcels to matching stations on a cruise liner. Read the cart routes and use short cuts to complete each deck.’ Add the verified number of jobs and decks and say which input methods actually work.

    Why it works Short factual copy describes the real game. It does not borrow another game's title, characters or screenshots.

  2. Read the controls without colour

    Open the full project. Try a route after turning device colour filters to greyscale if available. Each pickup and station needs a letter or icon as well as its colour. Carts, walls and hatches should have recognisable shapes.

    Why it works Red and green alone can look alike for some players, and nearly anyone can lose colour detail at low brightness.

  3. Test a visible state change

    In checkpoint 46, press F5 and switch Use symbols on and off. Read show_preview(). Follow how the Boolean selects words or the lighter sample even though both refer to the same parcel.

    var pickup := "A parcel" if symbols_on else "coloured parcel"

    Why it works The conditional expression chooses the rendered cue without duplicating the game rules.

  4. Make text readable in context

    Try larger text in the lab and read text_size_step(). In the full app, check the biggest UI at normal and larger device settings, and try zoom, focus movement and silent mode. Keep the label status, not only a sound, after a successful delivery.

    text_size = clampi(text_size + change, 14, 28)

    Why it works clampi keeps a user control inside its intended range. Actual device checks show whether larger text introduces clipping.

  5. Use facts for accessibility claims

    Write a short list of features you tested and on which devices. Include text cues or sound controls where verified. Leave a feature off the listing if your own build cannot perform it. Prepare a support link where appropriate.

    Why it works The description is an expectation the finished app needs to meet.

  6. Read your listing aloud

    Read the title, short description and first screenshot caption aloud. Ask someone to explain how to recognise a destination after reading them. Revise confusing language and keep the same terms in interface and listing.

    Why it works Matching language teaches a mechanic once and reinforces it in the game.

Watch the values change

  1. Open default preview Symbols are on at size 19.
    What you see. The status has A parcel and A station.
  2. Toggle symbols The same labels now rely on colour descriptions.
    What you see. A tester spots why a second cue helps.
  3. Increase text The size stops at 28.
    What you see. The lab remains readable inside its bound.

Predict before you run A player disables sound and still sees ‘A delivered’. Did the game give them the feedback they needed?

Reveal the answer

Yes. The visual message describes the outcome without relying on a sound.

Complete checkpoint

The labels alternate between letter cues and colour descriptions. Preview text remains between 14 and 28.

main.gd

extends Control

const Lab = preload("res://release_lab.gd")
const TITLE := "Write a clear and accessible listing"
var ui: VBoxContainer

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

var symbols_on := true
var text_size := 19

func build() -> void:
	show_preview()
	ui.option("Toggle symbol labels", switch_symbols)
	ui.option("Larger preview text", text_size_step.bind(3))
	ui.option("Smaller preview text", text_size_step.bind(-3))

func switch_symbols() -> void:
	symbols_on = not symbols_on
	show_preview()

func text_size_step(change: int) -> void:
	text_size = clampi(text_size + change, 14, 28)
	show_preview()

func show_preview() -> void:
	var pickup := "A parcel" if symbols_on else "coloured parcel"
	var dropoff := "A station" if symbols_on else "matching coloured station"
	ui.body.add_theme_font_size_override("font_size", text_size)
	ui.say("Listing preview\nCarry %s to %s.\nDelivery status: parcel delivered.\nPreview size %d." % [pickup, dropoff, text_size])

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 := "Write a clear and accessible listing"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. var symbols_on := trueCreates a variable named symbols_on. The expression uses the yes-or-no value true. Godot infers the type from the first value.
  12. var text_size := 19Creates a variable named text_size. The expression uses the whole number 19. Godot infers the type from the first value.
  13. 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.
  14. show_preview()Calls show_preview with the values in its parentheses.
  15. ui.option("Toggle symbol labels", switch_symbols)Calls ui.option with the values in its parentheses.
  16. ui.option("Larger preview text", text_size_step.bind(3))Calls ui.option with the values in its parentheses.
  17. ui.option("Smaller preview text", text_size_step.bind(-3))Calls ui.option with the values in its parentheses.
  18. func switch_symbols() -> void:Defines switch symbols, 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.
  19. symbols_on = not symbols_onStores the new value in symbols_on. The expression reads not symbols_on.
  20. show_preview()Calls show_preview with the values in its parentheses.
  21. func text_size_step(change: int) -> void:Defines text size step, 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.
  22. text_size = clampi(text_size + change, 14, 28)Stores the new value in text_size. The expression keeps a whole number within the chosen bounds.
  23. show_preview()Calls show_preview with the values in its parentheses.
  24. func show_preview() -> void:Defines show preview, 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 pickup := "A parcel" if symbols_on else "coloured parcel"Creates a variable named pickup. The expression chooses one of two values by checking the condition in the middle. Godot infers the type from the first value.
  26. var dropoff := "A station" if symbols_on else "matching coloured station"Creates a variable named dropoff. The expression chooses one of two values by checking the condition in the middle. Godot infers the type from the first value.
  27. ui.body.add_theme_font_size_override("font_size", text_size)Calls ui.body.add_theme_font_size_override with the values in its parentheses.
  28. ui.say("Listing preview\nCarry %s to %s.\nDelivery status: parcel delivered.\nPreview size %d." % [pickup, dropoff, text_size])Calls ui.say with the values in its parentheses.
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

A larger font may make the menu text wrap. Increase spacing or allow the control to grow, and retest a narrow screen instead of simply hiding extra text.

Try a change

Ages 10–12. Redraw one icon to show its meaning without colour. Ages 13–16. Compare three input and text-size combinations and add a verified accessibility note to your listing.