rem HUD and UI: text - OpenDBC tutorial (DarkBASIC Classic) sync on : sync rate 60 autocam off color backdrop rgb(20, 24, 40) make object cube 1, 10 color object 1, rgb(90, 200, 255) position camera 0, 8, -30 point camera 0, 0, 0 set text font "Arial" set text size 18 do yrotate object 1, wrapvalue(object angle y(1) + 1) score = score + 7 ink rgb(255, 210, 90), 0 s$ = "SCORE " + str$(score) text screen width() - text width(s$) - 20, 16, s$ sync loop