ref: e76c1771e63c73de717c0a270bd7f8d639ca11be
parent: 994d690680eb3b1cc4febc45683da60228d9d611
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Dec 14 13:55:10 EST 2019
update stuff around
--- /dev/null
+++ b/README.md
@@ -1,0 +1,13 @@
+# cflood
+
+A "Color Flood" game clone for Plan 9.
+
+![screenshot](cflood.jpg)
+
+## Installing
+
+```
+cd /tmp && \
+hget https://github.com/ftrvxmtrx/cflood/archive/master.tar.gz | tar xz && \
+cd cflood-master && mk install
+```
--- a/cflood.c
+++ b/cflood.c
@@ -246,7 +246,7 @@
void
main(int argc, char** argv)
{
- int key, p, i, oldbuttons, sidmax, inv;
+ int key, p, i, oldbuttons, sidmax;
Event e;
Mouse m;
Menu menu;
@@ -253,11 +253,7 @@
Rectangle r;
sid = Ssmall;
- inv = 0;
ARGBEGIN{
- case 'b':
- inv = 1;
- break;
case 's':
sid = Scustom;
sizes[sid] = atoi(ARGF());
@@ -281,8 +277,8 @@
for(i = 0; i < NumColors; i++)
colors[i] = allocimage(display, r, CMAP8, 1, srccolors[i]);
- colora = inv ? display->black : display->white;
- colorb = inv ? display->white : display->black;
+ colora = display->white;
+ colorb = display->black;
einit(Emouse);
menu.item = mstr;
binary files /dev/null b/cflood.jpg differ
--- a/cflood.man
+++ b/cflood.man
@@ -4,9 +4,6 @@
.SH SYNOPSIS
.B cflood
[
-.I -b
-]
-[
.I -s size
]
[
@@ -17,10 +14,6 @@
is a game in which player must fill an area with one color in a limited number of turns.
.PP
The
-.B -b
-option reverses the color scheme for text and background.
-.PP
-The
.B -s
option sets the size of the area to
.IR size
@@ -36,6 +29,4 @@
There are three predefined area sizes in the game menu (invoked by button 3).
.EE
.SH SOURCE
-http://bitbucket.org/ftrvxmtrx/cflood
-.SH BUGS
-Of course.
+http://github.com/ftrvxmtrx/cflood
--- a/mkfile
+++ b/mkfile
@@ -1,11 +1,11 @@
</$objtype/mkfile
-MAN=/sys/man/1
-TARG=\
- cflood\
-
+TARG=cflood
+MAN=/sys/man/1
BIN=/$objtype/bin/games
+OFILES=\
+ cflood.$O\
-</sys/src/cmd/mkmany
+</sys/src/cmd/mkone
-install: cflood.man
+install:V: $MAN/$TARG