home *** CD-ROM | disk | FTP | other *** search
- /*
- Brickoids X -- Simple brick game for MacOS X
- Copyright (C) 1997-2002 Thorlindur Thorolfsson & Sveinbjorn Thordarson
- Soth Development (http://soth.zoneit.com)
-
- Original source code by Thorlindur Thorolfsson
- Porting to MacOS X by Sveinbjorn Thordarson
-
- This software was open-sourced on the 1st of May, 2000.
-
- 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; either version 2 of the License, or
- (at your option) any later version.
-
- 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., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- */
-
- #include <Carbon/Carbon.h>
-
-
- //include this file with every source file except main.c
-
-
- //windows
- extern WindowPtr gameWindow;
-
- //global booleans
- extern Boolean gPlaying;
- extern Boolean gDone;
- extern Boolean gSoundOn;
- extern Boolean gMusicOn;
-
- //Picts
- extern PicHandle startUpPic;
-
- //Sound
- extern SndChannelPtr gameSndChannel;
- extern SndChannelPtr musicChannel;
-
- extern Handle bipSnd;
- extern Handle bopSnd;
- extern Handle breakSnd;
-
- //GWorlds
- extern GWorldPtr workMapPtr;
- extern GWorldPtr gameScreenPtr;
- extern GWorldPtr ballPtr;
- extern GWorldPtr paddlePtr;
- extern GWorldPtr redBrickPtr;
- extern GWorldPtr greenBrickPtr;
- extern GWorldPtr blueBrickPtr;
- extern GWorldPtr pausePtr;
- extern GWorldPtr redNumbersPtr;
- extern GWorldPtr blueNumbersPtr;
- extern GWorldPtr greyNumbersPtr;
-
- //PixMaps
- extern PixMapHandle workMapPix;
- extern PixMapHandle gameScreenPix;
- extern PixMapHandle paddlePix;
- extern PixMapHandle ballPix;
- extern PixMapHandle redBrickPix;
- extern PixMapHandle greenBrickPix;
- extern PixMapHandle blueBrickPix;
- extern PixMapHandle pausePix;
- extern PixMapHandle redNumbersPix;
- extern PixMapHandle blueNumbersPix;
- extern PixMapHandle greyNumbersPix;
- extern PixMapHandle lettersPix;
-
- //Rects
- extern Rect paddleRect;
- extern Rect oldPaddleRect;
- extern Rect ballRect;
- extern Rect oldBallRect;
- extern Rect brickUpdateRects[kMaxBrickRects];
-
- //in-game variables
- extern Point ballVelocity;
- extern short level;
- extern short bricksLeft;
- extern long score;
- extern long hiScore;
-
- //brick layout array
- extern short brickArray[12][10];
-
-
-