Activity 01
Pair Programming: Gravity Jump Mechanic
Pairs code a character sprite with upward velocity on key press, then apply gravity acceleration each frame. They test jumps, measure heights, and adjust gravity value for realistic arcs. Pairs swap codes to playtest and suggest improvements.
Explain how programming simulates real-world physics in a game.
Facilitation TipDuring Pair Programming: Gravity Jump Mechanic, circulate and ask pairs to explain the relationship between their gravity constant and the character’s fall speed in plain language before they test it.
What to look forPresent students with a short code snippet demonstrating gravity. Ask: 'What will happen to the character when this code runs?' and 'How would you change the code to make the character fall slower?'