; this is an example level UberASM file
; it assumes that BreakTheTargets.asm is in your UberASM library folder

; these should match the ram addresses of the same name in BreakTheTargets.asm
!RAM_total = $0F5F
!RAM_seconds = $0F60
!RAM_frames = $0F61

; the amount of targets placed in this sublevel
!targets = 5

; the time limit
; 	seconds -- appropriately, the amount of seconds
; 	frames -- the fraction of a second in 60ths. Shouldn't be higher than 59
; 	so, for example, the default values of 4 and 30 together represent a time limit of 4.5 seconds
!seconds = 4
!frames = 30

macro call_library(i)
	PHB
	LDA.b #<i>>>16
	PHA
	PLB
	JSL <i>
	PLB
endmacro

init:
	%call_library(BreakTheTargets_init)
	LDA #!targets
	STA !RAM_total
	LDA #!seconds
	STA !RAM_seconds
	LDA #!frames
	STA !RAM_frames
	RTL
	
main:
	%call_library(BreakTheTargets_main)
	RTL