![]() |
SpaceBubble
v0.98
|
This file contain all defines. More...
#include <wiiuse/wpad.h>
#include "GRRLIB.h"
Go to the source code of this file.
Data Structures | |
struct | image |
struct | bubble |
struct | explode |
struct | board |
struct | highscore |
struct | topscore |
struct | button |
struct | pointer |
Macros | |
#define | PROGRAM_NAME "SpaceBubble" |
#define | PROGRAM_VERSION "0.98" |
#define | RELEASE_DATE "24-03-2011" |
#define | URL1 "http://www.plaatsoft.nl/service/releasenotes4.html" |
#define | ID1 "UA-6887062-1" |
#define | URL2 "http://www.plaatsoft.nl/service/releasenotes4.html" |
#define | ID2 "UA-6887062-1" |
#define | URL3 "http://www.plaatsoft.nl/service/score_set_today.php" |
#define | ID3 "UA-6887062-1" |
#define | URL4 "http://www.plaatsoft.nl/service/score_set_global.php" |
#define | ID4 "UA-6887062-1" |
#define | URL_TOKEN " Version " |
#define | HIGHSCORE_FILENAME "sd:/apps/SpaceBubble/highscore.xml" |
#define | SETTING_FILENAME "sd:/apps/SpaceBubble/setting.xml" |
#define | TRACE_FILENAME "sd:/apps/SpaceBubble/spacebubble.trc" |
#define | GAME_DIRECTORY "sd:/apps/SpaceBubble/" |
#define | MP3_DIRECTORY "sd:/music/" |
#define | WSP_POINTER_X 200 |
#define | WSP_POINTER_Y 250 |
#define | GRRLIB_WHITESMOKE 0xFFFFFFFF |
#define | GRRLIB_WHITE_TRANS 0xFFFFFF44 |
#define | GRRLIB_LIGHTRED 0x3333FFFF |
#define | GRRLIB_BLACK 0x000000FF |
#define | GRRLIB_BLACK_TRANS 0x00000044 |
#define | GRRLIB_BLACK_TRANS_2 0x000000AA |
#define | GRRLIB_MAROON 0x800000FF |
#define | GRRLIB_GREEN 0x008000FF |
#define | GRRLIB_OLIVE 0x808000FF |
#define | GRRLIB_NAVY 0x000080FF |
#define | GRRLIB_PURPLE 0x800080FF |
#define | GRRLIB_TEAL 0x008080FF |
#define | GRRLIB_GRAY 0x808080FF |
#define | GRRLIB_SILVER 0xC0C0C0FF |
#define | GRRLIB_RED 0xFF0000FF |
#define | GRRLIB_LIME 0x00FF00FF |
#define | GRRLIB_YELLOW 0xFFFF00FF |
#define | GRRLIB_BLUE 0x0000FFFF |
#define | GRRLIB_FUCHSIA 0xFF00FFFF |
#define | GRRLIB_AQUA 0x00FFFFFF |
#define | GRRLIB_WHITE 0xFFFFFFFF |
#define | IMAGE_COLOR 0xFFFFFFFF |
#define | IMAGE_COLOR1 0xEEEEEEEE |
#define | IMAGE_COLOR2 0xDDDDDDDD |
#define | IMAGE_COLOR3 0x44444444 |
#define | IMAGE_COLOR4 0xAAAAAAAA |
#define | MAX_BUTTONS 20 |
#define | MAX_RUMBLE 4 |
#define | MAX_BOARDSIZE 14 |
#define | MAX_BUBBLES (MAX_BOARDSIZE*MAX_BOARDSIZE) |
#define | MAX_HORZ_PIXELS 640 |
#define | MAX_VERT_PIXELS 480 |
#define | MAX_SETTINGS 10 |
#define | MAX_LEVEL 7 |
#define | MAX_LEN 256 |
#define | MAX_ANGLE 360 |
#define | MIN_ALFA 127 |
#define | MAX_ALFA 255 |
#define | MAX_SIZE 1.0 |
#define | MIN_BUBBLE_SIZE 1.0 |
#define | MAX_BUBBLE_SIZE 1.1 |
#define | MAX_SOUND_VOLUME 10 |
#define | MAX_MUSIC_TRACK 9 |
#define | MAX_LINES 200 |
#define | MAX_BUFFER_SIZE 8192 |
#define | MAX_IDLE_TIME 10 |
#define | MAX_POINTER 4 |
#define | MAX_LOCAL_HIGHSCORE 100 |
#define | MAX_TODAY_HIGHSCORE 50 |
#define | MAX_GLOBAL_HIGHSCORE 50 |
#define | EXPLODE_STEP 4 |
#define | OUT_OF_TIME 15 |
#define | IR_X_OFFSET 40 |
#define | IR_Y_OFFSET 40 |
#define | SCROLLBAR_x 600 |
#define | SCROLLBAR_Y_MIN 150 |
#define | SCROLLBAR_Y_MAX 310 |
#define | MUSIC_MULTIPLER 5 |
#define | EFFECT_MULTIPLER 20 |
#define | BUTTON_A (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) |
#define | BUTTON_HOME (WPAD_BUTTON_HOME | WPAD_CLASSIC_BUTTON_HOME) |
#define | BUTTON_1 (WPAD_BUTTON_1 | WPAD_CLASSIC_BUTTON_X) |
#define | BUTTON_2 (WPAD_BUTTON_2 | WPAD_CLASSIC_BUTTON_Y) |
#define | BUTTON_UP (WPAD_BUTTON_UP | WPAD_CLASSIC_BUTTON_UP) |
#define | BUTTON_DOWN (WPAD_BUTTON_DOWN | WPAD_CLASSIC_BUTTON_DOWN) |
#define | BUTTON_LEFT (WPAD_BUTTON_LEFT | WPAD_CLASSIC_BUTTON_LEFT) |
#define | BUTTON_RIGHT (WPAD_BUTTON_RIGHT | WPAD_CLASSIC_BUTTON_RIGHT) |
#define | BUTTON_PLUS (WPAD_BUTTON_PLUS | WPAD_CLASSIC_BUTTON_PLUS) |
Enumerations | |
enum | { stateIntro1 =0, stateIntro2 =1, stateIntro3 =2, stateIntro4 =3, stateMenu =4, stateGame =5, stateLevelCleared =6, stateGameOver =7, stateQuit =8, stateLocalHighScore =9, stateTodayHighScore =10, stateGlobalHighScore =11, stateHelp1 =12, stateHelp2 =13, stateCredits =14, stateSound =15, stateReleaseNotes =16, stateSettings =17, stateDonate =18, stateNone =19 } |
enum | { fontTitle =0, fontSubTitle =1, fontSubTitle2 =2, fontParagraph =3, fontNormal =4, fontSpecial =5, fontNew =6, fontButton =7, fontWelcome =8 } |
Variables | |
image | images |
bubble | bubbles [MAX_BUBBLES+1] |
explode | explodes [MAX_BUBBLES+1] |
board | gameboard [MAX_BUBBLES] |
highscore | localHighScore [MAX_LOCAL_HIGHSCORE+1] |
topscore | todayHighScore [MAX_TODAY_HIGHSCORE+1] |
topscore | globalHighScore [MAX_GLOBAL_HIGHSCORE+1] |
button | buttons [MAX_BUTTONS+1] |
struct { | |
time_t localTime | |
time_t playTime | |
time_t prevPlayTime | |
time_t idleTime | |
int score | |
int level | |
int possiblities | |
int maxTime | |
int bubbleCount | |
int timeBonus | |
int timeBonusFactor | |
int timeBonusScore | |
int bubbleOver | |
int bubbleOverFactor | |
int bubbleOverScore | |
int totalClear | |
int totalClearFactor | |
int totalClearScore | |
int extraBonus | |
int selectScore | |
int rating | |
} | game |
pointer | pointers [MAX_POINTER] |
This file contain all defines.
Copyright (C) 2008-2011 PlaatSoft
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#define BUTTON_1 (WPAD_BUTTON_1 | WPAD_CLASSIC_BUTTON_X) |
#define BUTTON_2 (WPAD_BUTTON_2 | WPAD_CLASSIC_BUTTON_Y) |
#define BUTTON_A (WPAD_BUTTON_A | WPAD_CLASSIC_BUTTON_A) |
#define BUTTON_DOWN (WPAD_BUTTON_DOWN | WPAD_CLASSIC_BUTTON_DOWN) |
#define BUTTON_HOME (WPAD_BUTTON_HOME | WPAD_CLASSIC_BUTTON_HOME) |
#define BUTTON_LEFT (WPAD_BUTTON_LEFT | WPAD_CLASSIC_BUTTON_LEFT) |
#define BUTTON_PLUS (WPAD_BUTTON_PLUS | WPAD_CLASSIC_BUTTON_PLUS) |
#define BUTTON_RIGHT (WPAD_BUTTON_RIGHT | WPAD_CLASSIC_BUTTON_RIGHT) |
#define BUTTON_UP (WPAD_BUTTON_UP | WPAD_CLASSIC_BUTTON_UP) |
#define EFFECT_MULTIPLER 20 |
#define EXPLODE_STEP 4 |
#define GAME_DIRECTORY "sd:/apps/SpaceBubble/" |
#define GRRLIB_AQUA 0x00FFFFFF |
#define GRRLIB_BLACK 0x000000FF |
#define GRRLIB_BLACK_TRANS 0x00000044 |
#define GRRLIB_BLACK_TRANS_2 0x000000AA |
#define GRRLIB_BLUE 0x0000FFFF |
#define GRRLIB_FUCHSIA 0xFF00FFFF |
#define GRRLIB_GRAY 0x808080FF |
#define GRRLIB_GREEN 0x008000FF |
#define GRRLIB_LIGHTRED 0x3333FFFF |
#define GRRLIB_LIME 0x00FF00FF |
#define GRRLIB_MAROON 0x800000FF |
#define GRRLIB_NAVY 0x000080FF |
#define GRRLIB_OLIVE 0x808000FF |
#define GRRLIB_PURPLE 0x800080FF |
#define GRRLIB_RED 0xFF0000FF |
#define GRRLIB_SILVER 0xC0C0C0FF |
#define GRRLIB_TEAL 0x008080FF |
#define GRRLIB_WHITE 0xFFFFFFFF |
#define GRRLIB_WHITE_TRANS 0xFFFFFF44 |
#define GRRLIB_WHITESMOKE 0xFFFFFFFF |
#define GRRLIB_YELLOW 0xFFFF00FF |
#define HIGHSCORE_FILENAME "sd:/apps/SpaceBubble/highscore.xml" |
#define ID1 "UA-6887062-1" |
#define ID2 "UA-6887062-1" |
#define ID3 "UA-6887062-1" |
#define ID4 "UA-6887062-1" |
#define IMAGE_COLOR 0xFFFFFFFF |
#define IMAGE_COLOR1 0xEEEEEEEE |
#define IMAGE_COLOR2 0xDDDDDDDD |
#define IMAGE_COLOR3 0x44444444 |
#define IMAGE_COLOR4 0xAAAAAAAA |
#define IR_X_OFFSET 40 |
#define IR_Y_OFFSET 40 |
#define MAX_ALFA 255 |
#define MAX_ANGLE 360 |
#define MAX_BOARDSIZE 14 |
#define MAX_BUBBLE_SIZE 1.1 |
#define MAX_BUBBLES (MAX_BOARDSIZE*MAX_BOARDSIZE) |
#define MAX_BUFFER_SIZE 8192 |
#define MAX_BUTTONS 20 |
#define MAX_GLOBAL_HIGHSCORE 50 |
#define MAX_HORZ_PIXELS 640 |
#define MAX_IDLE_TIME 10 |
#define MAX_LEN 256 |
#define MAX_LEVEL 7 |
#define MAX_LINES 200 |
#define MAX_LOCAL_HIGHSCORE 100 |
#define MAX_MUSIC_TRACK 9 |
#define MAX_POINTER 4 |
#define MAX_RUMBLE 4 |
#define MAX_SETTINGS 10 |
#define MAX_SIZE 1.0 |
#define MAX_SOUND_VOLUME 10 |
#define MAX_TODAY_HIGHSCORE 50 |
#define MAX_VERT_PIXELS 480 |
#define MIN_ALFA 127 |
#define MIN_BUBBLE_SIZE 1.0 |
#define MP3_DIRECTORY "sd:/music/" |
#define MUSIC_MULTIPLER 5 |
#define OUT_OF_TIME 15 |
#define PROGRAM_NAME "SpaceBubble" |
#define PROGRAM_VERSION "0.98" |
#define RELEASE_DATE "24-03-2011" |
#define SCROLLBAR_x 600 |
#define SCROLLBAR_Y_MAX 310 |
#define SCROLLBAR_Y_MIN 150 |
#define SETTING_FILENAME "sd:/apps/SpaceBubble/setting.xml" |
#define TRACE_FILENAME "sd:/apps/SpaceBubble/spacebubble.trc" |
#define URL1 "http://www.plaatsoft.nl/service/releasenotes4.html" |
#define URL2 "http://www.plaatsoft.nl/service/releasenotes4.html" |
#define URL3 "http://www.plaatsoft.nl/service/score_set_today.php" |
#define URL4 "http://www.plaatsoft.nl/service/score_set_global.php" |
#define URL_TOKEN " Version " |
#define WSP_POINTER_X 200 |
#define WSP_POINTER_Y 250 |
anonymous enum |
anonymous enum |
int bubbleCount |
int bubbleOver |
int bubbleOverFactor |
int bubbleOverScore |
bubble bubbles[MAX_BUBBLES+1] |
button buttons[MAX_BUTTONS+1] |
explode explodes[MAX_BUBBLES+1] |
int extraBonus |
struct { ... } game |
board gameboard[MAX_BUBBLES] |
topscore globalHighScore[MAX_GLOBAL_HIGHSCORE+1] |
time_t idleTime |
image images |
int level |
highscore localHighScore[MAX_LOCAL_HIGHSCORE+1] |
time_t localTime |
int maxTime |
time_t playTime |
pointer pointers[MAX_POINTER] |
int possiblities |
time_t prevPlayTime |
int rating |
int score |
int selectScore |
int timeBonus |
int timeBonusFactor |
int timeBonusScore |
topscore todayHighScore[MAX_TODAY_HIGHSCORE+1] |
int totalClear |
int totalClearFactor |
int totalClearScore |