1: /*
2: * Guitar-ZyX(tm)::MasterControlProgram - portable guitar F/X controller
3: * Copyright (C) 2009 Douglas McClendon
4: *
5: * This program is free software: you can redistribute it and/or modify
6: * it under the terms of the GNU General Public License as published by
7: * the Free Software Foundation, version 3 of the License.
8: *
9: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program. If not, see <http://www.gnu.org/licenses/>.
16: */
17: /*
18: #############################################################################
19: #############################################################################
20: #
21: # gzmcpc::mode__tpw__jam: mode__tpw__jam header file
22: #
23: #############################################################################
24: ##
25: ## Copyright 2008-2009 Douglas McClendon <dmc AT filteredperception DOT org>
26: ##
27: #############################################################################
28: #############################################################################
29: #
30: */
31:
32: #ifndef _NDS_CLIENT_MODE__TPW__JAM_H
33: #define _NDS_CLIENT_MODE__TPW__JAM_H
34:
35:
36:
37:
38: #define TPW__JAM__TOP_BG_FADE_IN_START_MS 224
39: #define TPW__JAM__TOP_BG_FADE_IN_DURATION_MS 2000
40: #define TPW__JAM__TOP_BG_FADE_OUT_DURATION_MS 2000
41:
42: #define TPW__JAM__BOT_BG_FADE_IN_START_MS 224
43: #define TPW__JAM__BOT_BG_FADE_IN_DURATION_MS 4000
44: #define TPW__JAM__BOT_BG_FADE_OUT_DURATION_MS 2000
45:
46: #define TPW__JAM__BOT_TXT_FADE_IN_START_MS 2224
47: #define TPW__JAM__BOT_TXT_FADE_IN_DURATION_MS 6996
48: #define TPW__JAM__BOT_TXT_FADE_OUT_DURATION_MS 1000
49:
50: #define TPW__JAM__BOT_3D_FADE_IN_START_MS 500
51: #define TPW__JAM__BOT_3D_FADE_IN_DURATION_MS 6996
52: #define TPW__JAM__BOT_3D_FADE_OUT_DURATION_MS 1000
53:
54: #define TPW_3D_MAX_INTENSITY 255
55:
56: #define INTRO_ANIM_3DSPINZOOM_START 500
57: #define INTRO_ANIM_3DSPINZOOM_DURATION 9000
58: #define INTRO_ANIM_3DSPINZOOM_SCALE_FACTOR 42
59:
60:
61: #define DEFAULT_X_PARM 12
62:
63: #define DEFAULT_Y_PARM 7
64:
65:
66:
67: #define CM_PRESET_A_NUM 10
68:
69:
70: #define CM_PRESET_X_NUM 76
71:
72: #define CM_PRESET_B_NUM 35
73:
74:
75: #define CM_PRESET_Y_NUM 59
76:
77: #define VSTROBE_DEFAULT_BPM 240
78:
79:
80:
81: #include <nds.h>
82:
83: #include "graphics.h"
84:
85:
86:
87:
88:
89:
90:
91: void mode__tpw__jam___init(void);
92: void mode__tpw__jam___top_renderer(void);
93: void mode__tpw__jam___bot_renderer(void);
94: void mode__tpw__jam___input_handler(void);
95: void mode__tpw__jam___idle(void);
96: void mode__tpw__jam___exit(void);
97:
98:
99:
100:
101: extern int touch_whammy_enabled;
102: extern int touch_whammy_x_midi_parm;
103: extern int touch_whammy_y_midi_parm;
104:
105: extern int current_preset;
106:
107: extern int button_x_preset_num;
108: extern int button_y_preset_num;
109: extern int button_a_preset_num;
110: extern int button_b_preset_num;
111:
112:
113: extern uint8 comb_charge[COMB_WIDTH][COMB_HEIGHT];
114:
115: extern unsigned char x3d_intensity;
116:
117: extern v16 model_xcenter;
118: extern v16 model_ycenter;
119: extern v16 model_zcenter;
120: extern v16 model_width;
121: extern v16 model_height;
122: extern v16 model_depth;
123:
124: extern int vstrobe_bpm;
125: extern int vstrobe_enabled;
126: extern int user_vstrobe_enabled;
127:
128:
129: #endif // _NDS_CLIENT_MODE__TPW__JAM_H
130: