Art & Music - Module 9: Creating Games (Fall 2026)

“Creating Art & Music” is an introductory course designed to introduce creative activities in the context of art and music. Thus far the course has been taught at the middle school, high school, community college, and university level (with appropriate adaptations for each level). Each week, students in the course are posting their projects in this strand of the Snap! forum. Here is s a link to the course materials:

Art, Animations & Music

In this week’s module, we will begin exploring how to create games in Snap!. Since games tend to be more complex, this module will extend across multiple weeks, as we develop concepts, create first drafts, and then refine mechanics and features.

As a jumping off point, please review the documents on the course page for the module on Designing Games. This includes links to several games of varying complexity as well as text documents showing how they were built.

The games included are:

Side Scrollers
Simon
Pong
Battleship
Pacman

Feel free to review past versions of this module or other projects published in Snap for additional game ideas.

Once everyone has outlined a game they want to create and described the elements they want to include, we’ll work on creating those elements and assembling them into a fully functioning game.

I want to build a game where a player is attempting to throw their socks into a laundry basket but a cat is trying to catch them. I would have the basket stay in place and just have the cat randomly move. I would give the player 2 misses before they loose the game. A player would win once they get 10 socks in. The cat will get faster making it harder to score. I think that I might struggle with figuring out how to implement what the player see and how they score. Another thing that I am hoping to do is have different sprites for the cat for when it catches something and one for when it is attempting to catch something. I also want to have different sprites for the socks so it is not always the same.

edit 1: I am currently working on the throwing part of the game. I have made a placeholder sprite for the “socks” while i figure out how the throwing is going to work. For the game I want to have the speed of a throw to increase as the mouse is down, and I want to allow them to move the mouse as the hold down so they can aim.

edit 2: I took a step back and am working in getting the throwing down until I add the “socks” and other things to it. I changed the code a bit and now I have it where the power increases as you hold down and the sprite points in the direction you throw.

edit 3: I made the suggestion changes and now this uses velocity. I was having issues with the power going over the limit I set of 18, but that was because I had two blocks named power.I got rid of it and now works as should. I also changed the start and end location of the object because to adapt to the player POV. I was thinking about adding to the code so the player could see where they are aiming but since I will be using a costume that doesn’t seem necessary. I do want to have it where as the player moves around to aim the sprite follows. I am hoping to get suggestions on how to implement that. Once I get that to work I was hoping to start adding a costume to the sprite but I was wondering if I could get guidance on how to size and use images found online without having the background and only the object.

edit 4: I added a timer so the player has 6 seconds to move left or right. I am currently working on adding a switch costume loop so this happens until loses the game.

For this project I would like to try and make a grid based strategy game akin to games like XCOM/triangle strategy/fire emblem. Seeing as how I will need to make a grid, I opted to take a bit of code from the battleship project to try and map out a level. Initially I want to keep the idea very simple, player and enemy units should only be able to move a few spaces and only attack if they’re adjacent. I also plan on cutting rpg mechanics like level ups and misses. Since all attacks will hit this will make combat deterministic and fairly trivial to calculate. In order to give the game some strategic element I will make some spaces inaccessible and have that act as cover for units. I am not sure how I will implement movement quite yet since i want to limit movement to the grid. Depending on time I may add an enemy ai, for the time being I intend on making the game 1v1 akin to chess. Another stretch goal is to add ranged weaponry.

The general flow I am opting to take for how I build this project is:

grid/map design → movement → combat → character stats → enemy ai → ranged weaponry

Here I added the grid code along with a start to the pathing algorithm in the find reachable block.

Nov 3 update:

I’ve finished the pathing algorithm and started on the movement segment. I am currently not sure what to fill in for some of the empty inputs. Currently I am at a loss for addressing the movement and on general next steps. I’ve also addressed some of the comments given earlier this morning by removing the inefficient loops. I used Claude to help me translate the pathing algorithm into Snap!

Nov 8 update:

I’ve added in blocks to try and address movement, although I am having issues getting it to work. I’m seeing some errors when I run the script which I will try to address soon.

Edit 1: Added basic sprite movement functionality, working on functionality to land on platforms

My game is going to be a Mario-style platformer where the player must navigate the landscape and reach a goal.

I will need to implement functions for the player to be able to control the sprite. I will also need to implement the functionality to jump from block to block. The background will also need to scroll as the user moves across the screen. The score must be updated after the user collects coins or reaches the goal. Once the user reaches the goal, the game must detect that the user has completed the level.

