Function showCompass()
ink 0,0
set text size 22
set text to bold
cang = camera angle y()
if cang > 340 OR cang <= 20 then direc$ = "N"
if cang > 290 AND cang <= 340 then direc$ = "NW"
if cang > 200 AND cang <= 250 then direc$ = "SW"
if cang > 20 AND cang <= 70 then direc$ = "NE"
if cang > 160 AND cang <= 200 then direc$ = "S"
if cang > 70 AND cang <= 110 then direc$ = "E"
if cang > 250 AND cang <= 290 then direc$ = "W"
if cang > 100 AND cang <= 160 then direc$ = "SE"
text 100,735,direc$
set text to normal
Endfunction