Functions | Variables

source/pong2.c File Reference

The file contain the Pong2 game core. More...

#include <stdio.h>
#include <gccore.h>
#include <ogcsys.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <wiiuse/wpad.h>
#include <gcmodplay.h>
#include <jpeg/jpgogc.h>
#include <fat.h>
#include <mxml.h>
#include <asndlib.h>
#include "music0_mod.h"
#include "music1_mod.h"
#include "music2_mod.h"
#include "music3_mod.h"
#include "music4_mod.h"
#include "music5_mod.h"
#include "music6_mod.h"
#include "music7_mod.h"
#include "music8_mod.h"
#include "music9_mod.h"
#include "effect1_wav.h"
#include "effect2_wav.h"
#include "effect3_wav.h"
#include "general.h"
#include "light.h"
#include "network.h"
#include "http.h"
#include "trace.h"

Functions

void initGame (void)
void button1x (int channel)
void button2y (int channel)
void buttonHome (int channel)
void musicSelect (bool show)
void initBall (bool direction)
void initLevel (void)
void storeScore (int gameLevel)
void screenScore (int channel)
void screenHelp (int channel)
void loadHighScoreFile (char *filename)
void saveHighScoreFile (char *filename)
void movePlayer2 (void)
void moveBall (void)
void detectCollision (int channel)
void exitGame (bool mode)
void drawEmptyScreen (bool mode)
void drawTime ()
void drawNetworkState ()
void drawScore (void)
void drawLevel (void)
void drawMusicTrack (void)
void drawPaddle (int channel)
void drawBar (void)
void drawReleaseNotes (void)
void drawBall (void)
void drawButtons (void)
void drawGameBoard (void)
void drawPlayerInfo (void)
void drawImage (char *pictureData, int pictureLength, int x, int y)
void drawIntroSceen (int index)
void drawWonMessage (int y)
void drawScreen ()
void buttonDown (int channel)
void buttonUp (int channel)
void buttonRight (int channel)
void buttonLeft (int channel)
void buttonA (int channel)
void buttonActions (int channel)
void detectScore (void)
void initButtons ()
void initReleaseNotes (void)
void doPowerOff (void)
void doPadPowerOff (s32 chan)
void initThreads (void)
void initStateMachine (void)
int main (int argc, char **argv)

Variables

u32 * frameBuffer [1] = {NULL}
GXRModeObj * rmode = NULL
int xMin = 0
int yMin = 0
int xMax = 0
int yMax = 0
int yjpegOffset = 0
int offset = 1
int scrollRange = 100
char appl_user3 [MAX_LEN]
int maxButtons = 0
int buttonSelect = 0
int prevNetworkState = -1
int prevMusicTrack = -1
int stateMachine = stateMenu
int prevStateMachine = stateNone
int musicVolume = 5
int musicTrack = 0
bool bPowerOff = false
char pic0data []
int pic0length
char pic1data []
int pic1length
char pic2data []
int pic2length
char pic3data []
int pic3length
char pic4data []
int pic4length
char pic5data []
int pic5length
char pic6data []
int pic6length
char pic7data []
int pic7length
char pic8data []
int pic8length
char pic9data []
int pic9length
char pic10data []
int pic10length
char pic11data []
int pic11length
char pic12data []
int pic12length
char pic13data []
int pic13length
char pic14data []
int pic14length
char pic16data []
int pic16length
char pic17data []
int pic17length
char pic18data []
int pic18length
char pic19data []
int pic19length

Detailed Description

The file contain the Pong2 game core.

Created by wplaat (www.plaatsoft.nl)

Copyright (C) 2008-2010 =======================

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


Function Documentation

void button1x ( int  channel  ) 
void button2y ( int  channel  ) 
void buttonA ( int  channel  ) 
void buttonActions ( int  channel  ) 
void buttonDown ( int  channel  ) 
void buttonHome ( int  channel  ) 
void buttonLeft ( int  channel  ) 
void buttonRight ( int  channel  ) 
void buttonUp ( int  channel  ) 
void detectCollision ( int  channel  ) 
void detectScore ( void   ) 
void doPadPowerOff ( s32  chan  ) 
void doPowerOff ( void   ) 
void drawBall ( void   ) 
void drawBar ( void   ) 
void drawButtons ( void   ) 
void drawEmptyScreen ( bool  mode  ) 
void drawGameBoard ( void   ) 
void drawImage ( char *  pictureData,
int  pictureLength,
int  x,
int  y 
)
void drawIntroSceen ( int  index  ) 
void drawLevel ( void   ) 
void drawMusicTrack ( void   ) 
void drawNetworkState (  ) 
void drawPaddle ( int  channel  ) 
void drawPlayerInfo ( void   ) 
void drawReleaseNotes ( void   ) 
void drawScore ( void   ) 
void drawScreen (  ) 
void drawTime (  ) 
void drawWonMessage ( int  y  ) 
void exitGame ( bool  mode  ) 
void initBall ( bool  direction  ) 
void initButtons (  ) 
void initGame ( void   ) 
void initLevel ( void   ) 
void initReleaseNotes ( void   ) 
void initStateMachine ( void   ) 
void initThreads ( void   ) 
void loadHighScoreFile ( char *  filename  ) 
int main ( int  argc,
char **  argv 
)
void moveBall ( void   ) 
void movePlayer2 ( void   ) 
void musicSelect ( bool  show  ) 
void saveHighScoreFile ( char *  filename  ) 
void screenHelp ( int  channel  ) 
void screenScore ( int  channel  ) 
void storeScore ( int  gameLevel  ) 

Variable Documentation

char appl_user3[MAX_LEN]
bool bPowerOff = false
int buttonSelect = 0
u32* frameBuffer[1] = {NULL}
int maxButtons = 0
int musicTrack = 0
int musicVolume = 5
int offset = 1
char pic0data[]
char pic10data[]
char pic11data[]
char pic12data[]
char pic13data[]
char pic14data[]
char pic16data[]
char pic17data[]
char pic18data[]
char pic19data[]
char pic1data[]
char pic2data[]
char pic3data[]
char pic4data[]
char pic5data[]
char pic6data[]
char pic7data[]
char pic8data[]
char pic9data[]
int prevMusicTrack = -1
int prevNetworkState = -1
int prevStateMachine = stateNone
GXRModeObj* rmode = NULL
int scrollRange = 100
int stateMachine = stateMenu
int xMax = 0
int xMin = 0
int yjpegOffset = 0
int yMax = 0
int yMin = 0