14.03.2014, 18:18
There are many demos if you consult the internet.
What you are looking for are "BlitzFonts", check the internal docu for that (type any command related to BlitzFont, e.g. "LoadBlitzFont", and hit SHIFT+HELP while cursor is over it). They are very limited however (8x8 only). What programmers usually do is to paint their own font and write their own font printing routine.
E.g. I did this in Squirm:
PS: You exe doesnt find the spritesheet. I copied "robotstrip.iff" into the same folder but still doesnt find it.
Some hints:
- if you use external files, make them relative to the exectuable, no absolute paths
- you may bundle the files with the executable with "IncBin" and then do DecodeBitmap or DecodeShapes.
What I did in toadies was, whenever the exe could find the spritesheet, it would load it as a bitmap and cut the shapes out, and then re-save the shapes as a seperate file (SaveShapes). if there is no spritesheet, it would load the Shapes (LoadShapes) instead. You can also "IncBin" the Shapes file.
What you are looking for are "BlitzFonts", check the internal docu for that (type any command related to BlitzFont, e.g. "LoadBlitzFont", and hit SHIFT+HELP while cursor is over it). They are very limited however (8x8 only). What programmers usually do is to paint their own font and write their own font printing routine.
E.g. I did this in Squirm:
PS: You exe doesnt find the spritesheet. I copied "robotstrip.iff" into the same folder but still doesnt find it.
Some hints:
- if you use external files, make them relative to the exectuable, no absolute paths
- you may bundle the files with the executable with "IncBin" and then do DecodeBitmap or DecodeShapes.
What I did in toadies was, whenever the exe could find the spritesheet, it would load it as a bitmap and cut the shapes out, and then re-save the shapes as a seperate file (SaveShapes). if there is no spritesheet, it would load the Shapes (LoadShapes) instead. You can also "IncBin" the Shapes file.