- "00.blank.au",
- "01.roll.au",
- "02.stone.au",
- "03.nut.au",
- "04.crack.au",
- "05.bug.au",
- "06.tank.au",
- "07.android.au",
- "08.spring.au",
- "09.slurp.au",
- "10.eater.au",
- "11.alien.au",
- "12.collect.au",
- "13.diamond.au",
- "14.squash.au",
- "15.drip.au",
- "16.push.au",
- "17.dirt.au",
- "18.acid.au",
- "19.ball.au",
- "20.grow.au",
- "21.wonder.au",
- "22.door.au",
- "23.exit.au",
- "24.dynamite.au",
- "25.tick.au",
- "26.press.au",
- "27.wheel.au",
- "28.boom.au",
- "29.time.au",
- "30.die.au"
-};
-static const int sound_volume[SAMPLE_MAX] =
-{
- 20,
- 100,
- 100,
- 100,
- 100,
- 20,
- 20,
- 100,
- 100,
- 100,
- 50,
- 100,
- 100,
- 100,
- 100,
- 100,
- 100,
- 100,
- 100,
- 100,
- 100,
- 20,
- 100,
- 100,
- 100,
- 100,
- 100,
- 20,
- 100,
- 100,
- 100
-};
-#endif
-
-char *progname;
-char *arg_basedir;
-
-extern void tab_generate();
-extern void ulaw_generate();
-
-int open_all(void)
-{
- Bitmap *emc_bitmaps[2];
-#if 0
- XGCValues gcValues;
-#endif
-
-#if 1
- SetBitmaps_EM(emc_bitmaps);
-
- objBitmap = emc_bitmaps[0];
- sprBitmap = emc_bitmaps[1];
-
-#if 0
- objPixmap = emc_bitmaps[0]->drawable;
- sprPixmap = emc_bitmaps[1]->drawable;
-
- objmaskBitmap = emc_bitmaps[0]->clip_mask;
- sprmaskBitmap = emc_bitmaps[1]->clip_mask;
-#endif
-
- screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
- DEFAULT_DEPTH);
-#endif
-
-#if 0
- spriteBitmap = XCreatePixmap(display, window->drawable, TILEX, TILEY, 1);
- if (spriteBitmap == 0)
- Error(ERR_EXIT, "failed to create sprite pixmap for EM engine");
-
- gcValues.function =
- objmaskBitmap ? GXcopyInverted : sprmaskBitmap ? GXcopy : GXset;
- gcValues.graphics_exposures = False;
- spriteGC = XCreateGC(display, spriteBitmap, GCFunction | GCGraphicsExposures,
- &gcValues);
- if (spriteGC == 0)
- Error(ERR_EXIT, "failed to create sprite GC for EM engine");
-#endif
-
- /* ----------------------------------------------------------------- */
-
-#if defined(AUDIO_UNIX_NATIVE)
-
-#if defined(PLATFORM_LINUX) || defined(PLATFORM_BSD)
-
- if (1)
- {
- char name[MAXNAME+2];
- int i;
-
- for (i = 0; i < SAMPLE_MAX; i++)
- {
- name[MAXNAME] = 0;
-
- if (arg_basedir)
- {
- snprintf(name, MAXNAME+2, "%s/%s/%s", arg_basedir, EM_SND_DIR,
- sound_names[i]);
- }
- else
- {
- snprintf(name, MAXNAME+2, "%s/%s", EM_SND_DIR, sound_names[i]);
- }
-
- if (name[MAXNAME])
- Error(ERR_EXIT, "buffer overflow when reading sounds directory");