summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c
AgeCommit message (Collapse)Author
2010-02-27Brickmania: Test if power-up hit side of paddleTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24949 a1c6a512-1295-4272-9138-f99709370657
2010-02-27Brickmania: Use helper function check_rect to test whether ball hits brickTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24948 a1c6a512-1295-4272-9138-f99709370657
2010-02-27use same variable/macro name for highscore among plugins.Teruaki Kawashima
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24941 a1c6a512-1295-4272-9138-f99709370657
2010-02-27Brickmania: Use NUMBER_OF_POWERUPS in enumTomer Shalev
Thanks for kugel and linuxstb for this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24935 a1c6a512-1295-4272-9138-f99709370657
2010-02-27Brickmania: Revert to using intersection checks for testing if powerup hitTomer Shalev
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
2010-02-27Brickmania: Use static whenever possibleTomer Shalev
- Also fix some code styling git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24933 a1c6a512-1295-4272-9138-f99709370657
2010-02-27Brickmania: Fix inner loop used the same variable as outer loop, which trashedTomer Shalev
powerups when paddle hit Normal or Fire powerups git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24932 a1c6a512-1295-4272-9138-f99709370657
2010-02-26Brickmania: Fix NUMBER_OF_POWERUPS and POWER_TYPE_COUNT were used for the ↵Tomer Shalev
same purpose Thanks for Asael Reiter for spotting this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24928 a1c6a512-1295-4272-9138-f99709370657
2010-02-26Brickmania: Re-arrange code (no functional change)Tomer Shalev
- Remove use of typedefs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24927 a1c6a512-1295-4272-9138-f99709370657
2010-02-26Brickmania: Fix wrong power image in shown, caused by previous commitTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24926 a1c6a512-1295-4272-9138-f99709370657
2010-02-26FS#11057 - brickmania: simplify the powerupsTomer Shalev
Author: Asael Reiter Added some changes by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24925 a1c6a512-1295-4272-9138-f99709370657
2010-02-24FS#11049 - Brickmania: Make brick a two-dimensional arrayTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24890 a1c6a512-1295-4272-9138-f99709370657
2010-02-22some changes to use of display_text.Teruaki Kawashima
* 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
2010-02-21Brickmania: Hopefully prevent dissappearing of the ballTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24810 a1c6a512-1295-4272-9138-f99709370657
2010-02-21Brickmania: Use predefined macro definition when possibleTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24809 a1c6a512-1295-4272-9138-f99709370657
2010-02-19FS#10485 - Some changes for brickmaniaTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24775 a1c6a512-1295-4272-9138-f99709370657
2010-02-19Brickmania: Use defines for score valuesTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24771 a1c6a512-1295-4272-9138-f99709370657
2010-02-19Brickmania: Remove spaces at the end of lineTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24769 a1c6a512-1295-4272-9138-f99709370657
2010-02-19Brickmania: Forgotten one more hard-coded valueTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24768 a1c6a512-1295-4272-9138-f99709370657
2010-02-19Brickmania: Use constant for default value and rename variable of flip-sides ↵Tomer Shalev
delay git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24767 a1c6a512-1295-4272-9138-f99709370657
2010-02-19Brickmania: Use constants for number of bricks rows and columns, and for ↵Tomer Shalev
number of levels git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24766 a1c6a512-1295-4272-9138-f99709370657
2010-02-19Brickmania: Use constant for number of firesTomer Shalev
Part of FS#10485 by Asael Reiter git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24764 a1c6a512-1295-4272-9138-f99709370657
2010-02-18Brickmania: Test returned value of file operationsTomer Shalev
This doesn't solve FS#11031, but it's a good practice to test returned values nevertheless. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24759 a1c6a512-1295-4272-9138-f99709370657
2010-02-16Brickmania: Fix FS#10959 - Ball disappearsTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24700 a1c6a512-1295-4272-9138-f99709370657
2010-02-15Brickmania: Fix continue message for Cowon D2Tomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24671 a1c6a512-1295-4272-9138-f99709370657
2010-02-13Packard Bell Vibe 500: More plugin keymaps (second portion).Szymon Dziok
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24634 a1c6a512-1295-4272-9138-f99709370657
2010-02-07Brickmania: Use touchpad actions even if buttons are assigned to them (Cowon D2)Tomer Shalev
Thanks for Strife89DS and pixelma for spotting this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24554 a1c6a512-1295-4272-9138-f99709370657
2010-02-07Cowon D2: Use buttons for Brickmania instead of touchscreen, which hides the ↵Tomer Shalev
paddle git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24553 a1c6a512-1295-4272-9138-f99709370657
2010-01-02Brickmania: Change the drawing/collision detection to simplify position ↵Karl Kurbjun
management. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24140 a1c6a512-1295-4272-9138-f99709370657
2009-12-23Brickmania: Improve screen collision detection.Karl Kurbjun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24100 a1c6a512-1295-4272-9138-f99709370657
2009-12-18Accept a form of FS #10561 by Clément Pit-Claudel: Fullscreen Brickmania ↵Karl Kurbjun
for portrait players. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24062 a1c6a512-1295-4272-9138-f99709370657
2009-12-18Accept FS #10568 by Asael Reiter: Brickmania Lasers not working properly.Karl Kurbjun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24061 a1c6a512-1295-4272-9138-f99709370657
2009-12-15Cowon D2: Rename COWOND2_PAD -> COWON_D2_PAD to match macro used in manual, andTomer Shalev
to target naming conventions in general git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24010 a1c6a512-1295-4272-9138-f99709370657
2009-12-06Correct checking return value of open in plugins.Teruaki Kawashima
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23874 a1c6a512-1295-4272-9138-f99709370657
2009-12-02Red is bad, mmmkay? And this should get rid of all thatRobert Menes
pesky red. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23816 a1c6a512-1295-4272-9138-f99709370657
2009-12-02Begone, red!Robert Menes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23815 a1c6a512-1295-4272-9138-f99709370657
2009-12-02Fix red.Robert Menes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23814 a1c6a512-1295-4272-9138-f99709370657
2009-12-02Start committing plugin keymaps for the Philips GoGear SA9200.Robert Menes
I still have more plugins to finish, but this is an initial start and I can at least get them under version control in case I need to revise any. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23813 a1c6a512-1295-4272-9138-f99709370657
2009-11-03brickmania: fix scrollwheel useRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23492 a1c6a512-1295-4272-9138-f99709370657
2009-10-18Use wrap-safe TIME_BEFORE/TIME_AFTER macros to compare times with ↵Bertrik Sikken
current_time, instead of comparing them directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23246 a1c6a512-1295-4272-9138-f99709370657
2009-10-13brickmania: There are only 9 powerupsRobert Kukla
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23151 a1c6a512-1295-4272-9138-f99709370657
2009-10-09add Seth Opgenorth to docs/CREDITSMichael Chicoine
correct web link in comment git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23023 a1c6a512-1295-4272-9138-f99709370657
2009-10-08FS#10661 by Seth Opgenorth, adding more levels to brickmaniaNils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23012 a1c6a512-1295-4272-9138-f99709370657
2009-10-08Brickmania: Paddle selection needs to be done with the integer portion, not ↵Karl Kurbjun
in fixed point. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23004 a1c6a512-1295-4272-9138-f99709370657
2009-10-08Brickmania: Fix the paddle drawing - The strides were wrong with paddles ↵Karl Kurbjun
other than the standard one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23003 a1c6a512-1295-4272-9138-f99709370657
2009-10-05Brickmania: Add an extra check in the hit logic to make sure that the brick ↵Karl Kurbjun
isn't /hit/ after it has been removed from play. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22938 a1c6a512-1295-4272-9138-f99709370657
2009-10-05Brickmania: Fix the flip_sides powerup on touchscreens.Karl Kurbjun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22937 a1c6a512-1295-4272-9138-f99709370657
2009-10-05Brickmania: Touchscreen improvements - Take advantage of the immediate ↵Karl Kurbjun
button data values. Reduce the wait time if the score needs to count up at the end of a level or game. Make sure the game always yeilds after a frame. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22934 a1c6a512-1295-4272-9138-f99709370657
2009-10-04Brickmania: Some code refactoring - no functional changes.Karl Kurbjun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22931 a1c6a512-1295-4272-9138-f99709370657
2009-10-04Brickmania: Fix the flip-sides powerup with touchscreen and make the whole ↵Karl Kurbjun
gameboard available to position the paddle git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22926 a1c6a512-1295-4272-9138-f99709370657