topskill.dev
CoursesTracks
All courses/Python Basics: The Lantern AtlasLevel 1: Spawn Camp
Level 1: Spawn Camp — First Steps
1 / 11
← Python Basics: The Lantern Atlas
●Level 1: Spawn Camp○Demo: Light the Camp Message○Exercise: Open the Lantern Map○Code Comments○Demo: Name a Map Location○Exercise: Label a Beacon○Variable Types○Demo: Inspect Lantern Types○Exercise: Pack Starting Supplies○Optional: Set up Python Locally✦Module Quiz
○Demo: Divide Beacon Shards○Exercise: Price a Cache Route○Demo: Format a Gear Label○Exercise: Format Forge Readouts○Demo: Convert Shard Text○Exercise: Convert Charge Readings○Demo: Read a Pathfinder Name○Project: Build Adi’s Gear HUD✦Module Quiz
○Demo: Compare Workshop Supplies○Exercise: Check Gate Supplies○Demo: Choose a Lit Route○Choose a Gate Signal○Demo: Pulse a Beacon with while○Exercise: Recharge the Beacon○Demo: Mark a Route with range○Exercise: Label Even Patrols○Demo: Skip a Hazard, Stop at a Gate○Exercise: Cross Safe Tiles○Project: Unlock the Exit Gate✦Module Quiz
○Define a Beacon Ability: Demo○Exercise: Activate a Beacon○Pass Energy and Return a Result: Demo○Exercise: Combine Beacon Energy○Default Ability Marks: Demo○Exercise: Name a Beacon Ability○Local Energy Scope: Demo○Exercise: Spend Local Energy○Project: Build an Ability Loadout✦Module Quiz
○Read a Rune Code: Demo○Exercise: Read Rune Edges○Slice a Cavern Route: Demo○Exercise: Decode Route Fields○Clean a Rune Message: Demo○Exercise: Decode a Rune Notice○Format a Route Card: Demo○Exercise: Write a Decoded Route Sign✦Module Quiz
○Index a Gear List: Demo○Exercise: Build a Gear Queue○Change a Gear List: Demo○Exercise: Repair the Loadout○Slice a Ridge Route: Demo○Exercise: Pack for Checkpoints○Read a Fixed Checkpoint Record: Demo○Exercise: Read an Exit Checkpoint✦Module Quiz
○Read an Atlas Map Card○Exercise: Update a Map Entry○Loop Through Beacon Map Entries○Exercise: Count Cache Marks○Count Unique Atlas Stops○Exercise: Compare Atlas Routes○Demo: Summarize Beacon Finds○Exercise: Build the Atlas Treasure Index✦Module Quiz
○Recover a Faded Beacon Reading○Exercise: Label Beacon Charge○Demo: Write a Shrine Save○Exercise: Save a Beacon Signal○Mini Project: Restore the Save Shrine✦Module Quiz
○Demo: Calculate Beacon Capacity○Exercise: Calculate Lantern Capacity○Demo: Import a Local Beacon Rule○Exercise: Import a Shrine Rule○Demo: Follow a Dotted Package Import○Exercise: Read an Atlas Record✦Module Quiz
○Echo Tower: The Base Case○Echo Tower: Sum the Signals○Echo Tower: Tune the Frequencies○Echo Tower: Select Beacon Labels✦Module Quiz
○Exit Gate: Reading Object Vocabulary○Final Game Mission: Open the Exit Gate✦Module Quiz

Level 1: Spawn Camp

Adi is a pathfinder in The Lantern Atlas, a text-based game whose beacons have gone dark. You will write the messages and small programs that help Adi find the way. At Spawn Camp, start with output, variables, and a few supplies.

A little background

Guido van Rossum created Python in the early 1990s. This course uses Python 3. Older tutorials may use Python 2, which is no longer supported; use Python 3 examples as you learn.

Python is a general-purpose language. People use it for websites, data analysis and machine learning, image processing, desktop applications, networking, automation, and games. Here, a small text-based game gives us a reason to practice without needing graphics or a game engine.

What working in Python feels like

Python code often reads closely to the steps you want a program to take. You can run a short program, inspect its output, and change one line to see what happens.

A few features are worth knowing now. The later lessons will give you practice with them:

  • You can assign a value to a variable without declaring its type first. This is called dynamic typing; it does not mean dynamic programming, which is a different idea.
  • Python is open source and free to use. Programs can run on Windows, macOS, and Linux, though operating-system-specific code may need changes.
  • A Python interpreter runs your code. You do not normally perform a separate compilation step yourself. The usual Python implementation does compile code to an intermediate form internally, so it is more than a line-by-line translation into machine code.
  • Python manages memory automatically, including reclaiming objects that are no longer needed.
  • Its standard library and additional packages provide tools for common jobs, so you do not have to write everything yourself.

You do not need to memorize that list before writing your first line.

Print a message

print() displays a value in the console, the area where program output appears. Put text inside quotation marks and place it between the parentheses.

Press Run below. You should see Hello there, without quotation marks.

python
print("Hello there")

The quotation marks tell Python where the text begins and ends. They are part of the code, not part of the message it prints.

Run this example too:

python
print("Hey Adi, Welcome to Spawn Camp")

The next lesson gives you an editor so you can change the camp message yourself.