Commit graph

18 commits

Author SHA1 Message Date
William Wilgus
ce61be4d59 lua boomshine update to use rockevents library
using rockev for button presses

misc code refactoring, comments

drawing code is now split from game logic

cpu boost for targets that support it

removed quite a few if then statements by using dynamic functions
for ball draw, step, hit_check

shows two ways to do OO functions (closure and reference)

Change-Id: I63e795bbe90b033eabadc1f519cf3b635cf5e1a7
2020-06-25 13:50:57 +00:00
William Wilgus
213cdfc109 Boomshine Fix rb.touchscreen_set_mode()
Change-Id: I5bc835f1e006ed923cf0b7a3fcf91d4e357913ed
2019-06-17 16:03:57 -05:00
William Wilgus
cdd4708326 lua rewrite boomshine
rewrite the logic of boomshine to make it more difficult
 especially small screens

rewrite of the game engine to make memory usage more consistent
 throught the level and decrease overall memory usage
 this also removes most of the stuttering in play

Add test of device speed this should improve very slow devices
 but the threshold might still need tweaked

Change-Id: I49f5269c69405f6b6060ab18f52c96e3f69ebb14
2019-01-24 05:39:38 +01:00
William Wilgus
85079483c5 Lua Boomshine Update with circles + levels
added a few more levels and increased difficulty based on level

Rliimage allows us to use circles in boomshine
Optimized some of the code to exceed the speed of the original

Change-Id: I68eb74f8b68fcdc8a9d022cd172374744425f15d
2018-11-05 00:30:46 -05:00
Christ van Willegen
ea334cf650 Rename 'expanded' to 'expended'. Was this a typo?
Change-Id: I2feaee4225f04e3b93f8ccde555090437238ee0f
2015-04-19 12:23:22 +02:00
Christ van Willegen
926829cba3 Re-seed the random generator for each new game.
Change-Id: I1b814e8475798830d204b4838d98b8b671d93e02
2015-04-08 09:45:02 +02:00
Thomas Martitz
1c5d0b41ee scroll_engine: Rename scroll_stop* functions to be more consistent with the lcd api.
Change-Id: I8ada10b96bfb628cca0331689e8b936ae47c7e1c
2013-12-14 23:11:30 +01:00
Thomas Martitz
7c623d577b Use PLA in boomshine.lua instead of the awkward kbd_input context. This enables it on RaaA.
Change-Id: I616bb39c1e785e39e9369d2ccef45477911bb5a3
2012-01-27 09:15:05 +01:00
Teruaki Kawashima
796ba3ed76 fix FS#11659. wait for user input before exiting the plugin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28253 a1c6a512-1295-4272-9138-f99709370657
2010-10-12 13:56:54 +00:00
Teruaki Kawashima
e726920bde boomshine: improve collision detection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25043 a1c6a512-1295-4272-9138-f99709370657
2010-03-06 12:20:09 +00:00
Maurus Cuelenaere
51d89e2594 Boomshine:
* simplify some things (no functional changes)
 * increase default and exploded ball size a bit to be more compliant with the original game (and make beating it on big screens a bit easier)
 * whitespace cleanups

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23876 a1c6a512-1295-4272-9138-f99709370657
2009-12-06 15:58:18 +00:00
Teruaki Kawashima
f48a61f103 boomshine: use theme colour to draw text so that text would be more readable with white background.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23852 a1c6a512-1295-4272-9138-f99709370657
2009-12-05 13:23:16 +00:00
Robert Kukla
3fa2e88b3f Fix FS#10734 - scoring in boomshine.lua is broken (r23391)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23399 a1c6a512-1295-4272-9138-f99709370657
2009-10-29 11:15:14 +00:00
Kevin Ferrare
8d376d03be Boomshine plugin : make speed and ball sizes adapt to the target screen size to get a constant gameplay
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23398 a1c6a512-1295-4272-9138-f99709370657
2009-10-29 08:40:08 +00:00
Kevin Ferrare
19c3e77fa0 Boomshine plugin : port to Greyscale and B/W targets, and targets without touchscreen (currently using the virtual keyboard keymap)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23397 a1c6a512-1295-4272-9138-f99709370657
2009-10-29 07:48:26 +00:00
Kevin Ferrare
c8f9f9cef8 Boomshine plugin : Better messages at the end of the game (fixes the nblevel+1 being displayed)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23394 a1c6a512-1295-4272-9138-f99709370657
2009-10-29 04:18:29 +00:00
Kevin Ferrare
c4079e0b12 Fixed the Boomshine plugin not to crash when there are no more levels to play
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23392 a1c6a512-1295-4272-9138-f99709370657
2009-10-29 02:21:47 +00:00
Maurus Cuelenaere
4d668c7ae1 Add new Lua touchscreen-only game: Boomshine
Flyspray: FS#10727
Author: myself

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23387 a1c6a512-1295-4272-9138-f99709370657
2009-10-28 22:48:25 +00:00