source: trunk/monsterz/monsterz.h @ 1310

Last change on this file since 1310 was 1310, checked in by sam, 8 years ago

core: tick methods now use seconds, like any sane system.

File size: 2.8 KB
Line 
1//
2// Monsterz
3//
4// Copyright: (c) 2005-2012 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_TILES = "monsterz/gfx/tiles.png";
17static char const * const PNG_ELEMENTS = "monsterz/gfx/elements.png";
18static char const * const PNG_ICONS = "monsterz/gfx/icons.png";
19
20static char const * const PNG_TITLE_LOGO = "monsterz/gfx/title/logo.png";
21static char const * const PNG_TITLE_GROUND = "monsterz/gfx/title/ground.png";
22static char const * const PNG_TITLE_ROCKS = "monsterz/gfx/title/rocks.png";
23
24static char const * const PNG_TITLE = "monsterz/gfx/title0.png";
25static char const * const PNG_CLOUDS = "monsterz/gfx/titleclouds.png";
26static char const * const PNG_STARS = "monsterz/gfx/titlestars.png";
27static char const * const PNG_EAGLE = "monsterz/gfx/titleeagle.png";
28static char const * const PNG_TITLEANIM[] =
29{
30    "monsterz/gfx/titleanim0.png",
31    "monsterz/gfx/titleanim1.png",
32    "monsterz/gfx/titleanim2.png",
33    "monsterz/gfx/titleanim3.png",
34    "monsterz/gfx/titleanim4.png",
35    "monsterz/gfx/titleanim5.png",
36};
37static char const * const PNG_TITLEEVENT[] =
38{
39    "monsterz/gfx/titleevent0.png",
40    "monsterz/gfx/titleevent1.png",
41    "monsterz/gfx/titleevent2.png",
42    "monsterz/gfx/titleevent3.png",
43    "monsterz/gfx/titleevent4.png",
44    "monsterz/gfx/titleevent5.png",
45    "monsterz/gfx/titleevent6.png",
46};
47
48static char const * const WAV_CLICK = "monsterz/sound/click.wav";
49static char const * const WAV_DUH = "monsterz/sound/duh.wav";
50static char const * const WAV_POP = "monsterz/sound/pop.wav";
51static char const * const WAV_WHIP = "monsterz/sound/whip.wav";
52
53/* Maximum board size and number of piece types */
54static int const MAX_WIDTH = 8;
55static int const MAX_HEIGHT = 8;
56static int const MAX_PIECES = 12;
57
58/* Time step of the eagle, in seconds per pixel */
59static float const STEP_EAGLE = 0.01f;
60/* Number of clouds on screen */
61static int const MAX_CLOUDS = 10;
62
63/* Minimal duration of the idle loop */
64static float const DELAY_IDLE = 0.3f;
65/* Minimal delay before a blink */
66static float const DELAY_BLINK = 10.f;
67/* Duration of a blink */
68static float const DURATION_BLINK = 0.2f;
69/* Wait time until the next whip sound is allowed */
70static float const DELAY_WHIP = 0.3f;
71/* Delay between a monster's surprise face and its explosion */
72static float const DELAY_DUH = 0.2f;
73/* Duration of the explosion */
74static float const DELAY_POP = 0.5f;
75
76#endif // __MONSTERZ_MONSTERZ_H__
77
Note: See TracBrowser for help on using the repository browser.