; -----------------------------------------------------------------------------------
; StarLine 256 bytes intro [bonus variant settings] (c) 2018 by Jin X (jin_x@list.ru)
; -----------------------------------------------------------------------------------

star_count	=	70			; number of stars (don't use more than 160 for 256b intro, not more than 135 for full ~348b mode)
max_speed	=	2			; max moving speed (1..127, don't use more than 5 or 10)
inc_distance	=	0			; 0=don't increase distance of connectable stars, 1=increase on ~ 43% (1/0.7), 2=increase twice
if	inc_distance
  pts_on_line	=	128			; number of points on line (must be power of 2, max 128 !!!)
else
  pts_on_line	=	64			; number of points on line (must be power of 2, max 128 !!!)
end if
;pts_on_line	=	pts_on_line/2		; uncomment to add dotted line effect (speed up)
;pts_on_line	=	pts_on_line/2		; uncomment to add dotted line effect (speed up)

draw_stars	=	0			; 1=draw stars and lines, 0=draw lines only
star_color	=	0x67;0x44		; color of stars (must be > 63 if set_palette = 1: 0x67=light-blue, 0x44=yellow)
set_palette	=	-1			; 1=set palette, 0=use standard white gradient, -1=use different colors

connect_flash	=	0			; 1=flash on slow connection/disconnection, 0=don't (ignored when set_palette = -1 !!!)
flash_freq	=	5			; flash display frequency when connect_flash = 1 (1=minimal, 0x100=maximal, 0=on music beat (see flash_beat_freq); ignored when set_palette = 0 !!!)
flash_beat_freq	=	16			; flash beat frequency (when flash_freq = 0; must be power of 2 !!!)
blink_on_beat	=	1			; 1=blink screen on beat, 0=don't
blink_color	=	0x70			; color of screen blinking

midi_sound	=	5			; play midi sound (e.g. in DOSBox): 1=PSP music (maybe cacaphony) :), 2=Grasshopper, 3=Pop Corn, 4=Omen, 5=I'm raving, 0=no sound
midi_polyphony	=	2			; 1,2=polyphonic sound type 1 or 2, 0=monophonic sound
sound_speed	=	4			; sound speed: 4=normal speed, 8=slow speed (must be power of 2 !!!)
base_note	=	70			; base note for midi sound

delay_type	=	1			; 0=no delay, 1=hlt delay, 2=int 0x15 delay, 3=vertical retrace, 4=bios timer delay (in ascending order of code size)
sqrt_distance	=	0			; 1=calc distance via sqrt, 0=use max of vert and horiz distance

safe_mode	=	0			; 1=init all registers and df flag, 0=compact mode
careful_code	=	2			; 1=more careful code, 2=most careful code (with most beautiful and correct result) :), 0=compact mode
later_clear_buf	=	0			; clear buffer: 0=at the beginning of main loop, 1=at the end of main loop (blinks on first frame but 2 bytes smaller) :)
dosbox_compat	=	1			; 1=DOSBox compatible mode, 0=don't ajust to DOSBox using
randomize	=	0			; 1=init random number generator, 0=don't

allow_exit	=	1			; 1=allow exit by Esc key, 0=don't
ret_text_mode	=	1			; 1=return to text mode, 0=don't
print_sign	=	0			; 1=print signature on exit, 0=don't
wait_key	=	0			; 1=wait a keypress on exit, 0=don't

include	'..\..\sources\starline.inc'		; main code include file
