event_inherited();

dist_tor = 72;
dist_y_tor = 48;
indi_y_offset = -72;

callback = function()
{
	var _func = function()
	{
		unlock_player();
		unlock_door();
	}
	type(["You find the access card!"], _func);
	global.save_data.player.abilities.accesscard = true;
	
	save_game_to_disk();
	instance_destroy();
}

x_spd = random_range(-3, 3);
y_spd = random_range(-15, -5);

image_angle = random(360);

restitution = 0.5;

flash_duration = 0;
flash_timer = 0;
u_flash_alpha = shader_get_uniform(sh_flash, "f_alpha");