Inspiration
Game using Pygame + level a bit higher than our level + can be completed in 24h + radish + pixel aesthetic
What it does
It loads a game that is similar to piano tiles. To play the game, you need to press the keys {a, s, d, f}:
a: tile #1 , s: tile #2, d: tile #3, f: tile #4.
If you press on a radish as it falls into the bucket, the radish disappears. Else, you lose the game if you do not press on a radish on time.
How we built it
We built it using Python with the Pygame library. The background and the radishes were drawn using pixel art.
Challenges we ran into
1. not constant appearance of tiles
Old codes example:
while running:
clock.tick(60)
screen.fill((0, 0, 0))
screen.blit(background, (0, 0))
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
if Ya1 == 0:
Ya2 = -128
X = random.randint(0,3)
Xa2 = lst_Xa[X]
if Ya2 == 0:
Ya3 = -128
X = random.randint(0,3)
Xa3 = lst_Xa[X]
if Ya3 == 0:
Ya4 = -128
X = random.randint(0,3)
Xa4 = lst_Xa[X]
if Ya4 == 0:
Ya1 = -128
X = random.randint(0,3)
Xa1 = lst_Xa[X]
Ya1 = Ya1 + tileY_change
Ya2 = Ya2 + tileY_change
Ya3 = Ya3 + tileY_change
Ya4 = Ya4 + tileY_change
tiles(Xa1, Ya1)
tiles(Xa2, Ya2)
tiles(Xa3, Ya3)
tiles(Xa4, Ya4)
_ Instead of initializing the four tiles, we made a loop using five minimum tiles needed for the y axes _
2. adding a score and making the tiles disappear after a key stroke
3. trying not to make the tiles disappear after KEYUP event _ we deleted KEYUP events and only kept KEYDOWN events. KEYDOWN was then put inside the for loop of get event _
4. keystroke registration difficulties
5. the game allows you to miss a few radishes before ending. Moreover, if you miss one radish, it lets you play a little bit before Game Over.
6. if the computer lags when opening the game, it will give you Game Over
Accomplishments that we're proud of
- Making the game over feature for different kind of losing events in the game.
What we learned
Many basic functions from Pygame such as making an icon, adding music, moving an image, drawing an image to make another image disappear, adding a score etc.
What's next for Radish piano
1 vs 1 Radish piano for two players + tiles that are not randomized, ie a melody plays as you press the tiles + long press for longer tiles. And have a better knowledge in the sprite function of Pygame and use it. Make the radish tiles play an actual song instead of randomly generating notes. Write the game in a compiled language to make the game over feature faster.

Log in or sign up for Devpost to join the conversation.