Team Ai
Datasetpublic

hschumann2/TempleOS-Source-Code

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes847downloads
SpritePutExt.txt28 linesDownload Raw Back to Graphics
1 2/*If you press <CTRL-t> you will see this:3 4$IB,"<1>",BI=1,BP="::/Demo/Graphics/SpritePut.HC,2"$5 6That imports an external sprite.  It's7called a DOCEF_BIN_PTR_LINK.  See BP="".8 9Press <CTRL-r> and "Ptr to Sprite".10Then, enter a file and the number of11the sprite in the file.  Note: the12number can get messed-up if you change13the order of sprites in the source file.14You can link to a tag string instead of a num.15*/16 17U0 SpritePutExt()18{19  I64 i;20  for (i=0;i<3;i++) {21    "US Map:";22    Sprite(<1>);23    "%h12c",'\n'; //"h" is a secondary arg.  Print 12 newline chars.24  }25}26 27SpritePutExt;28