Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <unistd.h>
- //Settings VVV
- int length = 3; //default is 10, some times 5 or 3
- int AddedSpaces = 12; //0 if large, 12 for <>
- std::string picture = "-_-_-_";
- //koala is ʕ •ᴥ•ʔ
- /*
- my favorite styles:
- [][][][]
- ========
- -_-_-_
- !!!!!!!!
- #########
- ||||||||
- */
- bool CrazyRaid = false;
- bool ENDS = true;
- int RepeatsUntilItEnds = 800;
- //Settings ^^^
- bool Left = false; //default is false
- bool keep = true;
- int repeats = 0;
- int spaces;
- int main() {
- spaces = 0;
- do {
- if (not CrazyRaid) {
- for (int pewpew = 50; pewpew >= 0; pewpew--) {
- std::cout << " ";
- }
- if (AddedSpaces != 0 && AddedSpaces > 0) {
- for (int wowow = AddedSpaces; wowow >= 0; wowow--) {
- std::cout << " ";
- }
- }
- }
- if (ENDS) {
- RepeatsUntilItEnds--;
- }
- if (spaces != 0) {
- for (int y = spaces; y >= 0; y--) {
- std::cout << " ";
- }
- } else {
- std::cout << " ";
- }
- if (Left) {
- spaces--;
- } else {
- spaces++;
- }
- if (spaces == length) {
- Left = true;
- } else if (spaces == 0 && repeats != 0) {
- Left = false;
- }
- repeats++;
- if (CrazyRaid) {
- std::cout << picture;
- } else {
- std::cout << picture << "\n";
- }
- if (repeats >= 10) {
- repeats = 0;
- sleep(1);
- }
- } while (not ENDS || RepeatsUntilItEnds != 0);
- for (int whee = 30; whee >= 0; whee--) {
- std::cout << "\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement