Start typing to search...
Tutorials
Creating games on Koji
Creating remixable games
Search

Tutorial: Creating remixable games on Koji

In this tutorial, you will create a remixable Falling Objects game, starting from a p5.js game template.

Note
This tutorial assumes you’ve already gone through the Koji quick start tutorial and are familiar with the basics of Koji.

Objective

Falling Objects is a simple game where the player tries to collect as many falling objects as they can before they fall off the screen. The player moves their character left or right by clicking anywhere on the screen. The player loses a life when an object falls off the screen, and the game is over when the player runs out of lives.

Here’s an example of the game that you will build in this tutorial.

Sections

game-assets.html

fork the game template and modify it to load the images and sounds used in the falling objects game.

game-creating-game-objects.html

define the Player and Collectible classes and spawn them in the game.

game-scoring-and-losing.html

enable the player to catch a falling collectible and add the logic for scoring and losing the game.

game-managing-difficulty.html

make the game progressively more difficult over time, so that users have more incentive to compete on the leaderboard.

game-remix.html

make the game easily remixable by other people so it can be shared everywhere online.

game-thumbnail-preview.html

customize the preview image that is displayed when users share their remixes on social media.

game-finishing-up.html

publish your game and share it with your friends, so they can compete for the top leaderboard spot.

Getting help

If you have any questions or feedback about this tutorial, please reach out to @Marko(Svarog) and the Koji community on the Koji Discord server.