Esempio n. 1
0
// Generate the list.  Run at the start, before merging
static void GenerateSpriteList(void)
{
    int i;

    InitSpriteList();

    // Add all sprites from the IWAD
    for (i = 0; i < iwad_sprites.numlumps; ++i)
        AddSpriteLump(&iwad_sprites.lumps[i]);
    // Add all sprites from the PWAD
    // (replaces IWAD sprites)

    for (i = 0; i < pwad_sprites.numlumps; ++i)
    {
        lumpinfo_t      *lump = &pwad_sprites.lumps[i];

        if (lump->wad_file->freedoom &&
            (!strcasecmp(lump->name, "MEDIA0") || !strcasecmp(lump->name, "STIMA0")))
            continue;

        AddSpriteLump(lump);
        if (i < iwad_sprites.numlumps && lump->size != iwad_sprites.lumps[i].size)
        {
            int j = 0;

            while (sproffsets[j].name[0])
            {
                if (!strcasecmp(sproffsets[j].name, lump->name))
                    sproffsets[j].canmodify = false;
                j++;
            }
        }
    }
}
Esempio n. 2
0
// Generate the list. Run at the start, before merging
static void GenerateSpriteList(void)
{
    InitSpriteList();

    // Add all sprites from the IWAD
    for (int i = 0; i < iwad_sprites.numlumps; i++)
        AddSpriteLump(iwad_sprites.lumps[i]);

    // Add all sprites from the PWAD
    // (replaces IWAD sprites)
    for (int i = 0; i < pwad_sprites.numlumps; i++)
        AddSpriteLump(pwad_sprites.lumps[i]);
}
Esempio n. 3
0
void Init_All()
{
  Init_Graphics();
  InitSpriteList();
  Init_Audio();
  InitSoundList();
  atexit(CleanUpAll);
  LoadFonts();
  InitMessages();
  LoadMouse(Cyan,Gold,DarkViolet);
  InitEntityList();
  ResetAllParticles();
  DrawSplashScreen();
  LoadContent();
  NewMap(32, 48,0,15);
  DrawMap();
}
Esempio n. 4
0
void InitAll()
{
	float bgcolor[] = {1,1,1,1};
	InitSpriteList();
	Init_Graphics("Aard:GTS",
    800,
    600,
    800,
    600,
    bgcolor);
	InitEntityList();
	InitKeyData();
	if(!Mix_Init(MIX_INIT_FLAC | MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG))
	{
		printf("Failed to Mix_init");
		exit(1);
	}
	Mix_OpenAudio(22050,MIX_DEFAULT_FORMAT,2,1024 );


}