4 # first reset then clear
29 # program assumes 0 based, we're 1 based, apparently
33 echo -en '\033['$y';'$x'f'
66 local scoreboard_width=43
67 move_cursor 0 $scoreboard_y
69 printf "%.0s-" {1..42}
72 printf "%.0s " {1..42}
75 printf "%.0s-" {1..42}
80 update_score_board() {
81 local value=${1:-$__arcade_score}
83 if [ $value -gt 0 ]; then
89 arcade_screen_init() {
96 arcade_screen_update() {
105 arcade_screen_finish() {
116 # first, clear the screen and hide the cursor
122 if [ $x -gt $max_x ]; then
125 if [ $y -gt $max_y ]; then
133 if [ ${blocks[$x,$y]+a} ]; then
143 move_cursor 0 $((max_y+4))
144 echo "We have ${#blocks[@]} blocks on the screen"
145 echo "The maximum x was $max_x"
146 echo "The maximum y was $max_y"