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;
20 static void init_global_values()
22 menBorder.Checked = False;
23 menPanel.Checked = True;
24 menAutoScroll.Checked = True;
26 MainForm.picPane.Width = picPane.Width = SCR_FIELDX * TILEX;
27 MainForm.picPane.Height = picPane.Height = SCR_FIELDY * TILEY;
32 init_struct_functions();
37 SetBitmaps_SP(&sp_objects);
40 /* too small for oversized levels, but too big for graphics performance */
41 /* (the whole playfield is drawn/updated, not only visible/scrolled area) */
42 /* !!! FIX THIS !!! */
43 screenBitmap = CreateBitmap(60 * TILEX, 24 * TILEY,
46 screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
50 DDSpriteBuffer_CreateFromFile("[NONE]", 16, 16);
57 unsigned int InitEngineRandom_SP(long seed)
59 if (seed == NEW_RANDOMIZE)
62 printf("::: init.c: InitEngineRandom_SP(): subRandomize()\n");
67 seed = (long)RandomSeed;
70 RandomSeed = (short)seed;
73 printf("::: init.c: InitEngineRandom_SP(): RandomSeed == %d\n", RandomSeed);
76 return (unsigned int) seed;