; String Example ; -------------- ; String$ builds a new string by repeating a source string n times. ; A ruled-off game-over banner Print String$("=",40) Print "GAME OVER - Robo scored 1250" Print String$("=",40) Print "" ; A quick text health bar: filled blocks plus empty ones health=7 Print "Health: ["+String$("#",health)+String$("-",10-health)+"] "+health+"/10" ; Longer strings repeat too Print "" Print "Battle cry: "+String$("Waha! ",3) Print "" Print "Press any key to close the example" WaitKey End