From: sparky4 Date: Wed, 12 Sep 2018 16:51:17 +0000 (-0500) Subject: not done making demohp.c. i gotta get the files to the other lappy4 X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=2da5ee10900a99b8a7f71eb53df7151e200cd4a9;p=16.git not done making demohp.c. i gotta get the files to the other lappy4 --- diff --git a/_gamesta.txt b/_gamesta.txt new file mode 100755 index 00000000..87ab5228 --- /dev/null +++ b/_gamesta.txt @@ -0,0 +1,649 @@ +------------------------------------------------------------------------------- + ./qkeen.sh start +------------------------------------------------------------------------------- +16/keen/id_us.c:// US_CheckHighScore() - Checks gamestate to see if the just-ended game +16/keen/kd_act1.c: if ( (ob->temp3+=tics) >= flowertime[gamestate.difficulty]) +16/keen/kd_demo.c: gamestate.worldx = 0; // spawn keen at starting spot +16/keen/kd_demo.c: gamestate.mapon = 0; +16/keen/kd_demo.c: gamestate.score = 0; +16/keen/kd_demo.c: gamestate.nextextra = 20000; +16/keen/kd_demo.c: gamestate.lives = 3; +16/keen/kd_demo.c: gamestate.flowerpowers = gamestate.boobusbombs = 0; +16/keen/kd_demo.c: gamestate.leveldone[i] = false; +16/keen/kd_demo.c: US_PrintUnsigned(gamestate.lives); +16/keen/kd_demo.c: US_PrintUnsigned(gamestate.boobusbombs); +16/keen/kd_demo.c: US_PrintUnsigned(gamestate.nextextra); +16/keen/kd_demo.c: US_PrintUnsigned(gamestate.keys); +16/keen/kd_demo.c: if (!CA_FarWrite(file,(void far *)&gamestate,sizeof(gamestate))) +16/keen/kd_demo.c: if (!CA_FarRead(file,(void far *)&gamestate,sizeof(gamestate))) +16/keen/kd_demo.c: gamestate.mapon = tedlevelnum; +16/keen/kd_keen.c: if ((gamestate.score>>16) != ob->temp1 +16/keen/kd_keen.c: || (unsigned)gamestate.score != ob->temp2 ) +16/keen/kd_keen.c: ltoa (gamestate.score,str,10); +16/keen/kd_keen.c: ob->temp1 = gamestate.score>>16; +16/keen/kd_keen.c: ob->temp2 = gamestate.score; +16/keen/kd_keen.c: number = gamestate.boobusbombs; +16/keen/kd_keen.c: number = gamestate.flowerpowers; +16/keen/kd_keen.c: ob->temp3 = gamestate.flowerpowers; +16/keen/kd_keen.c: if (gamestate.lives != ob->temp4) +16/keen/kd_keen.c: if (gamestate.lives>9) +16/keen/kd_keen.c: MemDrawChar (gamestate.lives +1,dest,width,planesize); +16/keen/kd_keen.c: ob->temp4 = gamestate.lives; +16/keen/kd_keen.c: if (!gamestate.boobusbombs) +16/keen/kd_keen.c: gamestate.bombsthislevel--; +16/keen/kd_keen.c: gamestate.boobusbombs--; +16/keen/kd_keen.c: if (!gamestate.flowerpowers) +16/keen/kd_keen.c: gamestate.flowerpowers--; +16/keen/kd_keen.c: if (!gamestate.worldx) +16/keen/kd_keen.c: player->x = gamestate.worldx; +16/keen/kd_keen.c: player->y = gamestate.worldy; +16/keen/kd_keen.c: if (gamestate.boobusbombs < 12) +16/keen/kd_keen.c: gamestate.worldx = ob->x; +16/keen/kd_keen.c: gamestate.worldy = ob->y; +16/keen/kd_keen.c: gamestate.mapon = tile-2; +16/keen/kd_keen.c: gamestate.lives++; +16/keen/kd_keen.c: gamestate.lives+=3; +16/keen/kd_keen.c: gamestate.flowerpowers+=8; +16/keen/kd_keen.c: gamestate.flowerpowers++; +16/keen/kd_keen.c: gamestate.flowerpowers+=5; +16/keen/kd_keen.c: gamestate.boobusbombs++; +16/keen/kd_keen.c: gamestate.bombsthislevel++; +16/keen/kd_keen.c: gamestate.keys++; +16/keen/kd_keen.c: if (gamestate.keys) +16/keen/kd_keen.c: gamestate.keys--; +16/keen/kd_main.c: gamestate.boobusbombs=99; +16/keen/kd_main.c: gamestate.flowerpowers=99; +16/keen/kd_main.c: gamestate.keys=99; +16/keen/kd_main.c: gamestate.mapon = level; +16/keen/kd_play.c:gametype gamestate; +16/keen/kd_play.c: if (info>=3 && info<=18 && gamestate.leveldone[info-2]) +16/keen/kd_play.c: CA_CacheMap (gamestate.mapon); +16/keen/kd_play.c: gamestate.score += points; +16/keen/kd_play.c: if (gamestate.score >= gamestate.nextextra) +16/keen/kd_play.c: gamestate.lives++; +16/keen/kd_play.c: gamestate.nextextra*=2; +16/keen/kd_play.c: gamestate.keys = 0; +16/keen/kd_play.c: gamestate.boobusbombs -= gamestate.bombsthislevel; +16/keen/kd_play.c: gamestate.lives--; +16/keen/kd_play.c: if (gamestate.lives < 0) +16/keen/kd_play.c: gamestate.mapon = 0; // exit to tuberia +16/keen/kd_play.c: gamestate.mapon = 0; // exit to tuberia +16/keen/kd_play.c: gamestate.difficulty = restartgame; +16/keen/kd_play.c: gamestate.bombsthislevel = 0; +16/keen/kd_play.c: gamestate.leveldone[mapon] = true; // finished the level +16/keen/kd_play.c: gamestate.mapon = 0; +16/keen/kd_play.c: } while (gamestate.lives>-1 && playstate!=victorious); +16/keen/kd_play.c: if (gamestate.leveldone[i]) +16/keen/kd_play.c: US_CheckHighScore (gamestate.score,cities); +16/keen/kd_def.h:extern gametype gamestate; +=============== ./qkeen.sh end =============== +------------------------------------------------------------------------------- + ./qwolf.sh start +------------------------------------------------------------------------------- +==== 16/wf3d8086 ==== +16/wf3d8086/wl_act1.c: gamestate.treasuretotal++; +16/wf3d8086/wl_act1.c: if ( ! (gamestate.keys & (1 << (lock-dr_lock1) ) ) ) +16/wf3d8086/wl_act1.c: if (gamestate.victoryflag) // don't move door during victory sequence +16/wf3d8086/wl_act1.c: gamestate.secretcount++; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][which]; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_boss]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_gretel]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][which]; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_trans]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_uber]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_will]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_death]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_angel]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_spectre]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_schabbs]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_gift]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_fat]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_fake]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = starthitpoints[gamestate.difficulty][en_hitler]; +16/wf3d8086/wl_act2.c: gamestate.killtotal++; +16/wf3d8086/wl_act2.c: new->hitpoints = hitpoints[gamestate.difficulty]; +16/wf3d8086/wl_act2.c: if (gamestate.victoryflag) +16/wf3d8086/wl_act2.c: if (gamestate.victoryflag) +16/wf3d8086/wl_act2.c: gamestate.victoryflag = true; +16/wf3d8086/wl_act2.c: player->x = gamestate.killx; +16/wf3d8086/wl_act2.c: player->y = gamestate.killy; +16/wf3d8086/wl_agent.c: if (!gamestate.ammo) // must use knife with no ammo +16/wf3d8086/wl_agent.c: for (i=wp_knife ; i<=gamestate.bestweapon ; i++) +16/wf3d8086/wl_agent.c: gamestate.weapon = gamestate.chosenweapon = i; +16/wf3d8086/wl_agent.c: if (gamestate.victoryflag) // watching the BJ actor +16/wf3d8086/wl_agent.c: if (gamestate.health) +16/wf3d8086/wl_agent.c: StatusDrawPic (17,4,GODMODEFACE1PIC+gamestate.faceframe); +16/wf3d8086/wl_agent.c: StatusDrawPic (17,4,FACE1APIC+3*((100-gamestate.health)/16)+gamestate.faceframe); +16/wf3d8086/wl_agent.c: gamestate.faceframe = (US_RndT()>>6); +16/wf3d8086/wl_agent.c: if (gamestate.faceframe==3) +16/wf3d8086/wl_agent.c: gamestate.faceframe = 1; +16/wf3d8086/wl_agent.c: LatchNumber (21,16,3,gamestate.health); +16/wf3d8086/wl_agent.c: if (gamestate.victoryflag) +16/wf3d8086/wl_agent.c: if (gamestate.difficulty==gd_baby) +16/wf3d8086/wl_agent.c: gamestate.health -= points; +16/wf3d8086/wl_agent.c: if (gamestate.health<=0) +16/wf3d8086/wl_agent.c: gamestate.health = 0; +16/wf3d8086/wl_agent.c: if (points > 30 && gamestate.health!=0 && !godmode) +16/wf3d8086/wl_agent.c: gamestate.health += points; +16/wf3d8086/wl_agent.c: if (gamestate.health>100) +16/wf3d8086/wl_agent.c: gamestate.health = 100; +16/wf3d8086/wl_agent.c: if (gamestate.mapon == 20) +16/wf3d8086/wl_agent.c: LatchNumber (2,16,2,gamestate.mapon+1); +16/wf3d8086/wl_agent.c: LatchNumber (14,16,1,gamestate.lives); +16/wf3d8086/wl_agent.c: if (gamestate.lives<9) +16/wf3d8086/wl_agent.c: gamestate.lives++; +16/wf3d8086/wl_agent.c: LatchNumber (6,16,6,gamestate.score); +16/wf3d8086/wl_agent.c: gamestate.score += points; +16/wf3d8086/wl_agent.c: while (gamestate.score >= gamestate.nextextra) +16/wf3d8086/wl_agent.c: gamestate.nextextra += EXTRAPOINTS; +16/wf3d8086/wl_agent.c: StatusDrawPic (32,8,KNIFEPIC+gamestate.weapon); +16/wf3d8086/wl_agent.c: if (gamestate.keys & 1) +16/wf3d8086/wl_agent.c: if (gamestate.keys & 2) +16/wf3d8086/wl_agent.c: if (gamestate.bestweapon 99) +16/wf3d8086/wl_agent.c: gamestate.ammo = 99; +16/wf3d8086/wl_agent.c: gamestate.keys |= (1<10) +16/wf3d8086/wl_agent.c: gamestate.victoryflag = true; +16/wf3d8086/wl_agent.c: gamestate.weaponframe = 0; +16/wf3d8086/wl_agent.c: gamestate.attackframe = 0; +16/wf3d8086/wl_agent.c: gamestate.attackcount = +16/wf3d8086/wl_agent.c: attackinfo[gamestate.weapon][gamestate.attackframe].tics; +16/wf3d8086/wl_agent.c: gamestate.weaponframe = +16/wf3d8086/wl_agent.c: attackinfo[gamestate.weapon][gamestate.attackframe].frame; +16/wf3d8086/wl_agent.c: switch (gamestate.weapon) +16/wf3d8086/wl_agent.c: if (gamestate.victoryflag) // watching the BJ actor +16/wf3d8086/wl_agent.c: if (gamestate.victoryflag) // watching the BJ actor +16/wf3d8086/wl_agent.c: gamestate.attackcount -= tics; +16/wf3d8086/wl_agent.c: while (gamestate.attackcount <= 0) +16/wf3d8086/wl_agent.c: cur = &attackinfo[gamestate.weapon][gamestate.attackframe]; +16/wf3d8086/wl_agent.c: if (!gamestate.ammo) +16/wf3d8086/wl_agent.c: gamestate.weapon = wp_knife; +16/wf3d8086/wl_agent.c: if (gamestate.weapon != gamestate.chosenweapon) +16/wf3d8086/wl_agent.c: gamestate.weapon = gamestate.chosenweapon; +16/wf3d8086/wl_agent.c: gamestate.attackframe = gamestate.weaponframe = 0; +16/wf3d8086/wl_agent.c: if (!gamestate.ammo) +16/wf3d8086/wl_agent.c: gamestate.attackframe -= 2; +16/wf3d8086/wl_agent.c: if (!gamestate.ammo) +16/wf3d8086/wl_agent.c: gamestate.attackframe++; +16/wf3d8086/wl_agent.c: gamestate.ammo--; +16/wf3d8086/wl_agent.c: if (gamestate.ammo && buttonstate[bt_attack]) +16/wf3d8086/wl_agent.c: gamestate.attackframe -= 2; +16/wf3d8086/wl_agent.c: gamestate.attackcount += cur->tics; +16/wf3d8086/wl_agent.c: gamestate.attackframe++; +16/wf3d8086/wl_agent.c: gamestate.weaponframe = +16/wf3d8086/wl_agent.c: attackinfo[gamestate.weapon][gamestate.attackframe].frame; +16/wf3d8086/wl_agent.c: if (gamestate.victoryflag) // watching the BJ actor +16/wf3d8086/wl_agent.c: if (gamestate.victoryflag) // watching the BJ actor +16/wf3d8086/wl_debug.c:// gamestate.mapon++; +16/wf3d8086/wl_debug.c: if (gamestate.bestweapon 99) +16/wf3d8086/wl_debug.c: gamestate.ammo = 99; +16/wf3d8086/wl_debug.c: gamestate.mapon = level-1; +16/wf3d8086/wl_draw.c: unsigned floor=egaFloor[gamestate.episode*10+mapon], +16/wf3d8086/wl_draw.c: ceiling=egaCeiling[gamestate.episode*10+mapon]; +16/wf3d8086/wl_draw.c: unsigned ceiling=vgaCeiling[gamestate.episode*10+mapon]; +16/wf3d8086/wl_draw.c: if (gamestate.victoryflag) +16/wf3d8086/wl_draw.c: if (gamestate.weapon != -1) +16/wf3d8086/wl_draw.c: shapenum = weaponscale[gamestate.weapon]+gamestate.weaponframe; +16/wf3d8086/wl_game.c:gametype gamestate; +16/wf3d8086/wl_game.c: gamestate.secrettotal++; +16/wf3d8086/wl_game.c: if (gamestate.difficulty -1) +16/wf3d8086/wl_game.c: gamestate.health = 100; +16/wf3d8086/wl_game.c: gamestate.weapon = gamestate.bestweapon +16/wf3d8086/wl_game.c: = gamestate.chosenweapon = wp_pistol; +16/wf3d8086/wl_game.c: gamestate.ammo = STARTAMMO; +16/wf3d8086/wl_game.c: gamestate.keys = 0; +16/wf3d8086/wl_game.c: gamestate.attackframe = gamestate.attackcount = +16/wf3d8086/wl_game.c: gamestate.weaponframe = 0; +16/wf3d8086/wl_game.c: gamestate.score = gamestate.oldscore; +16/wf3d8086/wl_game.c: if (gamestate.mapon == 20) // give them the key allways +16/wf3d8086/wl_game.c: gamestate.keys |= 1; +16/wf3d8086/wl_game.c: gamestate.oldscore = gamestate.score; +16/wf3d8086/wl_game.c: gamestate.mapon = 20; +16/wf3d8086/wl_game.c: gamestate.keys = 0; +16/wf3d8086/wl_game.c: if (gamestate.mapon == 1) +16/wf3d8086/wl_game.c: CheckHighScore (gamestate.score,gamestate.mapon+1); +16/wf3d8086/wl_game.c: if (gamestate.mapon == 3) +16/wf3d8086/wl_game.c: CheckHighScore (gamestate.score,gamestate.mapon+1); +16/wf3d8086/wl_game.c: gamestate.oldscore = gamestate.score; +16/wf3d8086/wl_game.c: if (gamestate.mapon == 9) +16/wf3d8086/wl_game.c: gamestate.mapon = ElevatorBackTo[gamestate.episode]; // back from secret +16/wf3d8086/wl_game.c: gamestate.mapon = 9; +16/wf3d8086/wl_game.c: switch(gamestate.mapon) +16/wf3d8086/wl_game.c: case FROMSECRET1: gamestate.mapon = 18; break; +16/wf3d8086/wl_game.c: case FROMSECRET2: gamestate.mapon = 19; break; +16/wf3d8086/wl_game.c: if (gamestate.mapon == 18 || gamestate.mapon == 19) +16/wf3d8086/wl_game.c: switch(gamestate.mapon) +16/wf3d8086/wl_game.c: case 18: gamestate.mapon = FROMSECRET1+1; break; +16/wf3d8086/wl_game.c: case 19: gamestate.mapon = FROMSECRET2+1; break; +16/wf3d8086/wl_game.c: gamestate.mapon++; +16/wf3d8086/wl_game.c: if (gamestate.lives > -1) +16/wf3d8086/wl_game.c: CheckHighScore (gamestate.score,gamestate.mapon+1); +16/wf3d8086/wl_game.c: CheckHighScore (gamestate.score,gamestate.mapon+1); +16/wf3d8086/wl_inter.c: if (gamestate.difficulty>=gd_medium) +16/wf3d8086/wl_inter.c: Write(26,2,itoa(gamestate.mapon+1,tempstr,10)); +16/wf3d8086/wl_inter.c: Write(30,12,parTimes[gamestate.episode*10+mapon].timestr); +16/wf3d8086/wl_inter.c: Write(26,12,parTimes[gamestate.episode*10+mapon].timestr); +16/wf3d8086/wl_inter.c: sec=gamestate.TimeCount/70; +16/wf3d8086/wl_inter.c: if (gamestate.TimeCountx; +16/wf3d8086/wl_state.c: gamestate.killy = player->y; +16/wf3d8086/wl_state.c: gamestate.killx = player->x; +16/wf3d8086/wl_state.c: gamestate.killy = player->y; +16/wf3d8086/wl_state.c: gamestate.killx = player->x; +16/wf3d8086/wl_state.c: gamestate.killy = player->y; +16/wf3d8086/wl_state.c: gamestate.killx = player->x; +16/wf3d8086/wl_state.c: gamestate.killy = player->y; +16/wf3d8086/wl_state.c: gamestate.killcount++; +16/wf3d8086/wl_text.c: ShowArticle(gamestate.episode + 1); +16/wf3d8086/wl_text.c: artnum = endextern+gamestate.episode; +16/wf3d8086/wl_text.c: endfilename[6] = '1'+gamestate.episode; +16/wf3d8086/wl_def.h:// gamestate structure +16/wf3d8086/wl_def.h:extern gametype gamestate; +==== 16/wolf3d/WOLFSRC ==== +16/wolf3d/WOLFSRC/WL_ACT1.C: gamestate.treasuretotal++; +16/wolf3d/WOLFSRC/WL_ACT1.C: if ( ! (gamestate.keys & (1 << (lock-dr_lock1) ) ) ) +16/wolf3d/WOLFSRC/WL_ACT1.C: if (gamestate.victoryflag) // don't move door during victory sequence +16/wolf3d/WOLFSRC/WL_ACT1.C: gamestate.secretcount++; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][which]; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_boss]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_gretel]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][which]; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_trans]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_uber]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_will]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_death]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_angel]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_spectre]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_schabbs]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_gift]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_fat]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_fake]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = starthitpoints[gamestate.difficulty][en_hitler]; +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.killtotal++; +16/wolf3d/WOLFSRC/WL_ACT2.C: new->hitpoints = hitpoints[gamestate.difficulty]; +16/wolf3d/WOLFSRC/WL_ACT2.C: if (gamestate.victoryflag) +16/wolf3d/WOLFSRC/WL_ACT2.C: if (gamestate.victoryflag) +16/wolf3d/WOLFSRC/WL_ACT2.C: gamestate.victoryflag = true; +16/wolf3d/WOLFSRC/WL_ACT2.C: player->x = gamestate.killx; +16/wolf3d/WOLFSRC/WL_ACT2.C: player->y = gamestate.killy; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (!gamestate.ammo) // must use knife with no ammo +16/wolf3d/WOLFSRC/WL_AGENT.C: for (i=wp_knife ; i<=gamestate.bestweapon ; i++) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.weapon = gamestate.chosenweapon = i; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.victoryflag) // watching the BJ actor +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.health) +16/wolf3d/WOLFSRC/WL_AGENT.C: StatusDrawPic (17,4,GODMODEFACE1PIC+gamestate.faceframe); +16/wolf3d/WOLFSRC/WL_AGENT.C: StatusDrawPic (17,4,FACE1APIC+3*((100-gamestate.health)/16)+gamestate.faceframe); +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.faceframe = (US_RndT()>>6); +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.faceframe==3) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.faceframe = 1; +16/wolf3d/WOLFSRC/WL_AGENT.C: LatchNumber (21,16,3,gamestate.health); +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.victoryflag) +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.difficulty==gd_baby) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.health -= points; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.health<=0) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.health = 0; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (points > 30 && gamestate.health!=0 && !godmode) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.health += points; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.health>100) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.health = 100; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.mapon == 20) +16/wolf3d/WOLFSRC/WL_AGENT.C: LatchNumber (2,16,2,gamestate.mapon+1); +16/wolf3d/WOLFSRC/WL_AGENT.C: LatchNumber (14,16,1,gamestate.lives); +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.lives<9) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.lives++; +16/wolf3d/WOLFSRC/WL_AGENT.C: LatchNumber (6,16,6,gamestate.score); +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.score += points; +16/wolf3d/WOLFSRC/WL_AGENT.C: while (gamestate.score >= gamestate.nextextra) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.nextextra += EXTRAPOINTS; +16/wolf3d/WOLFSRC/WL_AGENT.C: StatusDrawPic (32,8,KNIFEPIC+gamestate.weapon); +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.keys & 1) +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.keys & 2) +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.bestweapon 99) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.ammo = 99; +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.keys |= (1<10) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.victoryflag = true; +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.weaponframe = 0; +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.attackframe = 0; +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.attackcount = +16/wolf3d/WOLFSRC/WL_AGENT.C: attackinfo[gamestate.weapon][gamestate.attackframe].tics; +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.weaponframe = +16/wolf3d/WOLFSRC/WL_AGENT.C: attackinfo[gamestate.weapon][gamestate.attackframe].frame; +16/wolf3d/WOLFSRC/WL_AGENT.C: switch (gamestate.weapon) +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.victoryflag) // watching the BJ actor +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.victoryflag) // watching the BJ actor +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.attackcount -= tics; +16/wolf3d/WOLFSRC/WL_AGENT.C: while (gamestate.attackcount <= 0) +16/wolf3d/WOLFSRC/WL_AGENT.C: cur = &attackinfo[gamestate.weapon][gamestate.attackframe]; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (!gamestate.ammo) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.weapon = wp_knife; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.weapon != gamestate.chosenweapon) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.weapon = gamestate.chosenweapon; +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.attackframe = gamestate.weaponframe = 0; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (!gamestate.ammo) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.attackframe -= 2; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (!gamestate.ammo) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.attackframe++; +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.ammo--; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.ammo && buttonstate[bt_attack]) +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.attackframe -= 2; +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.attackcount += cur->tics; +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.attackframe++; +16/wolf3d/WOLFSRC/WL_AGENT.C: gamestate.weaponframe = +16/wolf3d/WOLFSRC/WL_AGENT.C: attackinfo[gamestate.weapon][gamestate.attackframe].frame; +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.victoryflag) // watching the BJ actor +16/wolf3d/WOLFSRC/WL_AGENT.C: if (gamestate.victoryflag) // watching the BJ actor +16/wolf3d/WOLFSRC/WL_DEBUG.C:// gamestate.mapon++; +16/wolf3d/WOLFSRC/WL_DEBUG.C: if (gamestate.bestweapon 99) +16/wolf3d/WOLFSRC/WL_DEBUG.C: gamestate.ammo = 99; +16/wolf3d/WOLFSRC/WL_DEBUG.C: gamestate.mapon = level-1; +16/wolf3d/WOLFSRC/WL_DRAW.C: unsigned floor=egaFloor[gamestate.episode*10+mapon], +16/wolf3d/WOLFSRC/WL_DRAW.C: ceiling=egaCeiling[gamestate.episode*10+mapon]; +16/wolf3d/WOLFSRC/WL_DRAW.C: unsigned ceiling=vgaCeiling[gamestate.episode*10+mapon]; +16/wolf3d/WOLFSRC/WL_DRAW.C: if (gamestate.victoryflag) +16/wolf3d/WOLFSRC/WL_DRAW.C: if (gamestate.weapon != -1) +16/wolf3d/WOLFSRC/WL_DRAW.C: shapenum = weaponscale[gamestate.weapon]+gamestate.weaponframe; +16/wolf3d/WOLFSRC/WL_GAME.C:gametype gamestate; +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.secrettotal++; +16/wolf3d/WOLFSRC/WL_GAME.C: if (gamestate.difficulty -1) +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.health = 100; +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.weapon = gamestate.bestweapon +16/wolf3d/WOLFSRC/WL_GAME.C: = gamestate.chosenweapon = wp_pistol; +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.ammo = STARTAMMO; +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.keys = 0; +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.attackframe = gamestate.attackcount = +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.weaponframe = 0; +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.score = gamestate.oldscore; +16/wolf3d/WOLFSRC/WL_GAME.C: if (gamestate.mapon == 20) // give them the key allways +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.keys |= 1; +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.oldscore = gamestate.score; +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.mapon = 20; +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.keys = 0; +16/wolf3d/WOLFSRC/WL_GAME.C: if (gamestate.mapon == 1) +16/wolf3d/WOLFSRC/WL_GAME.C: CheckHighScore (gamestate.score,gamestate.mapon+1); +16/wolf3d/WOLFSRC/WL_GAME.C: if (gamestate.mapon == 3) +16/wolf3d/WOLFSRC/WL_GAME.C: CheckHighScore (gamestate.score,gamestate.mapon+1); +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.oldscore = gamestate.score; +16/wolf3d/WOLFSRC/WL_GAME.C: if (gamestate.mapon == 9) +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.mapon = ElevatorBackTo[gamestate.episode]; // back from secret +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.mapon = 9; +16/wolf3d/WOLFSRC/WL_GAME.C: switch(gamestate.mapon) +16/wolf3d/WOLFSRC/WL_GAME.C: case FROMSECRET1: gamestate.mapon = 18; break; +16/wolf3d/WOLFSRC/WL_GAME.C: case FROMSECRET2: gamestate.mapon = 19; break; +16/wolf3d/WOLFSRC/WL_GAME.C: if (gamestate.mapon == 18 || gamestate.mapon == 19) +16/wolf3d/WOLFSRC/WL_GAME.C: switch(gamestate.mapon) +16/wolf3d/WOLFSRC/WL_GAME.C: case 18: gamestate.mapon = FROMSECRET1+1; break; +16/wolf3d/WOLFSRC/WL_GAME.C: case 19: gamestate.mapon = FROMSECRET2+1; break; +16/wolf3d/WOLFSRC/WL_GAME.C: gamestate.mapon++; +16/wolf3d/WOLFSRC/WL_GAME.C: if (gamestate.lives > -1) +16/wolf3d/WOLFSRC/WL_GAME.C: CheckHighScore (gamestate.score,gamestate.mapon+1); +16/wolf3d/WOLFSRC/WL_GAME.C: CheckHighScore (gamestate.score,gamestate.mapon+1); +16/wolf3d/WOLFSRC/WL_INTER.C: if (gamestate.difficulty>=gd_medium) +16/wolf3d/WOLFSRC/WL_INTER.C: Write(26,2,itoa(gamestate.mapon+1,tempstr,10)); +16/wolf3d/WOLFSRC/WL_INTER.C: Write(30,12,parTimes[gamestate.episode*10+mapon].timestr); +16/wolf3d/WOLFSRC/WL_INTER.C: Write(26,12,parTimes[gamestate.episode*10+mapon].timestr); +16/wolf3d/WOLFSRC/WL_INTER.C: sec=gamestate.TimeCount/70; +16/wolf3d/WOLFSRC/WL_INTER.C: if (gamestate.TimeCountx; +16/wolf3d/WOLFSRC/WL_STATE.C: gamestate.killy = player->y; +16/wolf3d/WOLFSRC/WL_STATE.C: gamestate.killx = player->x; +16/wolf3d/WOLFSRC/WL_STATE.C: gamestate.killy = player->y; +16/wolf3d/WOLFSRC/WL_STATE.C: gamestate.killx = player->x; +16/wolf3d/WOLFSRC/WL_STATE.C: gamestate.killy = player->y; +16/wolf3d/WOLFSRC/WL_STATE.C: gamestate.killx = player->x; +16/wolf3d/WOLFSRC/WL_STATE.C: gamestate.killy = player->y; +16/wolf3d/WOLFSRC/WL_STATE.C: gamestate.killcount++; +16/wolf3d/WOLFSRC/WL_TEXT.C: ShowArticle(gamestate.episode + 1); +16/wolf3d/WOLFSRC/WL_TEXT.C: artnum = endextern+gamestate.episode; +16/wolf3d/WOLFSRC/WL_TEXT.C: endfilename[6] = '1'+gamestate.episode; +16/wolf3d/WOLFSRC/WL_DEF.H:// gamestate structure +16/wolf3d/WOLFSRC/WL_DEF.H:extern gametype gamestate; +=============== ./qwolf.sh end =============== diff --git a/src/lib/16_ca.c b/src/lib/16_ca.c index 2ed42cd8..af7ac72c 100755 --- a/src/lib/16_ca.c +++ b/src/lib/16_ca.c @@ -167,7 +167,7 @@ CASVT GRFILEPOS(int c, global_game_variables_t *gvar) } #endif -//#define EXTENSION "hb1" +//#define EXTENSION "hp1" /* ============================================================================= @@ -1045,7 +1045,7 @@ void CAL_SetupGrFile (global_game_variables_t *gvar) // strcpy(fname,GDICTNAME); - strcat(fname,"hb1"); + strcat(fname,"hp1"); if ((handle = open(fname, O_RDONLY | O_BINARY, S_IREAD)) == -1) @@ -1060,7 +1060,7 @@ void CAL_SetupGrFile (global_game_variables_t *gvar) MM_GetPtr (MEMPTRCONV gvar->ca.grstarts,(NUMCHUNKS+1)*FILEPOSSIZE, gvar); strcpy(fname,GHEADNAME); - strcat(fname,"hb1"); + strcat(fname,"hp1"); if ((handle = open(fname, O_RDONLY | O_BINARY, S_IREAD)) == -1) @@ -1077,7 +1077,7 @@ void CAL_SetupGrFile (global_game_variables_t *gvar) // Open the graphics file, leaving it open until the game is finished // strcpy(fname,GFILENAME); - strcat(fname,"hb1"); + strcat(fname,"hp1"); gvar->ca.file.grhandle = open(fname, O_RDONLY | O_BINARY); if (gvar->ca.file.grhandle == -1) diff --git a/src/lib/doslib b/src/lib/doslib index 63a37767..9ec29ff2 160000 --- a/src/lib/doslib +++ b/src/lib/doslib @@ -1 +1 @@ -Subproject commit 63a377675e5ba1f2627d1568fe234880eb9da4b2 +Subproject commit 9ec29ff23b3799c243609097b407bea9fb45b731 diff --git a/src/lib/hb/demo16.c b/src/lib/hb/demo16.c deleted file mode 100755 index e69de29b..00000000 diff --git a/src/lib/hb/act/c3_act1.c b/src/lib/hp/act/c3_act1.c similarity index 100% rename from src/lib/hb/act/c3_act1.c rename to src/lib/hp/act/c3_act1.c diff --git a/src/lib/hb/act/c6_act1.c b/src/lib/hp/act/c6_act1.c similarity index 100% rename from src/lib/hb/act/c6_act1.c rename to src/lib/hp/act/c6_act1.c diff --git a/src/lib/hb/act/c6_act2.c b/src/lib/hp/act/c6_act2.c similarity index 100% rename from src/lib/hb/act/c6_act2.c rename to src/lib/hp/act/c6_act2.c diff --git a/src/lib/hb/act/c6_act3.c b/src/lib/hp/act/c6_act3.c similarity index 100% rename from src/lib/hb/act/c6_act3.c rename to src/lib/hp/act/c6_act3.c diff --git a/src/lib/hb/act/c6_act4.c b/src/lib/hp/act/c6_act4.c similarity index 100% rename from src/lib/hb/act/c6_act4.c rename to src/lib/hp/act/c6_act4.c diff --git a/src/lib/hb/act/kd_act1.c b/src/lib/hp/act/kd_act1.c similarity index 100% rename from src/lib/hb/act/kd_act1.c rename to src/lib/hp/act/kd_act1.c diff --git a/src/lib/hb/act/kd_act2.c b/src/lib/hp/act/kd_act2.c similarity index 100% rename from src/lib/hb/act/kd_act2.c rename to src/lib/hp/act/kd_act2.c diff --git a/src/lib/hb/act/wl_act1.c b/src/lib/hp/act/wl_act1.c similarity index 100% rename from src/lib/hb/act/wl_act1.c rename to src/lib/hp/act/wl_act1.c diff --git a/src/lib/hb/act/wl_act2.c b/src/lib/hp/act/wl_act2.c similarity index 100% rename from src/lib/hb/act/wl_act2.c rename to src/lib/hp/act/wl_act2.c diff --git a/src/lib/hb/asm/c3_asm.asm b/src/lib/hp/asm/c3_asm.asm similarity index 100% rename from src/lib/hb/asm/c3_asm.asm rename to src/lib/hp/asm/c3_asm.asm diff --git a/src/lib/hb/asm/c6_asm.asm b/src/lib/hp/asm/c6_asm.asm similarity index 100% rename from src/lib/hb/asm/c6_asm.asm rename to src/lib/hp/asm/c6_asm.asm diff --git a/src/lib/hb/asm/wl_asm.asm b/src/lib/hp/asm/wl_asm.asm similarity index 100% rename from src/lib/hb/asm/wl_asm.asm rename to src/lib/hp/asm/wl_asm.asm diff --git a/src/lib/hb/c3_trace.c b/src/lib/hp/c3_trace.c similarity index 100% rename from src/lib/hb/c3_trace.c rename to src/lib/hp/c3_trace.c diff --git a/src/lib/hb/c3_wiz.c b/src/lib/hp/c3_wiz.c similarity index 100% rename from src/lib/hb/c3_wiz.c rename to src/lib/hp/c3_wiz.c diff --git a/src/lib/hb/c6_trace.c b/src/lib/hp/c6_trace.c similarity index 100% rename from src/lib/hb/c6_trace.c rename to src/lib/hp/c6_trace.c diff --git a/src/lib/hb/c6_wiz.c b/src/lib/hp/c6_wiz.c similarity index 100% rename from src/lib/hb/c6_wiz.c rename to src/lib/hp/c6_wiz.c diff --git a/src/lib/hb/debug/c3_debug.c b/src/lib/hp/debug/c3_debug.c similarity index 100% rename from src/lib/hb/debug/c3_debug.c rename to src/lib/hp/debug/c3_debug.c diff --git a/src/lib/hb/debug/c6_debug.c b/src/lib/hp/debug/c6_debug.c similarity index 100% rename from src/lib/hb/debug/c6_debug.c rename to src/lib/hp/debug/c6_debug.c diff --git a/src/lib/hb/debug/wl_debug.c b/src/lib/hp/debug/wl_debug.c similarity index 100% rename from src/lib/hb/debug/wl_debug.c rename to src/lib/hp/debug/wl_debug.c diff --git a/src/lib/hb/def/c3_def.h b/src/lib/hp/def/c3_def.h similarity index 100% rename from src/lib/hb/def/c3_def.h rename to src/lib/hp/def/c3_def.h diff --git a/src/lib/hb/def/kd_def.h b/src/lib/hp/def/kd_def.h similarity index 100% rename from src/lib/hb/def/kd_def.h rename to src/lib/hp/def/kd_def.h diff --git a/src/lib/hb/def/wl_def.h b/src/lib/hp/def/wl_def.h similarity index 100% rename from src/lib/hb/def/wl_def.h rename to src/lib/hp/def/wl_def.h diff --git a/src/lib/hb/democ3.c b/src/lib/hp/democ3.c similarity index 100% rename from src/lib/hb/democ3.c rename to src/lib/hp/democ3.c diff --git a/src/lib/hb/democ6.c b/src/lib/hp/democ6.c similarity index 100% rename from src/lib/hb/democ6.c rename to src/lib/hp/democ6.c diff --git a/src/lib/hp/demohp.c b/src/lib/hp/demohp.c new file mode 100755 index 00000000..92215988 --- /dev/null +++ b/src/lib/hp/demohp.c @@ -0,0 +1,169 @@ +/* +===================== += += DemoLoop += +===================== +*/ + +//static char *ParmStrings[] = {"baby","easy","normal","hard",""}; + +void DemoLoop (void) +{ + int i,level; + long nsize; + memptr nullblock; + +// +// check for launch from ted +// + if (tedlevel) + { + NoWait = true; + NewGame(1,0); + + for (i = 1;i < _argc;i++) + { + if ( (level = US_CheckParm(_argv[i],ParmStrings)) != -1) + { + gamestate.difficulty=level; + break; + } + } + +#ifndef SPEAR + gamestate.episode = tedlevelnum/10; + gamestate.mapon = tedlevelnum%10; +#else + gamestate.episode = 0; + gamestate.mapon = tedlevelnum; +#endif + GameLoop(); + Quit (NULL); + } + + +// +// main game cycle +// + + +// nsize = (long)40*1024; +// MM_GetPtr(&nullblock,nsize); + +#ifndef DEMOTEST + + #ifndef UPLOAD + + #ifndef GOODTIMES + #ifndef SPEAR + #ifndef JAPAN + if (!NoWait) + NonShareware(); + #endif + #else + + #ifndef GOODTIMES + #ifndef SPEARDEMO + CopyProtection(); + #endif + #endif + + #endif + #endif + #endif + + StartCPMusic(INTROSONG); + +#ifndef JAPAN + if (!NoWait) + PG13 (); +#endif + +#endif + + while (1) + { + while (!NoWait) + { +// +// title page +// + MM_SortMem (); +#ifndef DEMOTEST + +#ifdef SPEAR + CA_CacheGrChunk (TITLEPALETTE); + + CA_CacheGrChunk (TITLE1PIC); + VWB_DrawPic (0,0,TITLE1PIC); + UNCACHEGRCHUNK (TITLE1PIC); + + CA_CacheGrChunk (TITLE2PIC); + VWB_DrawPic (0,80,TITLE2PIC); + UNCACHEGRCHUNK (TITLE2PIC); + VW_UpdateScreen (); + VL_FadeIn(0,255,grsegs[TITLEPALETTE],30); + + UNCACHEGRCHUNK (TITLEPALETTE); +#else + CA_CacheScreen (TITLEPIC); + VW_UpdateScreen (); + VW_FadeIn(); +#endif + if (IN_UserInput(TickBase*15)) + break; + VW_FadeOut(); +// +// credits page +// + CA_CacheScreen (CREDITSPIC); + VW_UpdateScreen(); + VW_FadeIn (); + if (IN_UserInput(TickBase*10)) + break; + VW_FadeOut (); +// +// high scores +// + DrawHighScores (); + VW_UpdateScreen (); + VW_FadeIn (); + + if (IN_UserInput(TickBase*10)) + break; +#endif +// +// demo +// + + #ifndef SPEARDEMO + PlayDemo (LastDemo++%4); + #else + PlayDemo (0); + #endif + + if (playstate == ex_abort) + break; + StartCPMusic(INTROSONG); + } + + VW_FadeOut (); + +#ifndef SPEAR + if (Keyboard[sc_Tab] && MS_CheckParm("goobers")) +#else + if (Keyboard[sc_Tab] && MS_CheckParm("debugmode")) +#endif + RecordDemo (); + else + US_ControlPanel (0); + + if (startgame || loadedgame) + { + GameLoop (); + VW_FadeOut(); + StartCPMusic(INTROSONG); + } + } +} diff --git a/src/lib/hb/demokd.c b/src/lib/hp/demokd.c similarity index 100% rename from src/lib/hb/demokd.c rename to src/lib/hp/demokd.c diff --git a/src/lib/hb/demowl.c b/src/lib/hp/demowl.c similarity index 100% rename from src/lib/hb/demowl.c rename to src/lib/hp/demowl.c diff --git a/src/lib/hb/draw/c3_draw.c b/src/lib/hp/draw/c3_draw.c similarity index 100% rename from src/lib/hb/draw/c3_draw.c rename to src/lib/hp/draw/c3_draw.c diff --git a/src/lib/hb/draw/c6_draw.c b/src/lib/hp/draw/c6_draw.c similarity index 100% rename from src/lib/hb/draw/c6_draw.c rename to src/lib/hp/draw/c6_draw.c diff --git a/src/lib/hb/draw/wl_draw.c b/src/lib/hp/draw/wl_draw.c similarity index 100% rename from src/lib/hb/draw/wl_draw.c rename to src/lib/hp/draw/wl_draw.c diff --git a/src/lib/hb/game/c3_game.c b/src/lib/hp/game/c3_game.c similarity index 100% rename from src/lib/hb/game/c3_game.c rename to src/lib/hp/game/c3_game.c diff --git a/src/lib/hb/game/c6_game.c b/src/lib/hp/game/c6_game.c similarity index 100% rename from src/lib/hb/game/c6_game.c rename to src/lib/hp/game/c6_game.c diff --git a/src/lib/hb/game/wl_game.c b/src/lib/hp/game/wl_game.c similarity index 100% rename from src/lib/hb/game/wl_game.c rename to src/lib/hp/game/wl_game.c diff --git a/src/lib/hb/inter/wl_inter.c b/src/lib/hp/inter/wl_inter.c similarity index 100% rename from src/lib/hb/inter/wl_inter.c rename to src/lib/hp/inter/wl_inter.c diff --git a/src/lib/hb/kd_demo.c b/src/lib/hp/kd_demo.c similarity index 100% rename from src/lib/hb/kd_demo.c rename to src/lib/hp/kd_demo.c diff --git a/src/lib/hb/kd_keen.c b/src/lib/hp/kd_keen.c similarity index 100% rename from src/lib/hb/kd_keen.c rename to src/lib/hp/kd_keen.c diff --git a/src/lib/hb/main/c3_main.c b/src/lib/hp/main/c3_main.c similarity index 100% rename from src/lib/hb/main/c3_main.c rename to src/lib/hp/main/c3_main.c diff --git a/src/lib/hb/main/c6_main.c b/src/lib/hp/main/c6_main.c similarity index 100% rename from src/lib/hb/main/c6_main.c rename to src/lib/hp/main/c6_main.c diff --git a/src/lib/hb/main/kd_main.c b/src/lib/hp/main/kd_main.c similarity index 100% rename from src/lib/hb/main/kd_main.c rename to src/lib/hp/main/kd_main.c diff --git a/src/lib/hb/main/wl_main.c b/src/lib/hp/main/wl_main.c similarity index 100% rename from src/lib/hb/main/wl_main.c rename to src/lib/hp/main/wl_main.c diff --git a/src/lib/hb/menu/wl_menu.c b/src/lib/hp/menu/wl_menu.c similarity index 100% rename from src/lib/hb/menu/wl_menu.c rename to src/lib/hp/menu/wl_menu.c diff --git a/src/lib/hb/menu/wl_menu.h b/src/lib/hp/menu/wl_menu.h similarity index 100% rename from src/lib/hb/menu/wl_menu.h rename to src/lib/hp/menu/wl_menu.h diff --git a/src/lib/hb/play/c3_play.c b/src/lib/hp/play/c3_play.c similarity index 100% rename from src/lib/hb/play/c3_play.c rename to src/lib/hp/play/c3_play.c diff --git a/src/lib/hb/play/c6_play.c b/src/lib/hp/play/c6_play.c similarity index 100% rename from src/lib/hb/play/c6_play.c rename to src/lib/hp/play/c6_play.c diff --git a/src/lib/hb/play/kd_play.c b/src/lib/hp/play/kd_play.c similarity index 100% rename from src/lib/hb/play/kd_play.c rename to src/lib/hp/play/kd_play.c diff --git a/src/lib/hb/play/wl_play.c b/src/lib/hp/play/wl_play.c similarity index 100% rename from src/lib/hb/play/wl_play.c rename to src/lib/hp/play/wl_play.c diff --git a/src/lib/hb/c3_sca_a.asm b/src/lib/hp/scale/c3_sca_a.asm similarity index 100% rename from src/lib/hb/c3_sca_a.asm rename to src/lib/hp/scale/c3_sca_a.asm diff --git a/src/lib/hb/scale/c3_scale.c b/src/lib/hp/scale/c3_scale.c similarity index 100% rename from src/lib/hb/scale/c3_scale.c rename to src/lib/hp/scale/c3_scale.c diff --git a/src/lib/hb/c6_sca_a.asm b/src/lib/hp/scale/c6_sca_a.asm similarity index 100% rename from src/lib/hb/c6_sca_a.asm rename to src/lib/hp/scale/c6_sca_a.asm diff --git a/src/lib/hb/scale/c6_scale.c b/src/lib/hp/scale/c6_scale.c similarity index 100% rename from src/lib/hb/scale/c6_scale.c rename to src/lib/hp/scale/c6_scale.c diff --git a/src/lib/hb/scale/wl_scale.c b/src/lib/hp/scale/wl_scale.c similarity index 100% rename from src/lib/hb/scale/wl_scale.c rename to src/lib/hp/scale/wl_scale.c diff --git a/src/lib/hb/state/c3_state.c b/src/lib/hp/state/c3_state.c similarity index 100% rename from src/lib/hb/state/c3_state.c rename to src/lib/hp/state/c3_state.c diff --git a/src/lib/hb/state/c6_state.c b/src/lib/hp/state/c6_state.c similarity index 100% rename from src/lib/hb/state/c6_state.c rename to src/lib/hp/state/c6_state.c diff --git a/src/lib/hb/state/wl_state.c b/src/lib/hp/state/wl_state.c similarity index 100% rename from src/lib/hb/state/wl_state.c rename to src/lib/hp/state/wl_state.c diff --git a/src/lib/hb/wl_agent.c b/src/lib/hp/wl_agent.c similarity index 100% rename from src/lib/hb/wl_agent.c rename to src/lib/hp/wl_agent.c diff --git a/src/lib/hb/wl_dr_a.asm b/src/lib/hp/wl_dr_a.asm similarity index 100% rename from src/lib/hb/wl_dr_a.asm rename to src/lib/hp/wl_dr_a.asm diff --git a/src/lib/hb/wl_text.c b/src/lib/hp/wl_text.c similarity index 100% rename from src/lib/hb/wl_text.c rename to src/lib/hp/wl_text.c