Advertisement
UnlimitedSupply

ʕ •ᴥ•ʔ

Jun 19th, 2022
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.73 KB | None | 0 0
  1. #include <iostream>
  2. #include <unistd.h>
  3.  
  4.  
  5. //Settings VVV
  6. int length = 3; //default is 10, some times 5 or 3
  7. int AddedSpaces = 12; //0 if large, 12 for <>
  8. std::string picture = "-_-_-_";
  9. //koala is ʕ •ᴥ•ʔ
  10. /*
  11. my favorite styles:
  12.  
  13. [][][][]
  14. ========
  15. -_-_-_
  16. !!!!!!!!
  17. #########
  18. ||||||||
  19.  
  20. */
  21. bool CrazyRaid = false;
  22. bool ENDS = true;
  23. int RepeatsUntilItEnds = 800;
  24. //Settings ^^^
  25.  
  26.  
  27.  
  28. bool Left = false; //default is false
  29. bool keep = true;
  30. int repeats = 0;
  31. int spaces;
  32. int main() {
  33.     spaces = 0;
  34.     do {
  35.         if (not CrazyRaid) {
  36.             for (int pewpew = 50; pewpew >= 0; pewpew--) {
  37.                 std::cout << " ";
  38.             }
  39.             if (AddedSpaces != 0 && AddedSpaces > 0) {
  40.                 for (int wowow = AddedSpaces; wowow >= 0; wowow--) {
  41.                     std::cout << " ";
  42.                 }
  43.             }
  44.         }
  45.         if (ENDS) {
  46.             RepeatsUntilItEnds--;
  47.         }
  48.         if (spaces != 0) {
  49.             for (int y = spaces; y >= 0; y--) {
  50.                 std::cout << " ";
  51.             }
  52.         } else {
  53.             std::cout << " ";
  54.         }
  55.         if (Left) {
  56.             spaces--;
  57.         } else {
  58.             spaces++;
  59.         }
  60.         if (spaces == length) {
  61.             Left = true;
  62.         } else if (spaces == 0 && repeats != 0) {
  63.             Left = false;
  64.         }
  65.         repeats++;
  66.         if (CrazyRaid) {
  67.             std::cout << picture;
  68.         } else {
  69.             std::cout << picture << "\n";
  70.         }
  71.         if (repeats >= 10) {
  72.             repeats = 0;
  73.             sleep(1);
  74.         }
  75.     } while (not ENDS || RepeatsUntilItEnds != 0);
  76.     for (int whee = 30; whee >= 0; whee--) {
  77.         std::cout << "\n";
  78.     }
  79. }
  80.  
  81.  
  82.  
  83.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement