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

TweetTweetFla.PyView game page

code golf flappy shape
Submitted by Blubberquark Software (@blubberquark) — 13 hours, 48 minutes before the deadline
Add to collection

Play game

TweetTweetFla.Py's itch.io page

How many characters of code did you use?
555

Include your code here, if you'd like to show it off!
import pygame as P, random as R
W=320
H=240
S=160
P.init()
d=P.display
s=d.set_mode((W,H),512)
c=P.time.Clock()
a=r=1
g=y=S
x=W
w=2**32-1
b=P.draw
L=b.line
while r:
for n in P.event.get():
if n.type==256:r=0
if n.type==768:
if a==2:v=-4.7
elif a==3:a=1;g=y=S;x=W
elif a==1:a=2;v=0
if a==1:q=(0,9,0)
elif a==3:q=(99,0,0)
else:
q=(0,0,9);v+=.1;y+=v;x-=1
if not(0<y<H and x!=100 or g-30<y<g+30):a=3
if x<0:x=W;g=R.randint(50,190)
s.fill(q);b.circle(s,w,(100,int(y)),5,1);L(s,w,(x,0),(x,g-35));L(s,w,(x,H),(x,g+35));c.tick(30);d.flip()

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet