source: trunk/monsterz/monsterz.h @ 339

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

Implement title screen animations.

File size: 2.1 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/* Duration of the idle loop */
51static int const DELAY_IDLE = 300;
52/* Duration of a blink */
53static int const DELAY_BLINK = 200;
54/* Wait time until the next whip sound is allowed */
55static int const DELAY_WHIP = 300;
56/* Delay between a monster's surprise face and its explosion */
57static int const DELAY_DUH = 400;
58/* Duration of the explosion */
59static int const DELAY_POP = 500;
60
61#endif // __MONSTERZ_MONSTERZ_H__
62
Note: See TracBrowser for help on using the repository browser.