Every game character is just data. A name, a health value, a level, an attack stat. In this pack, you build characters from scratch using objects.
The Game Builder pack introduces data objects — structured collections of named properties. It’s how real games store everything about a player, an enemy, or an item.
The Challenges
Player Profile — Create an object with a player’s name and class. Print the profile. Objects let you group related data together instead of scattering it across separate variables.
Health Bar — Track a player’s health as a property. Take damage, update the value, print the new health. This is mutable state — data that changes as your program runs.
Level Check — Use a conditional to check the player’s level property. High enough to enter the dungeon? IF level >= 10, print “Access granted.” ELSE, “Keep grinding.” Objects plus conditionals.
Damage Calculator — Calculate combat damage using attack and defense stats from two objects. Subtract defense from attack, apply a multiplier. Math meets data structures.
Character Sheet — The advanced challenge. Build a complete character sheet with name, class, level, health, attack, and defense. Print a formatted stat block. This is the culmination — everything you’ve learned in one structured display.
What You’ll Learn
Variables store single values. Objects store related values together. That distinction is the foundation of every application ever built. User profiles, product listings, game characters, API responses — they’re all objects.
The Game Builder pack teaches you to think in structures, not just individual pieces. By the end, you’ll naturally group related data together. That’s how developers think.
Five challenges. One character. A full stat sheet.