diff options
author | Nathan Korth <nkorth@nkorth.com> | 2012-02-25 10:34:26 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-04-28 00:21:16 -0400 |
commit | 2c7e47fc121014c1218d58248cd7c49cf2f38f0a (patch) | |
tree | 1900db6cb35b94dcda6b93f0d2d0ba096979e796 /apps/plugins/picross | |
parent | 3ae48284c1dcca3515785d15444d3dd4000cbfe5 (diff) | |
download | rockbox-2c7e47fc121014c1218d58248cd7c49cf2f38f0a.tar.gz rockbox-2c7e47fc121014c1218d58248cd7c49cf2f38f0a.zip |
New plugin: Picross
Picross is a puzzle game also known as Picture Crossword, Nonograms, or
Paint By Numbers. See http://en.wikipedia.org/wiki/Nonogram for
information on how to play.
Update 1: nicer graphics with less images, fixed directory listing,
changed how the board works to make a lot of math more sane
Update 2: added missing rb.yield to viewPicture loop
Update 3: you can now save a game in progress
Update 4: fixed a file pointer leak, improved the numbers font
Update 5: no images, use vector num draw library add zoom, freedraw -- Bilgus
Change-Id: Idc476b46b6eaa10818400fa789701d5bac83467f
Diffstat (limited to 'apps/plugins/picross')
-rw-r--r-- | apps/plugins/picross/picross.make | 24 | ||||
-rwxr-xr-x | apps/plugins/picross/picross_default.picross | 7 | ||||
-rw-r--r-- | apps/plugins/picross/rb.picross | 7 |
3 files changed, 38 insertions, 0 deletions
diff --git a/apps/plugins/picross/picross.make b/apps/plugins/picross/picross.make new file mode 100644 index 0000000000..7e78c0fb1c --- /dev/null +++ b/apps/plugins/picross/picross.make | |||
@@ -0,0 +1,24 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | |||
10 | LUASCR_SRCDIR := $(APPSDIR)/plugins/picross | ||
11 | LUASCR_BUILDDIR := $(BUILDDIR)/apps/plugins/picross | ||
12 | LUASCRS := $(wildcard $(LUASCR_SRCDIR)/*.picross) | ||
13 | |||
14 | #DUMMY := $(info [${LUASCRS}]) | ||
15 | |||
16 | DUMMY : all | ||
17 | |||
18 | all: $(subst $(LUASCR_SRCDIR)/,$(LUASCR_BUILDDIR)/,$(LUASCRS)) | ||
19 | |||
20 | $(LUASCR_BUILDDIR)/%.picross: $(LUASCR_SRCDIR)/%.picross | $(LUASCR_BUILDDIR) | ||
21 | $(call PRINTS,CP $(subst $(LUASCR_SRCDIR)/,,$<))cp $< $@ | ||
22 | |||
23 | $(LUASCR_BUILDDIR): | ||
24 | $(call PRINTS,MKDIR $@)mkdir -p $(LUASCR_BUILDDIR)/ | ||
diff --git a/apps/plugins/picross/picross_default.picross b/apps/plugins/picross/picross_default.picross new file mode 100755 index 0000000000..ad7643b79e --- /dev/null +++ b/apps/plugins/picross/picross_default.picross | |||
@@ -0,0 +1,7 @@ | |||
1 | # simple default puzzle | ||
2 | |||
3 | ****..*...*.. | ||
4 | *...*.*...*.. | ||
5 | ****..*.***** | ||
6 | *.....*...*.. | ||
7 | *.....*...*.. | ||
diff --git a/apps/plugins/picross/rb.picross b/apps/plugins/picross/rb.picross new file mode 100644 index 0000000000..bb63b506f5 --- /dev/null +++ b/apps/plugins/picross/rb.picross | |||
@@ -0,0 +1,7 @@ | |||
1 | #open source jukebox firmware | ||
2 | |||
3 | ****...**...***.*..*.............. | ||
4 | *...*.*..*.*....*.*.*............. | ||
5 | ****..*..*.*....**..***...**..*..* | ||
6 | *..**.*..*.*....*.*.*..*.*..*..**. | ||
7 | *...*..**...***.*..****...**..*..* | ||