# Hour of Code: First Gravity Platformer Jump > Teach physics in code with a y-velocity variable, gravity acceleration, and ground landing. Grades 5–8 Scratch Hour of Code lesson plan: Teach physics in code with a y-velocity variable, gravity acceleration, and ground landing. ## 60-Minute Pacing Plan (Grades 5–8) Teach physics in code with a y-velocity variable, gravity acceleration, and ground landing. - 10 min: Explain y-velocity vs. fixed glide blocks - 25 min: Build gravity loop and space-bar jump - 15 min: Add coins and a goal flag - 10 min: Tune jump height and gravity feel ## Classroom Tips & Next Steps Encourage students to click the green flag after every 2–3 blocks. If a student gets stuck, ask them what they expected to happen and which block ran right before the surprise. - [All 15 Hour of Code Plans](/en/hour-of-code/): Browse more 1-hour Scratch activities. - [Grade-Level Curriculum Guides (K–12)](/en/grades/): Continue beyond Hour of Code by grade level. - [Interactive Scratch Labs](/en/tools/): Demonstrate coordinates, angles, logic, and lists live on your projector. Updated: 2026-11-24 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)