The scoring system will be based on how many coins are collected and whether the player makes it to the goal. A large point reward will be given when the user reaches the goal and smaller rewards will be given when the user collects coins.

I anticipate having some challenges implementing the ability to jump on to floating blocks because the sprite will not be returning to the original y-coordinate that it was originally at. I also anticipate difficulty in implementing the scrolling background.

I will incorporate sprites for the player, coins, the goal, the background, and the blocks for the player to jump on top of. I also want to incorporate sound effects for when the player jumps, when the player collects a coin, and when the player reaches the goal.

My game is going to be a top-down zombie survival game where the player controls an archer who must survive against zombies that continuously chase them. The goal is to survive as long as possible while shooting arrows to eliminate zombies and earn points.

I will need to implement controls that allow the player to move in all four directions using the keyboard. The player will also need to shoot arrows in the direction they are facing. Zombies will spawn at random locations around the edges of the screen and automatically move toward the player. When an arrow hits a zombie, the zombie will disappear, and the player’s score will increase. The player will have three lives, and the game will end when all three are lost.

The scoring system will be based on the number of zombies eliminated, with each zombie worth 10 points. As the game progresses, I want to increase the difficulty by making zombies spawn more frequently or move faster.

I anticipate having some challenges implementing the zombies’ ability to continuously follow the player and detecting collisions between arrows, zombies, and the player. I also think managing multiple zombies and arrows on the screen at once could be difficult.

I will incorporate sprites for the archer, zombies, and arrows, along with a simple arena background. I also want to potentially add sound effects for shooting arrows, hitting zombies, and losing health if I have the time.

**UPDATE: Started adding basic moving functionality and animations
**

**
**

For my game, Space Dodge, the player will use arrow keys to fly a spaceship and dodge falling asteroids. I plan to add three lives, scoring, and faster asteroids as the game progresses.

Update 1: Spaceship movement works, including diagonals and screen boundaries. I added a space background, spaceship costume, and R to reset the ship’s position.

Update 2: Laser shooting now works! Press or hold spacebar to fire while flying. Lasers disappear offscreen, and R clears them. Next, I’ll add falling asteroids, collisions, lives, and scoring.

Update 3: I added asteroids that spawn at random positions across the top and fall straight down without rotating. I also added an engine flame that flickers while the spaceship moves and turns off when idle. Pressing R resets the ship and clears the asteroids and lasers. Next, I’ll work on collisions and lives.

For my game project, I’m making a 1-on-1 volleyball game inspired by Pikachu Volleyball, but with my own characters: two cute slimes. The goal is to hit the ball over the net and make it land on the opponent’s side.

Game Elements and Features

  • Characters: Two slime sprites with idle, run, jump, dive, win, and lose animations.
  • Controls: Move left and right, jump, and hit the ball with the keyboard.
  • Ball Physics: Gravity, plus bouncing off the slimes, walls, and net.
  • Scoring System: First to 5 points wins.
  • Visuals and Sounds: A pixel-art beach court, a scoreboard, and 8-bit sound effects.

Progress So Far

All the assets are done (court, ball, net, slimes, digits, sounds), and the Snap! project is set up with every sprite in place.

Plan

Next, I’ll add movement and jumping, then ball physics and collisions, and after that scoring and a game-over screen. If I have time, I’ll add a computer opponent and special moves like diving and spiking.

I would like to recreate the Google Snake game. The premise of the game is that a player has to eat as much randomly spawned food as they can without bumping into themselves and the walls. The snake will be controlled with the arrow keys.

The body of the snake/player will grow every time the snake eats a piece of food. Furthermore, the player will gain a point towards their in-game score for that round. After a snake eats a certain amount of food, the snake will speed up slightly. I was also thinking of implementing a high-score system, where the player’s highest in-game score is recorded and displayed, and the player aims to beat it. The player loses when the snake bumps into a wall or if the snake collides with itself. There is technically no “win” condition.

Areas of game creation I feel like I will have a hard time with is mainly concerning the movement of snake and growing the snake’s body. Assets that I will incorporate are the snake sprite, the food sprites, and the background. I was also thinking of incorporating fun in-game music!

Nov 4: Linked below is my game (in progress):

Linked below is the game that I am basing it off of:

I have basic costumes in my game, and I plan to optimize the code and make the sprites look nicer once I figure out how to code the mechanics of the game. For the the game that I am referencing my game off of, I am confused by what their “node list” is.

