This is the final tutorial for this particular game. Some more changes to the code explained: – Character becomes invincible for 1 second every 5 gems collected. – Character does not move beyond window boundary. – Enemy speed increases every 5 gems collected.