Variables & Memory
Declare variables, inspect how values are stored and updated in memory, and wire up basic combat stats.
Learn core programming fundamentals by building a turn-based RPG battle system in your browser. Covers variables, conditionals, loops, and functions with no prior coding experience or local environment setup required.
If you have never written a single line of code in your life, you are in the right spot.
Throughout this course, you are going to build a complete, playable, turn-based RPG from scratch (just like Pokémon or Final Fantasy). You'll start with the complete battle arena, provided by me. Then we'll peel it back layer by layer, until you've written all the game mechanics yourself!
Thank you for diving into this journey with me. As someone with a computer science degree, who was a grader and a TA, I truly believe anyone can learn to code, and that you do not need to be a professional programmer to mod your favorite games.
Declare variables, inspect how values are stored and updated in memory, and wire up basic combat stats.
Use if/else statements and comparison operators to handle shields, critical hits, and knockout checks.
Process enemy squads, party inventories, and iterative turn resolution using loops and arrays.
Package combat mechanics into modular, pure functions that won't brick save game state.