setpath map \
setpath base "\textures\"
setpath dialog "\"
setpath music "\musics\"
setpath sound "\sounds\"

setmainmusicpath "main_menu.ogg"

setuserpath "<PERSONAL>"

setframedelay 33

setplayerspeed walk 5
setplayerspeed climb 4

setplayermovingstage jump0 12.0 1 160.0
setplayermovingstage jump1 6.0 0 160.0
setplayermovingstage endjump 0 0 150.0
setplayermovingstage fall0 7.0 0 168.0
setplayermovingstage fall1 15 1 -1
setplayerhighfall freezetime 20
setplayerhighfall height_threshold 300

playerarmoraddreplaceforuse ice Water_1_FX ice_fx
playerarmoraddreplaceforuse ice Water_1B_FX iceB_fx
playerarmoraddreplaceforuse ice Waterfall_1_FX Waterfall_1_ice_FX
playerarmoraddreplaceforuse ice garden_water_fx garden_ice_fx
playerarmoraddreplaceforuse ice cave_water_1 cave_ice_1
playerarmoraddreplaceforuse ice cave_water_2 cave_ice_2
playerarmoraddreplaceforuse ice cave_water_3 cave_ice_3
playerarmoraddreplaceforuse ice cave_water_4 cave_ice_4
playerarmoraddreplaceforuse ice cave_water_5 cave_ice_5
playerarmoraddreplaceforuse ice grass_water_fx grass_ice_fx
playerarmoraddreplaceforuse ice grass_water_fx_nocoll grass_ice_fx_nocoll
playerarmoraddreplaceforuse ice mega_splash mega_splash_freeze
playerarmoraddreplaceforuse ice megabig_waterfall_1 megabig_waterfall_ice
playerarmoraddreplaceforuse ice megabig_waterfall_2 megabig_waterfall_ice_rac
playerarmoraddreplaceforuse ice cave_water_2_splash cave_ice_2_splash
playerarmoraddreplaceforuse ice cave_water_3_splash cave_ice_3_splash
playerarmoraddreplaceforuse ice cave_water_2b_splash cave_ice_2b_splash
playerarmoraddreplaceforuse ice cave_water_3b_splash cave_ice_3b_splash
playerarmoraddreplaceforuse ice Waterfall_stairs_FX waterfall_ice_stairs_fx
playerarmoraddreplaceforuse ice water_splash_fx water_splash_ice_fx
playerarmoraddreplaceforuse ice water_splash_2_fx water_splash_2_ice_fx
playerarmoraddreplaceforuse ice water_splash_3_fx water_splash_3_ice_fx
playerarmoraddreplaceforuse ice big_waterfall_1 big_waterfall_1_ice
playerarmoraddreplaceforuse ice big_waterfall_1_splash big_waterfall_1_splash_ice
playerarmoraddreplaceforuse ice big_waterfall_2 big_waterfall_2_ice
playerarmoraddreplaceforuse ice big_waterfall_2_splash big_waterfall_2_splash_ice
playerarmoraddreplaceforuse ice surface_water_1 surface_water_1_ice
playerarmoraddreplaceforuse icelava lava_1 lava_1_trans
playerarmoraddreplaceforuse icelava lava_2 lava_2_trans
playerarmoraddreplaceforuse icelava lava_3 lava_3_trans
setplayercrossbow delay 5

setplayermovingstage spiderjump0 12.0 1 120
setplayermovingstage spiderjump1 6.0 0 120
setplayermovingstage spiderendjump 0 0 150.0 
setplayermovingstage spiderfall0 7.0 0 168.0 
setplayermovingstage spiderfall1 15 1 -1

setuipos player_lifes_xdelta 29
setuipos player_powers_xdelta 29
setuipos ui_menu_spacing_y 0
setuipos menu_options_marge 90
setuipos menu_play_marge 0
playerarmoricefrozenpropagationtimerdelay 3
setmaxadvscore 74
setmaxvalueforachievement "No more secret" 5
setmaxvalueforachievement "All the levers" 9

setnpcvalue floatingskull maxlife 3

setnpcvalue jellyfish speed 4 // propulsion au départ
setnpcvalue jellyfish slowpercent 0.95 // facteur du ralentissement, plus c'est bas plus ça ralentie vite
setnpcvalue jellyfish slowlimit 0.1  // limite de ralentissement avant de relancer une impulsion, plus c'est bas plus le trajet est long

