2
0

drawtext.bmx 551 B

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