🗺️ Map ›
🛡️ Warrior ›
🎮 Web Game Dev
Lesson 2 — Take Control: Reading Player Input
⏱ 30–40 minutes 💻 Write HTML/CSS/JS with live preview in the browser
💡 Games read player input through events and change the character's state inside the loop
👨👩👧 Notes for parents
Level: Warrior — roughly Grade 8 / ages 13–14 Duration: 30–40 minutes Format: Write HTML/CSS/JS with live preview in the browser Concept: Games read player input through events and change the character's state inside the loop
Learning Objective
Kids use keydown/keyup events to steer a character, store state in an object, and write boundary conditions.
Do It Together (Parent-Child Co-participation)
Take turns and set dares: "make him twice as fast in 10 seconds" — your child has to hunt down the speed variable.