← Back to catalog
Cover image for BlockDrop

BlockDrop

A - left D - right Created with Pygame for TweetTweetJam 2, 558 characters of code (include space, exclude '\n') import pygame as pimport randomp.init()o=p.fontr=G=255W=20P=360f=o.SysFont('arial',W)j=p.displays=j.set_mode((G,P))u=p.Recti=u(100,P-W,W,W)v=[]l=0E=p.USEREVENT+1h=p.timeh.set_timer(E,P)w=[G]*3while 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)

runter66 View creator →
ItchDB signals
★ 4 avg rating
1 ratings
0 comments
Catalog standing Top 58%
#231,583 of 399,791most rated

Ratings over time

Cumulative · 30d
1 30d ago today
Cumulative ratings