11 #include "gameglobals.h"
16 static void scrDrawCrashMask (SDL_Surface
*frame
, int phase
) {
24 SDL_FillRect(frame
, &dst
, palette
[0]);
25 } else if (phase
< 5) {
26 for (int y
= 0; y
< 20; ++y
) {
27 for (int x
= 0; x
< 16; ++x
) {
28 blitSurface2x(frame
, x
*20, y
*10, banks
[CONST_BANK_FG_TILES
].spr
[16-phase
][0]);
35 static void frmTitleDraw (SDL_Surface
*frame
) {
36 blitSurface(frame
, 0, 0, backs
[0]);
37 scrDrawCrashMask(frame
, vmGVars
[GVAR_TITLE_PHASE
]);
41 static void frmTitleKey (SDL_KeyboardEvent
*key
) {
42 if (key
->type
== SDL_KEYDOWN
) {
43 switch (key
->keysym
.sym
) {
46 vmGVars
[GVAR_KEY_QUIT
] = 1;
50 vmGVars
[GVAR_KEY_START
] = 1;
58 void setMainLoopTitle (void) {
59 frameCB
= frmTitleDraw
;