2 =====================
\r
6 =====================
\r
16 struct Shape FileShape1;
\r
19 struct Shape FileShape2;
\r
23 int bufsave = bufferofs;
\r
24 int dissave = displayofs;
\r
29 // check for launch from ted
\r
34 gamestate.mapon = tedlevelnum;
\r
43 US_SetLoadSaveHooks(LoadGame,SaveGame,ResetGame);
\r
44 restartgame = gd_Continue;
\r
46 if (findfirst("KDREAMS.CMP", &ffblk, 0) == -1)
\r
47 Quit("Couldn't find KDREAMS.CMP");
\r
54 FileName1 = "TITLESCR.LBM";
\r
55 if (LoadLIBShape("KDREAMS.CMP", FileName1, &FileShape1))
\r
56 Quit("Can't load TITLE SCREEN");
\r
58 FileName2 = "CREDITS.LBM";
\r
59 if (LoadLIBShape("KDREAMS.CMP", FileName2, &FileShape2))
\r
60 Quit("Can't load CREDITS SCREEN");
\r
63 while (!restartgame && !loadedgame)
\r
66 VW_InitDoubleBuffer();
\r
74 UnpackEGAShapeToScreen(&FileShape1, 0, 0);
\r
75 VW_ScreenToScreen (64*200,0,40,200);
\r
78 if (IN_UserInput(TickBase * 8, false))
\r
81 if (IN_UserInput(TickBase * 4, false))
\r
87 UnpackEGAShapeToScreen(&FileShape2, 0, 0);
\r
88 VW_ScreenToScreen (64*200,0,40,200);
\r
90 if (IN_UserInput(TickBase * 7, false))
\r
94 UnpackEGAShapeToScreen(&FileShape1, 0, 0);
\r
95 VW_ScreenToScreen (64*200,0,40,200);
\r
97 if (IN_UserInput(TickBase * 3, false))
\r
102 VWB_Bar(0,0,320,200,FIRSTCOLOR);
\r
103 US_DisplayHighScores(-1);
\r
105 if (IN_UserInput(TickBase * 6, false))
\r
110 bufferofs = bufsave;
\r
111 displayofs = dissave;
\r
113 VW_FixRefreshBuffer();
\r
114 US_ControlPanel ();
\r
120 FreeShape(&FileShape1);
\r
122 FreeShape(&FileShape2);
\r