LEVEL_VERSION(1)
REM	BONUS LEVEL 3 - CRUSH THE IMP LEVEL


REM LEVEL SPECIFIC GAMEPLAY STUFF

rem CREATE_TEXT(1,149"YOUR OBJECTIVE ON THIS SPECIAL LEVEL IS TO CRUSH ALL OF THE BILE DEMONS IN YOUR DUNGEON WITH THE ENEMY BOLDERS THAT YOU WILL FIND AROUND THE PERIMETER. TIME IS LIMITED. GOOD LUCK.")
DISPLAY_OBJECTIVE(149,PLAYER0)
rem CREATE_TEXT(2,150"HALF YOUR TIME IS GONE, YOU MUST BE DECISIVE IN YOUR USE OF THE BOULDERS.")
rem CREATE_TEXT(3,151"TIME'S UP. YOU HAVE FAILED")
rem CREATE_TEXT(4,152"WELL DONE. YOU HAVE EXCELLED IN YOUR USE OF BOULDERS.")



SET_TIMER(PLAYER0,TIMER1)
BONUS_LEVEL_TIME(2000)

IF(PLAYER0,TIMER1 >= 1000)
	IF(PLAYER0,FLAG1 == 0)		
	DISPLAY_OBJECTIVE(150,PLAYER0)
	ENDIF
ENDIF					   

IF(PLAYER0,TIMER1 >= 2000)
	IF(PLAYER0,FLAG1 == 0)	   
	DISPLAY_OBJECTIVE(151,PLAYER0)
	LOSE_GAME
	ENDIF
ENDIF					   

IF(PLAYER0,TOTAL_CREATURES ==0)
	SET_FLAG(PLAYER0,FLAG1,1)  
	DISPLAY_OBJECTIVE(152,PLAYER0)
	ADD_CREATURE_TO_LEVEL(​PLAYER0,​SKELETON,​PLAYER0,​1,​10,​0)
	WIN_GAME
ENDIF
