Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Main Configuration
- //Initialization
- draw_texture_flush();
- stringCurrentDate = string(current_day)+string(current_month)+string(current_year);
- if (!global.isDaily) randomize();
- //else random_set_seed(global.dailySeed);
- joy_init();
- global.gameOver = false;
- global.relicDetected = false;
- global.overrideLevel = noone;
- global.steamApi = false;
- if (steam_initialised())
- {
- if (steam_stats_ready()) && (steam_is_overlay_enabled())
- {
- global.steamApi = true;
- }
- else show_debug_message('ERROR: Steam Stats Not Accessible At This Time');
- }
- else show_debug_message('ERROR: Steam not initialized');
- //Camera and Crosshair
- global.crosshairX[1] = 0;
- global.crosshairY[1] = 0;
- global.crosshair_scale[1] = 1;
- global.crosshairX[2] = 0;
- global.crosshairY[2] = 0;
- global.crosshair_scale[2] = 1;
- global.default_shadow_yscale = 0.3;
- global.music = true;
- main_camera = instance_create(x,y,controller_camera);
- main_effects = instance_create(x,y,controller_effects);
- level_end = false;
- global.level_complete = false;
- global.pause = 0;
- view_xview[0] = x;
- view_yview[0] = y;
- //Survival Mode Configuration
- global.survivalWaves = 0;
- survivalWaveSize = 0;
- if (room == levelHalloween_3) {global.survivalWaves = 3; survivalWaveSize = 3;}
- //Combat Options
- global.autoAimAngle = 38;
- global.precisionAngle = 20;
- global.precisionDistance = 32;
- global.friendlyFireDamageRatio = 0.7;
- global.enemyProjectileSpeed = 0.8;
- //Level Build
- level_built = false;
- //Pathfinding
- path_refresh = room_speed*1; // Updates the grid once per second
- alarm[1] = path_refresh;
- global.astar_grid = mp_grid_create(0,0,round(room_width/64),round(room_height/64),64,64);
- mp_grid_add_instances(global.astar_grid,class_solid,false);
- //Debug Pathfinding
- global.drawGridDebug = false;
- //GUI
- guiSurface = surface_create(1920,1080);
- global.total_value = 0;
- score_time = room_speed*1.2;
- score_time_current = 0;
- score_value = 10;
- score_string = 'KILL';
- guiShieldAlertDraw = false;
- guiShieldAlertTime = room_speed*0.5;
- guiShieldAlertTimeCurrent = 0;
- guiReloadAlertDraw = false;
- guiReloadAlertTime = room_speed*0.5;
- guiReloadAlertTimeCurrent = 0;
- //Dynamic GUI
- global.dynamicBounty = instance_create(0,0,gui_dynamic_bounty);
- global.dynamicRelic1 = instance_create(0,0,gui_dynamic_relic1);
- global.dynamicRelic2 = instance_create(0,0,gui_dynamic_relic2);
- global.dynamicRelic3 = instance_create(0,0,gui_dynamic_relic3);
- global.dynamicAmmo1 = instance_create(0,0,gui_dynamic_ammo1);
- global.dynamicAmmo2 = instance_create(0,0,gui_dynamic_ammo2);
- delayedAmmoLightBar[1] = 1;
- delayedAmmoMediumBar[1] = 2;
- delayedAmmoHeavyBar[1] = 3;
- delayedCharHealthBar1[1] = 4;
- delayedCharShieldBar1[1] = 5;
- delayedAmmoLightBar[2] = 6;
- delayedAmmoMediumBar[2] = 7;
- delayedAmmoHeavyBar[2] = 8;
- delayedCharHealthBar1[2] = 9;
- delayedCharShieldBar1[2] = 10;
- delayedP1AmmoBar = 11;
- delayedP2AmmoBar = 12;
- draw_healthbar_delayed_init(delayedAmmoLightBar[1]);
- draw_healthbar_delayed_init(delayedAmmoMediumBar[1]);
- draw_healthbar_delayed_init(delayedAmmoHeavyBar[1]);
- draw_healthbar_delayed_init(delayedCharHealthBar1[1]);
- draw_healthbar_delayed_init(delayedCharShieldBar1[1]);
- draw_healthbar_delayed_init(delayedAmmoLightBar[2]);
- draw_healthbar_delayed_init(delayedAmmoMediumBar[2]);
- draw_healthbar_delayed_init(delayedAmmoHeavyBar[2]);
- draw_healthbar_delayed_init(delayedCharHealthBar1[2]);
- draw_healthbar_delayed_init(delayedCharShieldBar1[2]);
- draw_healthbar_delayed_init(delayedP1AmmoBar);
- draw_healthbar_delayed_init(delayedP2AmmoBar);
- //BossFight GUI
- bossBar = 666;
- draw_healthbar_delayed_init(bossBar);
- isBossSetup = false;
- isGen1Setup = false;
- isGen2Setup = false;
- isGen3Setup = false;
- fakeBarFill = 0;
- //Score
- global.coins_turtle1 = 1;
- global.coins_turtle2 = 2;
- global.coins_turtle3 = 3;
- global.coins_duck1 = 3;
- global.coins_duck2 = 4;
- global.coins_duck3 = 5;
- global.coins_duck_prisoner = 7;
- global.score_kill = 10;
- global.score_headshot = 5;
- global.score_doublekill = 5;
- global.score_triplekill = 5;
- global.score_multikill = 10;
- //Prices
- global.price_checkpoint1 = 1000;
- global.price_checkpoint2 = 3000;
- global.price_checkpoint3 = 6000;
- global.price_checkpoint4 = 9000;
- global.price_checkpoint5 = 12000;
- global.price_pistol_assault = 650;
- global.price_pistol_heavy = 3000;
- global.price_pistol_plasma = 4200;
- global.price_shotgun = 1200;
- global.price_submachinegun = 2000;
- global.price_highmag = 4000;
- global.price_machinegun = 5000;
- global.price_assault_rifle = 5000;
- global.price_sniper_rifle = 5000;
- global.price_shotgun_heavy = 5000;
- global.price_rocketlauncher = 5000;
- global.price_shield1 = 1000;
- global.price_shield2 = 3000;
- global.price_light1 = 300;
- global.price_light2 = 300;
- global.price_medium1 = 500;
- global.price_medium2 = 850;
- global.price_heavy1 = 500;
- global.price_heavy2 = 750;
- global.price_heavy3 = 750;
- global.price_heavy4 = 750;
- global.price_grenades1 = 1000;
- global.price_grenades2 = 1500;
- global.price_grenades3 = 1500;
- global.price_pineapple1 = 1500;
- global.price_pineapple2 = 1500;
- global.price_pineapple3 = 1500;
- global.price_alcoholic1 = 1500;
- global.price_alcoholic2 = 1500;
- global.price_alcoholic3 = 1500;
- global.price_crystal1 = 3000;
- global.price_crystal2 = 4500;
- global.price_crystal3 = 4500;
- global.price_infinity1 = 4500;
- global.price_infinity2 = 4500;
- global.price_infinity3 = 4500;
- global.price_midnight1 = 4000;
- global.price_midnight2 = 4000;
- global.price_midnight3 = 4000;
- global.price_watchful1 = 2500;
- global.price_watchful2 = 2500;
- global.price_watchful3 = 2500;
- global.price_dev1 = 3500;
- global.price_dev2 = 4500;
- global.price_dev3 = 4500;
- global.price_yottabyte1 = 1750;
- global.price_yottabyte2 = 1750;
- global.price_yottabyte3 = 1750;
- //Players & Ammo
- global.friendlyFire = false;
- global.reviveHealth = 0.5;
- global.reviveAmmoLight = 160;
- global.reviveAmmoMedium = 100;
- global.reviveAmmoHeavy = 160;
- global.ammo_light_max = 360;
- global.ammo_medium_max = 280;
- global.ammo_heavy_max = 400;
- global.grenades_max = 5;
- global.ammoDropChanceLight = 0.1;
- global.ammoDropChanceMedium = 0.035;
- global.ammoDropChanceHeavy = 0.025;
- global.ammoDropLowThreshold = 0.15;
- global.ammoDropEquippedBonus = 0.1;
- global.ammoDropLowBonus = 0.1;
- ammo_light_max_regular = global.ammo_light_max;
- ammo_medium_max_regular = global.ammo_medium_max;
- ammo_heavy_max_regular = global.ammo_heavy_max;
- grenades_max_regular = global.grenades_max;
- ammo_light_max_relic = 250;
- ammo_medium_max_relic = 150;
- ammo_heavy_max_relic = 250;
- grenades_max_relic = global.grenades_max;
- grenades_max_biu = 10;
- draw_ammo1 = 0;
- draw_ammo2 = 0;
- //Relics
- global.midnightDamageMultiplier = 0.5;
- global.crystalBaconRegen = 8;
- global.devPotionRegenTime = room_speed*0.75;
- global.watchfulEyePickupBonus = 1.5;
- global.relicHpBonus = 1;
- global.relicEnergyBonus = 1;
- awarded4RelicsAchievement = false;
- //Audio
- global.falloffMainDist = 1280;
- global.falloffMainMax = 2000;
- global.falloffMainFactor = 1;
- global.falloffMediumDist = 600;
- global.falloffMediumMax = 1500;
- global.falloffMediumFactor = 1;
- global.falloffMinorDist = 280;
- global.falloffMinorMax = 1000;
- global.falloffMinorFactor = 1;
- //Stats
- timeCounter = 0;
- gameOverHint = '';
- //Endless Score
- global.scoreEndlessLevel = 600;
- global.scoreEndlessLoop = 2000;
- global.scoreEndlessLoopMultiplier = 2;
- //Daily Score
- global.dailyChecked = 0;
- global.dailyPlayers = -1;
- global.dailyBadge = 0;
- global.dailyBadgeString = "";
- global.dailyRankDebug = -1;
- //Pause Menu
- game_pause_init();
- //Center Mouse Position At Beggining
- display_mouse_set(window_get_width() / 2, window_get_height() / 2);
- //Low Performance Detection
- global.lowPerfTime = room_speed*4.2;
- global.lowPerfTimeCurrent = 0;
- debug_forceLevelExit = false;
- ///Enemy Tracker
- global.edgeTrackEnemyList = noone;
- //if room = level4_1 { room_goto(room_start)}//DEMO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement