Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
A jam submission

BlockDropView game page

Submitted by runter66 — 1 day, 6 hours before the deadline
Add to collection

Play game

BlockDrop's itch.io page

How many characters did you use?
558

Include your code here, if you'd like to show it off!
In the comments section

Leave a comment

Log in with itch.io to leave a comment.

Comments

Simple but nice game. I included it in my TweetTweetJam 2 compilation video series, if you’d like to take a look. :)

Developer (2 edits)

import pygame as p
import random
p.init()
o=p.font
r=G=255
W=20
P=360
f=o.SysFont('arial',W)
j=p.display
s=j.set_mode((G,P))
u=p.Rect
i=u(100,P-W,W,W)
v=[]
l=0
E=p.USEREVENT+1
h=p.time
h.set_timer(E,P)
w=[G]*3
while r:
 for e in p.event.get():
  r=e.type!=12
  if e.type==E:v+=[u(random.randint(0,G-W),0,W,W)]
 k=p.key.get_pressed()
 i[0]-=k[97] and i[0]>0
 i[0]+=k[100] and i[0]<G-W
 s.fill((0)*3)
 p.draw.rect(s,w,i)
 for q in v:
  p.draw.rect(s,w,q)
  q[1]+=1
  if q[1]>P:l+=1;v=v[1:]
  if q.colliderect(i):l=0;v=[]
 t=f.render(f'{l}',1,[G]*3)
 s.blit(t,(W,0))
 j.flip()
 h.Clock().tick(60)