31 |
31 |
32 type |
32 type |
33 HwColor4f = record |
33 HwColor4f = record |
34 r, g, b, a: byte |
34 r, g, b, a: byte |
35 end; |
35 end; |
36 |
36 |
37 TGameState = (gsLandGen, gsStart, gsGame, gsChat, gsConfirm, gsExit); |
37 TGameState = (gsLandGen, gsStart, gsGame, gsChat, gsConfirm, gsExit); |
38 |
38 |
39 TGameType = (gmtLocal, gmtDemo, gmtNet, gmtSave, gmtLandPreview, gmtSyntax); |
39 TGameType = (gmtLocal, gmtDemo, gmtNet, gmtSave, gmtLandPreview, gmtSyntax); |
40 |
40 |
41 TPathType = (ptNone, ptData, ptGraphics, ptThemes, ptCurrTheme, ptTeams, ptMaps, |
41 TPathType = (ptNone, ptData, ptGraphics, ptThemes, ptCurrTheme, ptTeams, ptMaps, |
69 sprSniperRifle, sprBubbles, sprJetpack, sprHealth, sprHandMolotov, sprMolotov, |
69 sprSniperRifle, sprBubbles, sprJetpack, sprHealth, sprHandMolotov, sprMolotov, |
70 sprSmoke, sprSmokeWhite, sprShell, sprDust, sprExplosives, sprExplosivesRoll, |
70 sprSmoke, sprSmokeWhite, sprShell, sprDust, sprExplosives, sprExplosivesRoll, |
71 sprAmTeleport, sprSplash, sprDroplet, sprBirdy, sprHandCake, sprHandConstruction, |
71 sprAmTeleport, sprSplash, sprDroplet, sprBirdy, sprHandCake, sprHandConstruction, |
72 sprHandGrenade, sprHandMelon, sprHandMortar, sprHandSkip, sprHandCluster, |
72 sprHandGrenade, sprHandMelon, sprHandMortar, sprHandSkip, sprHandCluster, |
73 sprHandDynamite, sprHandHellish, sprHandMine, sprHandSeduction, sprHandVamp, |
73 sprHandDynamite, sprHandHellish, sprHandMine, sprHandSeduction, sprHandVamp, |
74 sprBigExplosion, sprSmokeRing, sprBeeTrace, sprEgg, sprTargetBee, sprHandBee, |
74 sprBigExplosion, sprSmokeRing, sprBeeTrace, sprEgg, sprTargetBee, sprHandBee, |
75 sprFeather, sprPiano, sprHandSineGun, sprPortalGun, sprPortal, |
75 sprFeather, sprPiano, sprHandSineGun, sprPortalGun, sprPortal, |
76 sprCheese, sprHandCheese, sprHandFlamethrower, sprChunk |
76 sprCheese, sprHandCheese, sprHandFlamethrower, sprChunk |
77 ); |
77 ); |
78 |
78 |
79 // Gears that interact with other Gears and/or Land |
79 // Gears that interact with other Gears and/or Land |
80 TGearType = (gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtGrave, gtBee, // 4 |
80 TGearType = (gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtGrave, gtBee, // 4 |
81 gtShotgunShot, gtPickHammer, gtRope, gtMine, gtCase, // 9 |
81 gtShotgunShot, gtPickHammer, gtRope, gtMine, gtCase, // 9 |
82 gtDEagleShot, gtDynamite, gtClusterBomb, gtCluster, gtShover, // 14 |
82 gtDEagleShot, gtDynamite, gtClusterBomb, gtCluster, gtShover, // 14 |
83 gtFlame, gtFirePunch, gtATStartGame, gtATSmoothWindCh, // 18 |
83 gtFlame, gtFirePunch, gtATStartGame, gtATSmoothWindCh, // 18 |
254 cMaxPower = 1500; |
254 cMaxPower = 1500; |
255 cMaxAngle = 2048; |
255 cMaxAngle = 2048; |
256 cPowerDivisor = 1500; |
256 cPowerDivisor = 1500; |
257 |
257 |
258 MAXNAMELEN = 192; |
258 MAXNAMELEN = 192; |
259 |
259 |
260 // some opengl headers do not have these macros |
260 // some opengl headers do not have these macros |
261 GL_BGR = $80E0; |
261 GL_BGR = $80E0; |
262 GL_BGRA = $80E1; |
262 GL_BGRA = $80E1; |
263 GL_CLAMP_TO_EDGE = $812F; |
263 GL_CLAMP_TO_EDGE = $812F; |
264 GL_TEXTURE_PRIORITY = $8066; |
264 GL_TEXTURE_PRIORITY = $8066; |
265 |
265 |
266 cSendCursorPosTime : LongWord = 50; |
266 cSendCursorPosTime : LongWord = 50; |
267 cVisibleWater : LongInt = 128; |
267 cVisibleWater : LongInt = 128; |
268 cCursorEdgesDist : LongInt = 100; |
268 cCursorEdgesDist : LongInt = 100; |
269 cTeamHealthWidth : LongInt = 128; |
269 cTeamHealthWidth : LongInt = 128; |
270 cWaterOpacity : byte = $80; |
270 cWaterOpacity : byte = $80; |
449 'Graphics/Hedgehog', // ptHedgehog |
449 'Graphics/Hedgehog', // ptHedgehog |
450 'Sounds/voices', // ptVoices |
450 'Sounds/voices', // ptVoices |
451 'Graphics/Hats', // ptHats |
451 'Graphics/Hats', // ptHats |
452 'Graphics/Flags' // ptFlags |
452 'Graphics/Flags' // ptFlags |
453 ); |
453 ); |
454 |
454 |
455 var PathPrefix: shortstring = './'; |
455 var PathPrefix: shortstring = './'; |
456 Pathz: array[TPathType] of shortstring; |
456 Pathz: array[TPathType] of shortstring; |
457 CountTexz: array[1..Pred(AMMO_INFINITE)] of PTexture; |
457 CountTexz: array[1..Pred(AMMO_INFINITE)] of PTexture; |
458 LAND_WIDTH :longint; |
458 LAND_WIDTH :longint; |
459 LAND_HEIGHT :longint; |
459 LAND_HEIGHT :longint; |
720 Width: 16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHighest; getDimensions: false; getImageDimensions: true),// sprBubbles |
720 Width: 16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHighest; getDimensions: false; getImageDimensions: true),// sprBubbles |
721 (FileName: 'amJetpack'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
721 (FileName: 'amJetpack'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
722 Width: 64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprJetpack |
722 Width: 64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprJetpack |
723 (FileName: 'Health'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
723 (FileName: 'Health'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
724 Width: 16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHigh; getDimensions: false; getImageDimensions: true),// sprHealth |
724 Width: 16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHigh; getDimensions: false; getImageDimensions: true),// sprHealth |
725 (FileName: 'amMolotov'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
725 (FileName: 'amMolotov'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil; |
726 Width: 32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),//sprHandMolotov |
726 Width: 32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),//sprHandMolotov |
727 (FileName: 'Molotov'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
727 (FileName: 'Molotov'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
728 Width: 16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprMolotov |
728 Width: 16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprMolotov |
729 (FileName: 'Smoke'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
729 (FileName: 'Smoke'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; |
730 Width: 22; Height: 22; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHighest; getDimensions: false; getImageDimensions: true),// sprSmoke |
730 Width: 22; Height: 22; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHighest; getDimensions: false; getImageDimensions: true),// sprSmoke |