addmusicinfo bibli_normal.ogg 10.35043325 0
addmusicinfo boat_normal.ogg 3.225199202 0
addmusicinfo boss_calm.ogg 60.13223942 1
addmusicinfo boss_final.ogg 26.84922273 1
addmusicinfo boss_normal.ogg 19.06134903 1
addmusicinfo cave_normal.ogg 7.300930851 0
addmusicinfo cimetery_normal.ogg 1.384475407 0
addmusicinfo crypte_begin.ogg 5.270902682 1
addmusicinfo garden_normal.ogg 6.718346412 0
addmusicinfo gargoyles.ogg 11.10954022 1
addmusicinfo gargoyles_pickup.ogg 18.42231372 1
addmusicinfo gargoyles_tp_save.ogg 10.49356909 1
addmusicinfo main_menu.ogg 20.0039169 1
addmusicinfo mask.ogg 1.266839366 1
addmusicinfo revelations.ogg 11.11844765 1
addmusicinfo secret.ogg 0 1
addmusicinfo hospi.ogg 60.02975467 1
addmusicinfo snow_normal.ogg 0.996114583 0
addmusicinfo underwater_normal.ogg 14.28380256 0
addmusicinfo ending_normal.ogg 0 1

addmusicinfo gargoyles_tp.ogg 25.77129814 1
addmusicinfo gargoyles_tpV2.ogg 11.10954022 1

setfirstmap Crypte_01.lvl
setdefaultspawner begin

setplayerhittimer 10

setnpcvalue boatworm wait 60
setnpcvalue boatworm maxlife 2
setnpcvalue boatworm triggerzone 512 512
setnpcvalue boatworm projectile_speed 8

setnpcvalue crouchskull speed 4
setnpcvalue crouchskull maxlife 2
setnpcvalue crouchskull waitidle 5

setuipos dialogue_frame 128 16
setuirect dialogue_text_frame 2 2 325 106
setui_dialoguecharacterobject skull UI_Dialogue_player
setui_dialoguecharacterobject x UI_Dialogue_X
setui_dialoguecharacterobject memoriae UI_Dialogue_Memoriae
setui_dialoguecharacterobject ignaro UI_Dialogue_Ignaro
setui_dialoguecharacterobject adfectus UI_Dialogue_Adfectus
setui_dialoguecharacterobject fortitude UI_Dialogue_Fortitude
setui_dialoguecharacterobject curiositas UI_dialogue_Curiositas
setui_dialoguecharacterobject infos UI_dialogue_infos
setui_dialoguecharacterobject timor UI_dialogue_Fear
setui_dialoguecharacterobject orphedia UI_dialogue_Orphedia
setui_dialoguecharacterobject timeworld UI_dialogue_Timeworld
setui_dialoguecharacterobject og UI_dialogue_Og
setui_dialoguecharacterobject universe UI_dialogue_Universe
setuipos dialogue_portrait1 -96 0
setuipos dialogue_portrait2 -96 0

setuipos player_frame 0 0
setuipos player_lifes_xpos 238
setuipos player_minimap_center_xpos 297
setuipos player_scythe_center_xpos 340
setuipos player_powers_xpos 347

