1
0
Fork 0
forked from len0rd/rockbox

FS#11922: Lua game - Pixel Painter

* Changed keymaps to PLA and added to SOURCES and CATEGORIES file
* improved keymaps: implement wrap-around and key repeat
* change keymap according to screen orientation
* fix font size calculation
* use blocking button query in main loop
* replace tabs with spaces
* added manual entry
* added original author to CREDITS

Change-Id: Id67ae99cbb7a737c7f4608e278b77a389ac2ffa6
This commit is contained in:
Sebastian Leonhardt 2016-09-23 01:25:32 +02:00
parent 7944969ff7
commit 28ae700444
19 changed files with 733 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 995 B

View file

@ -70,6 +70,8 @@ text files%
\opt{lcd_bitmap}{\input{plugins/pegbox.tex}}
\opt{lcd_color}{\opt{large_plugin_buffer}{\input{plugins/pixelpainter.tex}}}
\opt{lcd_bitmap}{\input{plugins/pong.tex}}
\opt{lcd_bitmap}{\input{plugins/reversi.tex}}

View file

@ -0,0 +1,24 @@
\subsection{Pixel Painter}
\screenshot{plugins/images/ss-pixelpainter}{Pixel Painter}{img:pixelpainter}
This game is written in LUA and based on the game of the same name by
Pavel Bakhilau (\url{http://js1k.com/2010-first/demo/453}).
Select a colour to flood-fill the board with that colour, starting from the
top-left pixel (meaning that any pixel which is connected to the top-left
through other pixels of the same colour will be changed to the selected colour).
Try to paint the entire board with as few moves as possible.
\begin{btnmap}
\ifnum\dapdisplaywidth<\dapdisplayheight
\PluginLeft{} / \PluginRight
\else
\PluginUp{} / \PluginDown
\fi
& Move colour selector\\
\PluginSelect
& Fill screen with selected colour\\
\PluginCancel, \PluginExit
& Enter game menu\\
\end{btnmap}