46#define ENEMY_SHOT_MAX 60
48#define CURRENT_KEY_SPEED 1
50#define MAX_EXPLOSIONS 200
51#define MAX_REPEATING_EXPLOSIONS 20
52#define MAX_SUPERPIXELS 101
59 JE_shortint exca, eyca;
60 JE_shortint excc, eycc;
61 JE_shortint exccw, eyccw;
63 JE_byte eshotwait[3], eshotmultipos[3];
73 JE_shortint exrev, eyrev;
74 JE_integer exccadd, eyccadd;
75 JE_byte exccwmax, eyccwmax;
86 JE_integer fixedmovey;
95 JE_boolean enemyground;
106 JE_byte launchspecial;
108 JE_integer xminbounce;
109 JE_integer xmaxbounce;
110 JE_integer yminbounce;
111 JE_integer ymaxbounce;
117typedef JE_byte JE_DanCShape[24 * 28];
119typedef JE_char JE_CharString[256];
121typedef JE_byte JE_Map1Buffer[24 * 28 * 13 * 4];
123typedef JE_byte *JE_MapType[300][14];
124typedef JE_byte *JE_MapType2[600][14];
125typedef JE_byte *JE_MapType3[600][15];
131 JE_integer eventdat, eventdat2;
132 JE_shortint eventdat3, eventdat5, eventdat6;
171typedef JE_byte JE_EnemyAvailType[100];
176 JE_shortint sxc, syc;
189 signed int delta_x, delta_y;
203 unsigned int x, y, z;
204 signed int delta_x, delta_y;
208extern JE_integer tempDat, tempDat2, tempDat3;
209extern const JE_byte SANextShip[SA + 2];
210extern const JE_word SASpecialWeapon[SA];
211extern const JE_word SASpecialWeaponB[SA];
212extern const JE_byte SAShip[SA];
213extern const JE_word SAWeapon[SA][5];
214extern const JE_byte specialArcadeWeapon[PORT_NUM];
215extern const JE_byte optionSelect[16][3][2];
216extern const JE_word PGR[21];
217extern const JE_byte PAni[21];
218extern const JE_word linkGunWeapons[38];
219extern const JE_word chargeGunWeapons[38];
220extern const JE_byte randomEnemyLaunchSounds[3];
221extern const JE_byte keyboardCombos[26][8];
222extern const JE_byte shipCombosB[21];
223extern const JE_byte superTyrianSpecials[4];
224extern const JE_byte shipCombos[19][3];
225extern JE_byte SFCurrentCode[2][21];
226extern JE_byte SFExecuted[2];
227extern JE_byte lvlFileNum;
228extern JE_word maxEvent, eventLoc;
229extern JE_word tempBackMove, explodeMove;
230extern JE_byte levelEnd;
231extern JE_word levelEndFxWait;
232extern JE_shortint levelEndWarp;
233extern JE_boolean endLevel, reallyEndLevel, waitToEndLevel, playerEndLevel, normalBonusLevelCurrent, bonusLevelCurrent, smallEnemyAdjust, readyToEndLevel, quitRequested;
234extern JE_byte newPL[10];
235extern JE_word returnLoc;
236extern JE_boolean returnActive;
237extern JE_word galagaShotFreq;
238extern JE_longint galagaLife;
239extern JE_boolean debug;
240extern Uint32 debugTime, lastDebugTime;
241extern JE_longint debugHistCount;
242extern JE_real debugHist;
243extern JE_word curLoc;
244extern JE_boolean firstGameOver, gameLoaded, enemyStillExploding;
245extern JE_word totalEnemy;
246extern JE_word enemyKilled;
251extern JE_shortint flashChange;
252extern JE_byte displayTime;
254extern bool play_demo, record_demo, stopped_demo;
255extern Uint8 demo_num;
256extern FILE *demo_file;
258extern Uint8 demo_keys;
259extern Uint16 demo_keys_wait;
261extern JE_byte soundQueue[8];
262extern JE_boolean enemyContinualDamage;
263extern JE_boolean enemiesActive;
264extern JE_boolean forceEvents;
265extern JE_boolean stopBackgrounds;
266extern JE_byte stopBackgroundNum;
267extern JE_byte damageRate;
268extern JE_boolean background3x1;
269extern JE_boolean background3x1b;
270extern JE_boolean levelTimer;
271extern JE_word levelTimerCountdown;
272extern JE_word levelTimerJumpTo;
273extern JE_boolean randomExplosions;
274extern JE_boolean editShip1, editShip2;
275extern JE_boolean globalFlags[10];
276extern JE_byte levelSong;
277extern JE_boolean loadDestruct;
278extern JE_word mapOrigin, mapPNum;
279extern JE_byte mapPlanet[5], mapSection[5];
280extern JE_boolean moveTyrianLogoUp;
281extern JE_boolean skipStarShowVGA;
282extern JE_MultiEnemyType enemy;
283extern JE_EnemyAvailType enemyAvail;
284extern JE_word enemyOffset;
285extern JE_word enemyOnScreen;
286extern JE_word superEnemy254Jump;
288extern JE_integer explosionFollowAmountX, explosionFollowAmountY;
289extern JE_boolean fireButtonHeld;
290extern JE_boolean enemyShotAvail[ENEMY_SHOT_MAX];
292extern JE_byte zinglonDuration;
293extern JE_byte astralDuration;
294extern JE_word flareDuration;
295extern JE_boolean flareStart;
296extern JE_shortint flareColChg;
297extern JE_byte specialWait;
298extern JE_byte nextSpecialWait;
299extern JE_boolean spraySpecial;
300extern JE_byte doIced;
301extern JE_boolean infiniteShot;
302extern JE_boolean allPlayersGone;
303extern const uint shadowYDist;
304extern JE_real optionSatelliteRotate;
305extern JE_integer optionAttachmentMove;
306extern JE_boolean optionAttachmentLinked, optionAttachmentReturn;
307extern JE_byte chargeWait, chargeLevel, chargeMax, chargeGr, chargeGrWait;
311extern unsigned int last_superpixel;
312extern JE_byte temp, temp2, temp3;
313extern JE_word tempX, tempY;
315extern JE_boolean doNotSaveBackup;
318extern JE_byte **BKwrap1to, **BKwrap2to, **BKwrap3to, **BKwrap1, **BKwrap2, **BKwrap3;
319extern JE_shortint specialWeaponFilter, specialWeaponFreq;
320extern JE_word specialWeaponWpn;
321extern JE_boolean linkToPlayer;
322extern JE_word shipGr, shipGr2;
325static const int hud_sidekick_y[2][2] =
331void JE_getShipInfo(
void);
334void JE_drawOptions(
void);
336void JE_tyrianHalt(JE_byte code);
337void JE_specialComplete(JE_byte playernum, JE_byte specialType);
338void JE_doSpecialShot(JE_byte playernum, uint *armor, uint *shield);
340void JE_wipeShieldArmorBars(
void);
341JE_byte JE_playerDamage(JE_byte temp,
Player *);
343void JE_setupExplosion(
signed int x,
signed int y,
signed int delta_y,
unsigned int type,
bool fixed_position,
bool follow_player);
344void JE_setupExplosionLarge(JE_boolean enemyground, JE_byte explonum, JE_integer x, JE_integer y);
346void JE_drawShield(
void);
347void JE_drawArmor(
void);
349JE_word JE_portConfigs(
void);
352void JE_doSP(JE_word x, JE_word y, JE_word num, JE_byte explowidth, JE_byte color);
355void JE_drawOptionLevel(
void);