Cubicle Commotion


This game is an entry for TweetTweetJam 6 and contains just 557 characters of code, small enough to fit in 2 tweets.

How to play:

Use the left and right arrow keys to hop from corner to corner and catch the flying red squares. If you miss one you lose one of your 10 chances. Catch 10 squares to gain an extra chance. Press Enter to start a new game.

Cubicle Commotion was written in Ruby with DragonRuby Game Toolkit. I had valuable help from the DragonRuby Discord community, especially Levi and Mooff.

Code:

def^o;intersect_rect?o;end
def r;X,Y,W,L=630,350,0,[Q+=0.02,Q].map(&:rand_sign)end
def tick a
A||=(B,C,N,O,R,T,Q=a.keyboard.key_down,[D=440,E=160,G=400,G],0,10,[0,0,S=1e4,S,F=255,0]*3,0,3;r;[D,E,D,U=560,V=840,U,V,E])
C[0]=R[7]>0?D+rand(9)-5:D
rand<0.05&&W+=1
b=W<1?[0,0]:L 
O>0&&(j=[X+=b.x,Y+=b.y,K=20,K,F]
A.rotate!2*B.left_right
I=[A.x-K,A.y-K,40,40,T]
j^C||(r;O-=1;R[7]=F)
j^I&&(r;N+=1;T=F;N%10==0&&O+=1))
R[7]-=5;T-=5
B.enter&&A=p
a.borders<<C<<[630,350,K,K]
a.solids<<[R,C+[F]*3,j,I]
a.labels<<[640,600,"#{N}/#{O}",1,1]
a.lines<<[D,E,V,U]<<[D,U,V,E]end
StatusReleased
PlatformsHTML5, Windows, macOS, Linux
Rating
Rated 4.5 out of 5 stars
(2 total ratings)
AuthorAkzidenz
GenreAction
Made withDragonRuby GTK
Tags2D, dragonruby, Minimalist, Short
Code licenseMIT License
Average sessionA few minutes
InputsKeyboard

Download

Download NowName your own price

Click download now to get access to the following files:

cubicle-commotion-windows-amd64.exe 5.5 MB
cubicle-commotion-linux-amd64.bin 5.5 MB
cubicle-commotion-macos.zip 4.5 MB

Comments

Log in with itch.io to leave a comment.

(+1)

I do not know why, but games like this that are just really concept's to see if it can work i always really enjoy, 

:D Sweet! This was the fastest I've ever made a game.