Billabong
A tiny two-player strategy game, written for TweetTweetJam 9 in just 484 characters of code.
There are two players, red and blue. The players take turns to flood the channels with their colour. The player who fills the most of the screen with their colour wins.
To start flooding a channel, tap the screen if playing on a mobile device, or click with the mouse if playing on a desktop machine. The game works best on a mobile device so that the players don't have to fight over share a single mouse.
The stats display at the bottom of the screen shows the players' scores and who has the next turn.
When a game is complete, press Enter to bring up the pause menu and select the Reset Cart option to reset the game and play again on another random board.
Because this was written for TweetTweetJam, some niceties had to be dropped to fit into 500 characters. There's no title screen, music or sound, and the game doesn't detect the end of the game and display the winner. Also, there wasn't room for a safety check to ensure that the flood-fill algorithm doesn't exhaust Pico-8's available memory, but this doesn't seem to cause a problem in practice.
The entire source code of the game is:
a=add k=poke t=stat g=sget k(24365,3)k(24405)cls(13)for y=1,122,5do for x=1,122,6do?rnd{"◜","◝"},x,y,2 end end rect(0,0,127,121,6)k(24405,96)f={}s={0,0}p=1::_::px=t(32)py=t(33)if(btnp(5)and py<120and g(px,py)==13)a(f,{p,px,py})p=3-p n={}while#f>0do q,x,y=unpack(deli(f))if g(x,y)==13then sset(x,y,4+4*q)s[q]+=1a(n,{q,x,y+1})a(n,{q,x,y-1})a(n,{q,x+1,y})a(n,{q,x-1,y})end end f=n cls()spr(0,0,0,16,15.3)circ(px,py,1,7)x=?s[1],1,123,8 x=?chr(21+p),x+1,123,7 ?s[2],x+1,123,12 flip()goto _
Updated | 16 days ago |
Status | Released |
Platforms | HTML5, Windows, macOS, Linux |
Rating | Rated 2.0 out of 5 stars (1 total ratings) |
Author | dredds |
Genre | Strategy, Action |
Made with | PICO-8 |
Tags | Multiplayer, PICO-8, Tactical, tweettweetjam |
Average session | A few minutes |
Inputs | Mouse, Touchscreen |
Multiplayer | Local multiplayer |
Player count | 1 - 2 |
Download
Development log
- Announcement: The Color of Honey58 days ago
- Annotated source code for the latest versionMay 11, 2024
- Update: improved visualsMay 11, 2024
- Commented Source CodeMay 11, 2024
- New version fixes annoying bugMay 10, 2024
Comments
Log in with itch.io to leave a comment.
i understood immidiately its a 2 player game but would be cool if one could play with mouse and other with keyboard
very cute little idea :) impressive work squeezing it so small. love that you can play quick to cut off someone's flooding, but it spends your turn
This game is really satisfying! The looks are polished, the colors chosen fit the title / brand :D