addparticlesysteminnpc OnExplose Projectile_Boss2_Garden_Scyte "scythe_chunks"
addparticlesysteminnpc OnExplose Projectile_Thrower "Thrower_spit_chunk"
addparticlesysteminnpc OnExplose Projectile_Boss_Garden_Proj2 "boss_garden_proj_chunk"
addparticlesysteminnpc OnExplose Projectile_Boss2_Garden "dream_proj_chunks"
addparticlesysteminnpc OnExplose Projectile_SadSoul "dream_proj_chunks"
addparticlesysteminnpc OnExplose Projectile_Seahorse "seahorse_proj_chunks"
addparticlesysteminnpc OnExplose Projectile_MiniBoss_Snow "hearth_chunks"
addparticlesysteminnpc OnExplose NPC_Boss2_Snow_Enemy "boss2_snow_spider_chunks"
addparticlesysteminnpc OnSpecial_01 NPC_Boss_Bibli "boss_bibli_chunks"
addparticlesysteminnpc OnExplose Projectile_Boss_Final "eye_chunks"
addparticlesysteminnpc OnExplose Projectile_Boss_Final_Last "fear_red_skull_chunks"
addparticlesysteminnpc OnExplose Projectile_Boss2_Bibli_Guardian "gardian_chunks"
addparticlesysteminnpc OnSpecial_01 NPC_Boss2_Bibli "bibli2_boss_chunks"
addparticlesysteminnpc OnExplose NPC_Boss2_Boat_Part1 "boss2_boat_chunks"
addparticlesysteminnpc OnExplose NPC_Boss2_Boat_Part2 "boss2_boat_chunks"
addparticlesysteminnpc OnExplose NPC_Boss2_Boat_Part3 "boss2_boat_chunks"
addparticlesysteminnpc OnExplose Projectile_Boss2_Cave "cave2_boss_spike_chunks"
addparticlesysteminnpc OnExplose Projectile_Boss2_Cave_2 "cave2_boss_mini_chunks"
addparticlesysteminnpc OnSpecial_01 NPC_MiniBoss_Underwater_Arm "miniboss_under_chunks"
addparticlesysteminnpc OnSpecial_01 NPC_Boss_Garden "boss_garden_chunk"
addparticlesysteminnpc OnSpecial_01 NPC_MiniBoss_Bibli "miniboss_bibli_chunk"
addparticlesysteminnpc OnExplose Projectile_BoatWorm "boat_worm_projectile"
addparticlesysteminnpc OnExplose NPC_FloatingSkull "skull_generic"
addparticlesysteminnpc OnExploseWithPower NPC_FloatingSkull "skull_generic_icepower"
addparticlesysteminnpc OnExplose NPC_CrouchSkull "crouch_skull_die"
addparticlesysteminnpc OnExploseWithPower NPC_CrouchSkull "crouch_skull_die_power"
addparticlesysteminnpc OnExplose NPC_Thrower "thrower_chunks"
addparticlesysteminnpc OnExplose NPC_BoatIns "boat_ins_chunks"
addparticlesysteminnpc OnExplose NPC_Garden_Plant "garden_plant_chunks"
addparticlesysteminnpc OnExploseWithPower NPC_Garden_Plant "crouch_skull_die_power"
addparticlesysteminnpc OnExplose NPC_Killing_Mechanism "underground_scythe_chunks"
addparticlesysteminnpc OnExploseWithPower NPC_Killing_Mechanism "underground_scythe_icepower"
addparticlesysteminnpc OnExplose NPC_Lonely_Head "floating_head_chunks"
addparticlesysteminnpc OnExploseWithPower NPC_Lonely_Head "floating_head_icepower"
addparticlesysteminnpc OnExplose NPC_BoatWorm "boatworm_chunks"
addparticlesysteminnpc OnExplose NPC_Chained_Skull "hanging_skull_chunks"
addparticlesysteminnpc OnExplose NPC_CrouchSkull_Boat "crouch_skull_boat_die"
addparticlesysteminnpc OnExploseWithPower NPC_CrouchSkull_Boat "crouch_skull_die_power"
addparticlesysteminnpc OnExplose NPC_CrouchSkull_Ghost "crouch_skull_ghost_1"
addparticlesysteminnpc OnExplose NPC_Dead_Fish "deadfish_chunks"
addparticlesysteminnpc OnExplose NPC_DreamCatcher "dreamcatcher_chunks"
addparticlesysteminnpc OnExploseWithPower NPC_DreamCatcher "crouch_skull_die_power"
addparticlesysteminnpc OnExplose NPC_JellyFish "jellyfish_chunks"
addparticlesysteminnpc OnExploseWithPower NPC_JellyFish "jellyfish_firepower"
addparticlesysteminnpc OnExplose NPC_Seahorse "seahorse_chunks"
addparticlesysteminnpc OnExploseWithPower NPC_Seahorse "seahorse_icepower"
addparticlesysteminnpc OnExplose NPC_ThrowerSkull "trower_skull_chunks"
addparticlesysteminnpc OnExploseWithPower NPC_ThrowerSkull "skull_generic_icepower"
addparticlesysteminnpc OnExplose NPC_Fire_Launcher "firelauncher_chunks"
addparticlesysteminnpc OnExplose Projectile_Boss_Ultimate_Step3_Moving2 "finalboss_spirit_chunks"
addparticlesysteminnpc OnExplose NPC_Bibli_Ghost "bibli_ghost_chunks"
addparticlesysteminnpc OnExploseWithPower NPC_Bibli_Ghost "crouch_skull_die_power"
addparticlesysteminnpc OnExplose Projectile_Crossbow "scythe_chunks"
addparticlesysteminnpc OnExplose Projectile_CrossbowR2 "scythe_chunks"
addparticlesysteminnpc OnExplose Projectile_CrossbowR3 "scythe_chunks"
addparticlesysteminnpc OnExplose Projectile_MiniBoss_Underwater "under_miniboss_eggs_chunks"