Nov 11: I added the code in the reply and also added the logic to spawn an apple randomly on the grid. A big issue that I am running into is that the snake sprite, when changing direction, moves. It changes position slightly when pointing in different directions, causing it to not fit in the grid nicely. Another issue that I am running into is that the snake dies immediately. One more issue I am currently trying to solve is to figure out how to not make the apple spawn where the snake is. Does the clone in the list automatically also store location coordinates?

Draft 4: added the idea of jumping and obstacles but very bare bones - going to touch on this and make it more polished ; Probelms - jumping mechanic is not optimal at all and very bare rn, jumping and hitting a floor above sends you to the top of that floor, you can continuously jump - want to change this to can only jump after landing maybe

Draft 3: Fixed issue with ball touching side of floors - plan on adding obstacles and jumping maybe soon - also end game screen, another sprite for another player, game music

Draft 2: added gravity, borders, score, increasing floor speed based on score

Draft 1: I added the rising floors and a left right moving ball. Next I want to add gravity and collision detection

For my game I plan on making fall where you control a ball and there are floors with gaps in them that are constantly rising and getting faster and you have to keep falling through the gaps, if your ball hits the top of the screen you lose. I want to add a twist to it where you can play two players such that there are two spirtes controlled by wasd and arrow keys and the players can compete to see who can survive the longest.

I will need to add left right movement for the balls along with gravity for the gaps and the rising floors along with there speed increasing. maybe ill add jumping with small obstacles on each floor the players have to jump over to get to the gap but that might be ambitious.

The scoring will just time be a timer of how long the player has lasted, there will be no win condition just high score and losing condition.

I think getting the logic of the gap detection along with the gravity will be the most challenging part.

I want to add a background to the stage and game music that hopefully will intensify the game.

I want to create a game rhythm game with 4-6 notes that increases in speed as your score increases, but once you miss 3 notes you loose. I would need to implement random note drops through the use of clones, a score keeping system that can influence the note speed, and a sensing system which coordinates the visuals with your keyboard presses. Currently I am keeping the point system simple, 1 point is given after successfully hitting a note. Maybe if I have the time, I would try to make a more detailed point system which differentiates between good and perfect hits or implement a combo point increase system. Another difficult aspect that I want to implement is a distance perspective where the notes move as if they are coming closer.

I’d like to create a breakout game where there’s a platform at the bottom that rebounds the ball into the bricks. I would have the bricks at the top of the window, and the ball would bounce off all sides of the window except the bottom. There’s probably going to be some form of velocity control with the ball’s movement. I also want to make each brick have a chance of dropping a powerup, which could be multiple balls or bullets.

The controls would probably be arrow keys, and starting the game would probably just involve pressing the spacebar. I might want to keep a scoreboard, though I’m not sure it’s necessary unless I’m making multiple levels.

Edit: I added more bricks and a cracked brick costume. Bricks require two hits to break.

The game I’m going to create is a 2D version of Stack where players time their taps to drop sliding rectangular blocks and build the tallest tower possible. It is based on a one-click mechanic in which the player clicks the screen to drop a moving block onto the stack below. If a block is misaligned, the overhanging part is sliced off, making your platform smaller for the next turn.

The difficulty adjustment for this game comes from the speed of the blocks moving. There are two ways to handle this. One, landing the blocks dead-center will increase the speed for the next few blocks until the user fails, then the speed slows down again. Another way is to completely set the speed at random pace so the player needs to time things perfectly and not get used to the timing and pace of the game.

The overall plan for this game is

• Creating the blocks and making them move sideways

• Adding the interaction to stop the movement of the box on click

• Cutting off the excess parts of the box

• Adding speed variants to spawing boxes

• Scoring system, game over system, main menu, etc.

devlog 1101

completed step 1 and 2:

    creating the blocks and making them move sideways
    stop the movement of the box on click

devlog 1109

completed step 4 and 5 but the size of the blocks aren’t decreasing in the right proportions, so I’ll need to fix that later on. And maybe I’ll tidy up the code later on. Also, I will have the screen scroll up.

I want to make a museum heist game where the player tries to sneak through a museum to steal an artifact and then escape without getting caught by the security guards. The goal would be to try and complete the heist in as little time as possible while also not being caught. I also want to implement features such as an alert if the player gets spotted, making the game even harder.

I would need to implement controls allowing the player to move in all four directions with the arrow keys. The security guards would watch over different areas and if a player is to get too close to one, then they will become alert of them. I want to add hiding spots where the player can go so they don’t get spotted.

I want the scoring system to be based on metrics such as how quickly they completed the heist and how many times they were spotted. Finishing quicker and being spotted less will result in a higher score. The conclusion of the game is when either the player completes the heist or is caught.

