
gamevar pal 0 1
gamevar orientation 0 1
gamevar tilenum 0 1
gamevar shade 0 1
gamevar x 0 1
gamevar y 0 1
gamevar z 0 1
gamevar ZERO 0 1
gamevar temp 0 2
gamevar jump_temp 0 1
gamevar LOGO_FLAGS 133 0
gamevar LOCK 10 1
gamevar TEXTVAR 0 1
gamevar TEMP 0 1
gamevar ANGVAR 0 2
gamevar ANGVAR2 0 1
gamevar CUTSCENE_TEMP 0 0

gamevar COUNTER 0 2 

gamevar MENU_ON 0 1
gamevar MENU_SCREEN 0 1
gamevar MENU_ROTATE 0 1
gamevar MENU_SHADE1 0 1
gamevar MENU_SHADE2 0 1
gamevar MENU_SHADE3 0 1
gamevar MENU_TRANS 0 1

gamevar PRESS_VAR 0 1
gamevar LANGUAGE_VAR 0 1
gamevar TELEPORT_VAR 0 1
gamevar DOOR_VAR 0 1

gamevar MUSIC_VAR 0 1

gamevar PICTURE_VAR 0 1

gamevar mousex 10420224 1
gamevar mousey 5373952 1
gamevar tmp 0 0
gamevar tmp2 0 0

gamevar knockback 0 1
gamevar knockbackang 0 1

gamevar XVELVAR 0 2
gamevar YVELVAR 0 2
gamevar ZVELVAR 0 2

gamevar rr0 0 1
gamevar rr1 0 1


gamevar USINGKEYLOCK 0 1

gamevar NUM1 0 1
gamevar NUM2 0 1
gamevar NUM3 0 1
gamevar NUM4 0 1

gamevar PLAYERNUM1 0 1
gamevar PLAYERNUM2 0 1
gamevar PLAYERNUM3 0 1
gamevar PLAYERNUM4 0 1

gamevar RUNNING 0 1
gamevar STOPPLAYER 0 1

gamevar MESSAGE_VAR 0 1
gamevar MESSAGE_TRANS1 0 1
gamevar MESSAGE_TRANS2 0 1
gamevar MESSAGE_COUNTER 0 1
gamevar MESSAGE_TYPE 0 2
gamevar MESSAGE_SHADE 0 1

gamevar SPAWN_MENU 0 1
gamevar MENUSOUND_VAR 0 1
gamevar ESC_VAR 0 1

gamevar KEY1_VAR 0 1
gamevar KEY2_VAR 0 1
gamevar PISTOL_VAR 0 1
gamevar FLASHLIGHT_VAR 0 1
gamevar PAGE1_VAR 0 1
gamevar CROWBAR_VAR 0 1
gamevar BATTARIES_VAR 0 1

gamevar FLASHLIGHT_ON 0 1
gamevar DARKNESS_VAR 0 1
gamevar LAMP_VAR 0 1
gamevar RING_VAR 0 1

gamevar USEHAND_VAR 0 1
gamevar GRIND_VAR 0 1
gamevar WHITENOISE_VAR 0 1
gamevar SAFEDOOR_VAR 0 1
gamevar GLASS_VAR 0 1
gamevar NOMENU_VAR 0 1
gamevar HATCH_VAR 0 1
gamevar MOVEME_VAR 0 1
gamevar MOVEME2_VAR 0 1
gamevar MOVEMECOUNTER_VAR 0 1
gamevar SWITCH_VAR 0 1
gamevar STEAM_VAR 0 2
gamevar BLOOD_VAR 0 1
gamevar DEATH_VAR 0 1
gamevar SANITY_VAR 0 1
gamevar EVILHEALTH_VAR 0 1
gamevar SHOOT_VAR 0 1
gamevar CUTSCENE1_VAR 0 1
gamevar CUTSCENE2_VAR 0 1
gamevar CUTSCENESHADE1_VAR 0 1
gamevar CUTSCENESHADE2_VAR 0 1
gamevar INTRO_VAR 0 1
gamevar ENDING_VAR 0 1


gamevar FIRSTRUN_VAR 0 1

define BLACK_SPRITE 3140

define GAME_SPRITE 3585
define TRIGGER_SPRITE 3588
define MUSIC_SPRITE 3589
define SPAWN_SPRITE 3590
define CUTSCENE_SPRITE 3591
define DOOR_SPRITE 3592
define MESSAGE_SPRITE 3595
define MESSAGE_SPRITE2 3116

