10 static void init_struct_functions()
12 Stage.Blt = &DDScrollBuffer_Blt;
13 Stage.ScrollTo = &DDScrollBuffer_ScrollTo;
14 Stage.ScrollTowards = &DDScrollBuffer_ScrollTowards;
15 Stage.SoftScrollTo = &DDScrollBuffer_SoftScrollTo;
17 StretchedSprites.BltEx = &DDSpriteBuffer_BltEx;
18 StretchedSprites.BltImg = &DDSpriteBuffer_BltImg;
21 static void init_global_values()
23 menBorder.Checked = False;
24 menPanel.Checked = True;
25 menAutoScroll.Checked = True;
27 MainForm.picPane.Width = picPane.Width = SCR_FIELDX * TILEX;
28 MainForm.picPane.Height = picPane.Height = SCR_FIELDY * TILEY;
33 init_struct_functions();
38 SetBitmaps_SP(&sp_objects);
41 /* too small for oversized levels, but too big for graphics performance */
42 /* (the whole playfield is drawn/updated, not only visible/scrolled area) */
43 /* !!! FIX THIS !!! */
44 screenBitmap = CreateBitmap(60 * TILEX, 24 * TILEY,
47 screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
51 DDSpriteBuffer_CreateFromFile("[NONE]", 16, 16);
58 unsigned int InitEngineRandom_SP(long seed)
60 if (seed == NEW_RANDOMIZE)
63 printf("::: init.c: InitEngineRandom_SP(): subRandomize()\n");
68 seed = (long)RandomSeed;
71 RandomSeed = (short)seed;
74 printf("::: init.c: InitEngineRandom_SP(): RandomSeed == %d\n", RandomSeed);
77 return (unsigned int) seed;