ZoriaRPG

Scrollingtext

Mar 16th, 2018
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int fontHeight = 8;
  2. int lineSpacing = 2;
  3. int numLines = 24;
  4. int line_with_spacing = lineSpacing+fontHeight;
  5. int screenHeight = 200;
  6. int totalHeight = numLines * line_with_spacing + screenHeight;
  7. int tempOffset = screenHeight;
  8. int scrollMinY = totalHeight * -1;
  9. bool drawing;
  10.  
  11. int line01[]="String line 1.";
  12. int line02[]="String line 2.";
  13. int line03[]="String line 3.";
  14. int line04[]="String line 4.";
  15. int line05[]="String line 5.";
  16. int line06[]="String line 6.";
  17. int line07[]="String line 7.";
  18. int line08[]="String line 8.";
  19. int line09[]="String line 9.";
  20. int line10[]="String line 10.";
  21. int line11[]="String line 11.";
  22. int line12[]="String line 12.";
  23. int line13[]="String line 13.";
  24. int line14[]="String line 14.";
  25. int line15[]="String line 15.";
  26. int line16[]="String line 16.";
  27. int line17[]="String line 17.";
  28. int line18[]="String line 18.";
  29. int line19[]="String line 19.";
  30. int line20[]="String line 20.";
  31. int line21[]="String line 21.";
  32. int line22[]="String line 22.";
  33. int line23[]="String line 23.";
  34. int line24[]="String line 24.";
  35. while(--tempOffset > scrollMinY)
  36. {
  37. Screen->DrawString(
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×