I develop with the the setting that varables are not auto initialized. That way you will get an error for any varable that you use but do not initialize.
To fix the numbers in the display, change the atlas from 1024,1024 and increase the atlas size to 2048,1024
the "universe16a.png" is a 1024x1024 bit map, so loading it will use an atlas of 1024x1024
I changed the font map from 0,400 to 1024,0
You must be aware of the bitmap sizes an place them in the atlas in the correct place.
Const atlas = GenTileAtlas(2048, 1024)
' Put the court background into the atlas
Const courtTileset = GenTileset(assetDir$ + "universe16a.png")
GenMapToAtlas atlas, courtTileset, 0, 0
' Create a font and put it into the atlas
Const font = GenDefaultFont(1,48,10, "0123456789")
GenMapToAtlas atlas, font, 1024, 0