In my opinion, the biggest challenges will be making the guard move around the museum and then being able to detect players that are in their range. I also think it might take some time to work on the hiding and alert system mechanic.

In regards to the visuals, I want to create some sprites for the player, the security guards, the artifact, the hidings spots, and then also the background of the museum. If time allows, I would also want to add some alarm sound effects and a game completed screen if they complete the heist.

@nicolechecker

So far so good. Your movement loop is currently using an empty reporter rather than the variable, but that’s an easy fix.

For the movement itself, what you have now will cause the ball to move in a straight line at a consistent speed. If you want something that moves in an arc, you will need to track speed on both the x and y axis. Usually, this is notated as “vx” and “vy”, for velocity in a given direction. These should be script variables, as you may also have other objects that have their own velocities.

There are multiple ways to do this, but the one below is probably simplest. The “-0.8” at the end is gravity. The closer it is to zero, the weaker the gravity. You can substitute your own repeat until condition; the -170 is completely arbitrary.

@xdw9vp

I know this is just a rough start, but there are a couple things I would do differently.

In your setup, you’re using Tile Size before it has actually been set. I’d move Set Tile Size up one.

In Reset Search, nested loops will always be slower than matrix operations. The following accomplishes the same thing, but does it instantly.

Regarding the overall algorithm, here are some things to consider:

  1. Does Distance mean your global grid or the input with the same name?
  2. The neighbor lines both use the same expression. Should they? What does Directions hold when the loop starts?
  3. What checks does each neighbor need to past to go into the queue? What order must they be passed in?
  4. After the search ends, are there any global variables that other scripts need?
  5. What do tiles at the same distance have in common? Is there a way to avoid needed to look up each tile’s distance?

@karamah

Snap! treats any pixel that isn’t fully transparent as solit. The reason the ball sometimes gets caught on the side edge of a platform is because there are stray nearly-but-not-full-transparent pixels blocking it.

There is probably a more elegant solution, but the one that worked fastest for me was to implement extra checks such that if the the ball attempts to slide left and right if it gets stuck. First it tries to slide right. If it it still touching, then it slides left.

oo okay thank you! yeah at one point i tried adding a black outline to the sides of each floor and changed the from when touching floors, to when touching white in hopes that the black on the side would cause the ball not to register the white but that didnt work so thank you for this!

@nicolechecker

  1. Right now ‘point towards mouse-pointer’ runs only after you release the mouse button, so the sprite keeps its old direction while you aim. If you move the block inside the repeat loop, the sprite will turn to face the cursor as soon as the button is clicked.

  1. For images from the internet, look for PNG files with transparent backgrounds. If the image has a white background, that can be removed in the Snap! sprite editor.

    As for resizing, that can be accomplished with the Set Size block under the Looks palette.

@juliachen

A few thoughts on your game:

  1. Your jump blocks go 15 steps up and 15 steps down, so the player always ends at its starting height. Instead, give the player a script variable “y speed”. Each time through the forever loop, the player moves up or down by y speed, and y speed decreases by 1. The player therefore rises, slows down, and falls. Then, you can build a custom check called “on ground”. The fall ends when “on ground?” reports true, so the player can stand on a platform at any height.

  1. For the scrolling, keep the player at one x position and move the level past it. Make a global variable “scroll x” for how far the player has gone in the level, and initialize it to 0 at start. Your arrow-key scripts then change scroll x by 5 or -5 instead of moving the player. Each platform goes to its own x in the level minus scroll x, so it slides left while you hold the right arrow.

  2. When you get to the coins, I would use clones. Once you have the world scrolling, you can pre-place each clone with a for each loop and a list.

@kvr3jn_eshaan_shah

You really only need one zombie sprite; the entire horde can be made from clones. For example, you could have a hidden zombie makes a clone every 2 seconds. Before each clone, it goes to the center, turns to a random direction and moves 260 steps, which places the clone just outside the stage. Each clone repeats point towards archer and move 0.3 steps until it touches an arrow or the archer. At 0.3 steps a zombie is slower than your archer (0.5 steps), so the archer can outrun it.

  1. I would use clones for the arrows too. Hide the arrow sprite at start. While you hold space it makes a clone at the archer every 0.3 seconds, pointed towards the mouse. Each arrow clone moves 8 steps at a time until it touches a zombie or the edge. Important: The arrow clone and the zombie clone each need to wait 0.1 seconds before deleting themselves so that the other clone’s check still finds it.