drawtext.bmx 519 B

12345678910111213141516171819202122
  1. ' drawtext.bmx
  2. ' scrolls a large text string across the screen by decrementing the tickerx variable
  3. Graphics 640,480
  4. Local tickerx#=640
  5. text$="Yo to all the Apple, Windows and Linux BlitzMax programmers in the house! "
  6. text:+"Game development is the most fun, most advanced and definitely most cool "
  7. text:+"software programming there is!"
  8. While Not KeyHit(KEY_ESCAPE)
  9. Cls
  10. DrawText "Scrolling Text Demo",0,0
  11. DrawText text,tickerx#,400
  12. tickerx=tickerx-1
  13. If tickerx<-TextWidth(text) tickerx=640
  14. Flip
  15. Wend
  16. End