Blast Blaster
A downloadable game
Made for the TweetTweetJam 8 game jam.
Blast the enemy ship with your rocket blast
How many characters of code did you use?
500
Include your code here, if you'd like to show it off!
from pygame import*;init()
w,h=800,600
d=display
s=d.set_mode((w,h))
q,f,e=draw.rect,Rect,time.wait
a=b=m=n=t=64;y=z=w
while not event.get(256):
u=key.get_pressed();i,k,l=u[K_UP],u[K_DOWN],u[K_RIGHT]
b-=4*i;b+=4*k;a+=4*l;m,n=t*-l,t*(i-k);y-=4*(y>a);y+=4*(y<a);z-=4*(z>b);z+=4*(z<b)
c,x,o=(a,b,t,t),(y,z,t,t),(a+m,b+n,t,t)
if y>w:break
if f(o).colliderect(f(x))and(a,b)!=o[:2]:y=w*w;e(w);a=b=32;y=z=w
if f(c).colliderect(f(x)):a=w*w
s.fill(0);q(s,"orange",o);q(s,h,c);q(s,"red",x);d.flip();e(9)
Download
Download
Blast Blaster.zip 25 MB
Leave a comment
Log in with itch.io to leave a comment.