source: trunk/monsterz/monsterz.h @ 354

Last change on this file since 354 was 354, checked in by sam, 10 years ago

Remove Piece::Blink and implement it as a timer inside Piece.

File size: 2.2 KB
Line 
1//
2// Monsterz
3//
4// Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11#if !defined __MONSTERZ_MONSTERZ_H__
12#define __MONSTERZ_MONSTERZ_H__
13
14static char const * const PNG_BACKGROUND = "monsterz/gfx/background.png";
15static char const * const PNG_BOARD = "monsterz/gfx/board.png";
16static char const * const PNG_LOGO = "monsterz/gfx/logo.png";
17static char const * const PNG_TILES = "monsterz/gfx/tiles.png";
18static char const * const PNG_ICONS = "monsterz/gfx/icons.png";
19static char const * const PNG_TITLE = "monsterz/gfx/title0.png";
20static char const * const PNG_TITLEANIM[] =
21{
22    "monsterz/gfx/titleanim0.png",
23    "monsterz/gfx/titleanim1.png",
24    "monsterz/gfx/titleanim2.png",
25    "monsterz/gfx/titleanim3.png",
26    "monsterz/gfx/titleanim4.png",
27    "monsterz/gfx/titleanim5.png",
28};
29static char const * const PNG_TITLEEVENT[] =
30{
31    "monsterz/gfx/titleevent0.png",
32    "monsterz/gfx/titleevent1.png",
33    "monsterz/gfx/titleevent2.png",
34    "monsterz/gfx/titleevent3.png",
35    "monsterz/gfx/titleevent4.png",
36    "monsterz/gfx/titleevent5.png",
37    "monsterz/gfx/titleevent6.png",
38};
39
40static char const * const WAV_CLICK = "monsterz/sound/click.wav";
41static char const * const WAV_DUH = "monsterz/sound/duh.wav";
42static char const * const WAV_POP = "monsterz/sound/pop.wav";
43static char const * const WAV_WHIP = "monsterz/sound/whip.wav";
44
45/* Maximum board size and number of piece types */
46static int const MAX_WIDTH = 8;
47static int const MAX_HEIGHT = 8;
48static int const MAX_PIECES = 12;
49
50/* Minimal duration of the idle loop */
51static int const DELAY_IDLE = 300;
52/* Minimal delay before a blink */
53static int const DELAY_BLINK = 10000;
54/* Duration of a blink */
55static int const DURATION_BLINK = 200;
56/* Wait time until the next whip sound is allowed */
57static int const DELAY_WHIP = 300;
58/* Delay between a monster's surprise face and its explosion */
59static int const DELAY_DUH = 400;
60/* Duration of the explosion */
61static int const DELAY_POP = 500;
62
63#endif // __MONSTERZ_MONSTERZ_H__
64
Note: See TracBrowser for help on using the repository browser.