Make your own suica game (watermelon game) using Pygame

AndyCheung0211
6 min readOct 25, 2023

What is suica game?

suica means watermelon in japanese, as the name suggested this game’s goal is to create a watermelon. by dropping other fruits to the box, same type of fruit will turned into a larger fruit and finally watermelon is made. check out a youtuber who speed run watermelon👇

Rules

  1. Same type of fruit upgrade when contact
  2. Each fruit take up specific space
  3. When fruits reach the top game is over

Create background

draw 3 lines to create a rectangle with top side open

import pygame
screen_width = 800
screen_height = 600
black = (0,0,0)
white = (255,255,255)
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.init()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
screen.fill(black)
pygame.draw.line(screen, white, (40, 40), (40, 720), 1)
pygame.draw.line(screen…

--

--