Project sprint 2: the gameplay

16 min · 14 quiz questions

Learning objectives. By the end of this sprint Sky Lantern is a real game: stars fall and can be caught for points, rain costs lives, the game gets faster level by level, birds and lightning appear later, and power-ups help the player. All of it is written by your assistant. You should be able to give it your existing code and keep it consistent, plan a bigger feature before asking for code, and explain the key ideas: object classes, spawn timers, collisions, invincibility time and levels.

Fallen behind? If your sprint 1 game does not work, or you missed lessons, ask your teacher for the sprint 1 catch-up kit: the game as it should be at the end of sprint 1. Copy it into your repository, commit it, mention it in your AI use statement, and carry on from here.

Step by step: unzip the kit; open the folder sky-lantern-after-sprint-1 inside it; copy all its files except README.md and Modelfile (keep yours) into your sky-lantern folder, and accept to replace the files with the same name; run python main.py to check; then in GitHub Desktop commit with the message Start sprint 2 from the catch-up kit and click Push origin.

In this lesson

  • 1. Sprint planning
  • 2. Issue 6: falling stars and a Game class
  • 3. Issues 7 and 8: lives and levels
  • 4. Issue 9: plan first, then code
  • 5. Issue 10: power-ups
  • 6. Test the gameplay
  • Practice
  • Revision checklist