Kojo Wiki

docs for Kojo

View source on GitHub

Gaming-1 lesson plans

To follow along, you need at least Kojo version 2.9.30 and kojo-gaming version 0.4.
These versions were released on 21st Nov. 2024.

Note – you need the kojo-gaming extension only if you plan to use picgaming via // #exec template /picgaming at the top of your script.

  1. Creating Pictures and moving them around on the canvas.
  2. Moving Pictures smoothly.
  3. Keeping Pictures within the stage area.
  4. Canvas bounds.
  5. Picture collisions and bouncing.
  6. Controlling Pictures via the keyboard and the mouse.
  7. Making a game - Hunted.
  8. ArrayBuffers and HashMaps for gaming.
  9. Hunted 2 - increasing the number of hunters without any code change.
  10. A template to help with designing and developing games.
  11. Hunted 3 - adding background and character images.
  12. Hunted 4 - putting an envelope around character images for better collision detection.
  13. Hunted 5 - using multiple images per character for richer animation.
  14. Creating Sprite-sheets via Kojo-animations.
  15. Hunted 6 - adding sound.
  16. Project - Hunted, gameplay improvement.
  17. Project - Hunted, further gameplay improvement using AI.
  18. Game refinement project 1 - Dino.
  19. Game refinement project 2 - Car Ride.
  20. Game refinement project 3 - Aliens.
  21. Game Project
  22. A Platformer Game.

Todo

  • Object Oriented Programming (OOP) – motivation and core ideas
  • Redoing Hunted using OOP
  • Redoing sample games using OOP
  • Game Engines
  • A Pictures based lightweight game engine
  • The kojo-gaming game engine
  • More lessons coming soon…

Copyright © 2010–2025 Kogics Foundation. Licensed as per Terms of Use.