summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c (follow)
Commit message (Collapse)AuthorAge
* brickmania: Use short Lvl %d level indicator if neededWieland Hoffmann2012-02-08
| | | | | | Change-Id: Iecbf033f14aeab715f8d0a85131a97ff82943410 Reviewed-on: http://gerrit.rockbox.org/89 Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
* brickmania: Use short L: %d life indicator if neededWieland Hoffmann2012-02-08
| | | | | | | | This is the case if either the player has lots of lifes or a high score Change-Id: Ic4c7011e9fa582d2ae552b28474ba260f2b4cab0 Reviewed-on: http://gerrit.rockbox.org/88 Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
* MPIOs: keymap tweaksMarcin Bukat2012-02-02
| | | | Change-Id: Ic96900c83ffb90df4f6c68a26238f0543cba61cd
* Initial commit of the Samsung YP-R0 port.Thomas Martitz2011-12-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This port is a hybrid native/RaaA port. It runs on a embedded linux system, but is the only application. It therefore can implement lots of stuff that native targets also implement, while leveraging the underlying linux kernel. The port is quite advanced. User interface, audio playback, plugins work mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page). Included in utils/ypr0tools are scripts and programs required to generate a patched firmware. The patched firmware has the rootfs modified to load Rockbox. It includes a early/safe USB mode. This port needs a new toolchain, one that includes glibc headers and libraries. rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may also work. Most of the initial effort is done by Lorenzo Miori and others (on ABI), including reverse engineering and patching of the original firmware, initial drivers, and more. Big thanks to you. Flyspray: FS#12348 Author: Lorenzo Miori, myself Merry christmas to ypr0 owners! :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
* Sandisk Sansa Connect port (FS #12363)Tomasz Moń2011-11-16
| | | | | | | | Included are drivers for buttons, backlight, lcd, audio and storage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31000 a1c6a512-1295-4272-9138-f99709370657
* fuze+: add brickmania keymapAmaury Pouly2011-10-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30654 a1c6a512-1295-4272-9138-f99709370657
* Fix some residual 'defined but not used' warnings by GCC 4.6.0 for ↵Andree Buschmann2011-05-22
| | | | | | touchscreen targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29910 a1c6a512-1295-4272-9138-f99709370657
* RaaA: Fix write locations of pluginsThomas Jarosch2011-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29506 a1c6a512-1295-4272-9138-f99709370657
* * Rename backlight_force_on to backlight_ignore_timeout to make it clear ↵Teruaki Kawashima2011-01-24
| | | | | | | | | | | what the function does. * Add backlight_force_on() which forces to turn on backlight even when the setting is set to Off. use this in lamp. No functional change except lamp. See aslo FS#9883. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29128 a1c6a512-1295-4272-9138-f99709370657
* HD300 - plugins keymapsMarcin Bukat2010-11-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28712 a1c6a512-1295-4272-9138-f99709370657
* Still coming along with HDD6330 plugin keymaps.Robert Menes2010-11-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28466 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD200: rename button defines to adhere how they are labeled on the device.Marcin Bukat2010-11-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28443 a1c6a512-1295-4272-9138-f99709370657
* plugins: use lcd_putsf/lcd_putsxyfRafaël Carré2010-08-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
* Second try: Introduce plugin_crt0.c that every plugin links.Thomas Martitz2010-08-24
| | | | | | | | | | | | | It handles exit() properly, calling the handler also when the plugin returns normally (also make exit() more standard compliant while at it). It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore. To work better together with callbacks passed to rb->default_event_handler_ex() introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it. In most cases rb->default_event_handler_ex() was passed a callback which was manually called at all other return points. This can now be done via atexit(). In future plugin_crt0.c could also handle clearing bss, initializing iram and more. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27873 a1c6a512-1295-4272-9138-f99709370657
* Revert "Introduce plugin_crt0.c that every plugin links."Thomas Martitz2010-08-23
| | | | | | Too much errors and no time to fix them now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27863 a1c6a512-1295-4272-9138-f99709370657
* Introduce plugin_crt0.c that every plugin links.Thomas Martitz2010-08-23
| | | | | | | | | | | | | It handles exit() properly, calling the handler also when the plugin returns normally (also it makes exit() more standard compliant while at it). It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore. To work better together with callbacks passed to rb->default_event_handler_ex introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it. In most cases it was passed a callback which was manually called at all other return points. This can now be done via atexit(). In future plugin_crt0.c could also handle clearing bss, initializing iram and more. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27862 a1c6a512-1295-4272-9138-f99709370657
* Make open() posix compliant api-wise. A few calls (those with O_CREAT) need ↵Thomas Martitz2010-05-06
| | | | | | the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25844 a1c6a512-1295-4272-9138-f99709370657
* Add MPIO HD200 port - changed filesMarcin Bukat2010-04-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Fix bogus firesTomer Shalev2010-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25690 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Use defined constant instead of hard-coded valueTomer Shalev2010-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25689 a1c6a512-1295-4272-9138-f99709370657
* Yet another try at fixing "FS#10959 - Brickmania - Ball disappears"Tomer Shalev2010-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25688 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Fix flip delay was actually N+1 seconds (11 instead of 10)Tomer Shalev2010-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25687 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: No need to init these global variables, as they are set later onTomer Shalev2010-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25686 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Move Congratulations message a bit up, so it won't get clipped ↵Tomer Shalev2010-04-20
| | | | | | by the next line git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25685 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Don't use hard coded valueTomer Shalev2010-03-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25372 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Fix yellowTomer Shalev2010-03-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25358 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Prevent a ball that is sticked to the edge of the pad from being ↵Tomer Shalev2010-03-27
| | | | | | fired outside the screen's region when the pad is moved all the way to the screen's edge git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25357 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Simplify movement of pad (and any balls that are sticked to it)Tomer Shalev2010-03-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25356 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Prevent two overlapping balls from destrying bricks together and ↵Tomer Shalev2010-03-27
| | | | | | stick forever git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25355 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Test if power-up hit side of paddleTomer Shalev2010-02-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24949 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Use helper function check_rect to test whether ball hits brickTomer Shalev2010-02-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24948 a1c6a512-1295-4272-9138-f99709370657
* use same variable/macro name for highscore among plugins.Teruaki Kawashima2010-02-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24941 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Use NUMBER_OF_POWERUPS in enumTomer Shalev2010-02-27
| | | | | | | Thanks for kugel and linuxstb for this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24935 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Revert to using intersection checks for testing if powerup hitTomer Shalev2010-02-27
| | | | | | | | | | | | | | paddle r24925 introduced a potential bug: the collision detection with the paddle is not using the line intersection checks and consequently could cause the powerup to be missed if the drop speed is fast enough (which varies depending on the target because of the speed scaling). Thanks for Karl Kurbjun for noticing and alerting! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24934 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Use static whenever possibleTomer Shalev2010-02-27
| | | | | | | - Also fix some code styling git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24933 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Fix inner loop used the same variable as outer loop, which trashedTomer Shalev2010-02-27
| | | | | | | powerups when paddle hit Normal or Fire powerups git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24932 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Fix NUMBER_OF_POWERUPS and POWER_TYPE_COUNT were used for the ↵Tomer Shalev2010-02-26
| | | | | | | | | same purpose Thanks for Asael Reiter for spotting this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24928 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Re-arrange code (no functional change)Tomer Shalev2010-02-26
| | | | | | | - Remove use of typedefs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24927 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Fix wrong power image in shown, caused by previous commitTomer Shalev2010-02-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24926 a1c6a512-1295-4272-9138-f99709370657
* FS#11057 - brickmania: simplify the powerupsTomer Shalev2010-02-26
| | | | | | | | | Author: Asael Reiter Added some changes by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24925 a1c6a512-1295-4272-9138-f99709370657
* FS#11049 - Brickmania: Make brick a two-dimensional arrayTomer Shalev2010-02-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24890 a1c6a512-1295-4272-9138-f99709370657
* some changes to use of display_text.Teruaki Kawashima2010-02-22
| | | | | | | | | | * add parameter, wait_key to display_text(). - set this true to wait button press after all words is displayed. * use ARRAYLEN macro instead of #define WORDS * add macro to indicate end of style array. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24846 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Hopefully prevent dissappearing of the ballTomer Shalev2010-02-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24810 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Use predefined macro definition when possibleTomer Shalev2010-02-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24809 a1c6a512-1295-4272-9138-f99709370657
* FS#10485 - Some changes for brickmaniaTomer Shalev2010-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24775 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Use defines for score valuesTomer Shalev2010-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24771 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Remove spaces at the end of lineTomer Shalev2010-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24769 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Forgotten one more hard-coded valueTomer Shalev2010-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24768 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Use constant for default value and rename variable of flip-sides ↵Tomer Shalev2010-02-19
| | | | | | delay git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24767 a1c6a512-1295-4272-9138-f99709370657
* Brickmania: Use constants for number of bricks rows and columns, and for ↵Tomer Shalev2010-02-19
| | | | | | number of levels git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24766 a1c6a512-1295-4272-9138-f99709370657