Logo Search packages:      
Sourcecode: icebreaker version File versions  Download package

icebreaker.h

/*
* IceBreaker
* Copyright (c) 2000-2001 Matthew Miller <mattdm@mattdm.org>
*   http://www.mattdm.org/
*
* 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., 59
* Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/

#define VERSION 1.2.1
#define VERMAJOR 1
#define VERMINOR 2
#define VERSUB 1


#ifndef HISCOREPREFIX
#define HISCOREPREFIX "/var/lib/games"
#endif

#define HISCOREFILE "icebreaker.scores"

#ifndef DATAPREFIX 
#define DATAPREFIX "/usr/local/share/icebreaker"
#endif

#ifndef OPTIONFILE
  #ifdef WIN32
    #define OPTIONFILE "icebreaker.cfg"
  #else
    #define OPTIONFILE ".icebreaker"
  #endif
#endif  

#define SNDFILEOUCH "ouch.wav"
#define SNDFILEBREAK "crash.wav"
#define PENGUINBMPFILE "penguin.bmp"

#ifdef WIN32
  #define PENGUINICONFILE "penguinicon_32.bmp"
#else
  #define PENGUINICONFILE "icebreaker_48.bmp"
#endif

#define BLOCKWIDTH 14
#define BLOCKHEIGHT 14

#define COLS 32
#define ROWS 20

#define PLAYWIDTH (COLS*BLOCKWIDTH)
#define PLAYHEIGHT (ROWS*BLOCKHEIGHT)

#define MARGINTOP 39
#define MARGINBOTTOM 38
#define MARGINLEFT 26
#define MARGINRIGHT 26

/* Centered in 640x480: 
// #define MARGINTOP 100
// #define MARGINBOTTOM 100
// #define MARGINLEFT  96
// #define MARGINRIGHT 96 
*/

#define WIDTH (MARGINLEFT+PLAYWIDTH+MARGINRIGHT)
#define HEIGHT (MARGINTOP+PLAYHEIGHT+MARGINBOTTOM)

#define BORDERTOP    MARGINTOP
#define BORDERBOTTOM (MARGINTOP+PLAYHEIGHT)
#define BORDERLEFT   MARGINLEFT
#define BORDERRIGHT  (MARGINLEFT+PLAYWIDTH)


#define MAXPENGUINS 100

#define PENGUINSPEED 2

#define LINESPEED 2

#define LINEMAXSTUCK 750

#define PERCENTREQUIRED 80
#define PERCENTBONUS 80
#define PERCENTEXTRABONUS 85

#ifndef true
#define true -1
#endif

#ifndef false
#define false 0
#endif

#ifdef WIN32
      #include "win32_compatibility.h"
#endif

#ifdef WIN32
      #define HIDEFULLSCREEN
#endif


Generated by  Doxygen 1.6.0   Back to index