define DRIP_SPRITE 4053
define STAR_SPRITE 3748
define LAMP_SPRITE 3937
define LOCK_SPRITE1 4049
define LOCK_SPRITE2 4035
define MIRROR_SPRITE1 3975
define MIRROR_SPRITE2 3977
define USEHAND_SPRITE 3727
define TV_SPRITE 3990
define GRIND_SPRITE 4032
define SAFEDOOR_SPRITE 3908
define GLASS_SPRITE 3953
define BLOOD_SPRITE1 4020
define BLOOD_SPRITE2 4021
define BLOOD_SPRITE3 4022
define BLOOD_SPRITE4 4023
define BLOOD_SPRITE5 4024
define SLAMDOOR_SPRITE 3898
define LAMPLIGHT_SPRITE 4078
define SMOKE_SPRITE 3890
define SWITCH_SPRITE 3912
define BLOOD_SPRITE6 3955
define BLOOD_SPRITE7 3956
define BLOOD_SPRITE8 3959
define BLOOD_SPRITE9 3962
define BLOOD_SPRITE10 3963
define BLOODDRIP_SPRITE 3951
define BLOODWALL_SPRITE 3961
define CHAIN_SPRITE 4088
define CHAIN_SPRITE2 4079
define WALLWORDS_SPRITE1 3793
define WALLWORDS_SPRITE2 3794
define WALLWORDS_SPRITE3 3795
define DEMON_SPRITE 4081


define HATCH_SPRITE 3967

define MOVEME1 3916
define MOVEME2 3917
define MOVEME3 3918

define PISTOL_ITEM 4030
define KEY_ITEM 4036
define KEY2_ITEM 4037
define FLASHLIGHT_ITEM 4039
define PAGE_ITEM 3971
define CROWBAR_ITEM 4040
define BATTARIES_ITEM 4059

define BLOCKER 3593

define DOORSOUND1                        398
define MENUSOUND1                        399
define STEPSOUND1                        400
define STEPSOUND2                        401
define STEPSOUND3                        402
define STEPSOUND4                        403
define WINDSOUND                         404
define DOORSOUND2                         405
define KEYSOUND                         406
define LOCKEDSOUND                         407
define SUDDENSOUND                         408
define SCARYSOUND1                         409
define CREAKSOUND                         410
define PICKUPSOUND                         411
define RINGSOUND1                         412
define RINGSOUND2                         413
define SLAMMINGSOUND                         414
define RATSSOUND1                         415
define RATSSOUND2                         416
define WHITESOUND                         417
define PISTOLPICKUPSOUND                         418
define SWITCHSOUND                         419
define FLASHLIGHTSOUND                         420
define SELECTSOUND                         421
define DOORSOUND3                         422
define HUMSOUND                         423
define PAGESOUND                         424
define SPARKSOUND                         425
define DRIPSOUND                         426
define FORCESOUND                         427
define SLAMMINGSOUND2                         428
define TREEFALLSOUND                         429
define GLASSSOUND                         430
define CREAKSOUND2                         431
define STEPSSOUND                         432
define BUSHSOUND                         433
define STONEBREAKSOUND                         434
define UNDERGROUNDSOUND                         435
define SCARYSOUND2                         436
define SCARYSOUND3                         437
define DOORSOUND4                         438
define DOORSOUND5                         439
define GLASSSOUND2                         440
define LOCKEDSOUND2                         441
define SCARYSOUND4                         442
define SCARYSOUND5                         443
define GUNCOCKSOUND                            444
define GUNSHOOTSOUND                            445
define GUNSHOOTSOUND2                            446
define LADDERSOUND                            447
define DOORSOUND6_1                            448
define DOORSOUND6_2                            449
define METALDROPSOUND                            450
define SCARYSOUND6                            451
define SCARYSOUND7                            452
define SCARYSOUND8                            453
define SCARYSOUND9                            454
define STEAMSOUND                            455
define STEAMSOUND2                            456
define SCARYSOUND10                            457
define SCARYSOUND11                            458
define HEARTBEATSOUND                            459
define DEATHSOUND                             460
define PASSINGSOUND                             461
define SCARYSOUND12                            462
define SCARYSOUND13                            463
define DEMONSOUND1                              464
define DEMONSOUND2                              465
define SCARYSOUND14                            466