Pinkishu

screenProgb

Aug 12th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.89 KB | None | 0 0
  1. local aScreen = {
  2.     "                                     ",
  3.     "                                     ",
  4.     "            %%%      %%%             ",
  5.     "           %%%%%    %%%%%            ",
  6.     "          %%%%%%%%%%%%%%%%           ",
  7.     "          %%%%%%%%%%%%%%%%           ",
  8.     "           %%%%%%%%%%%%%%            ",
  9.     "              %%%%%%%%%              ",
  10.     "                %%%%%                ",
  11.     "                 %%%                 ",
  12.     "                  %                  "
  13. }
  14.  
  15. local bScreen = {
  16.     "                                     ",
  17.     "                                     ",
  18.     "        $$$     $$$                  ",
  19.     "        $$$     $  $                 ",
  20.     "                $   $                ",
  21.     "                $   $                ",
  22.     "        $$$     $  $                 ",
  23.     "        $$$     $$$                  ",
  24.     "                                     ",
  25.     "                                     ",
  26.     "                                     "
  27. }
  28.  
  29.  
  30. local screens = {
  31.     {
  32.         "                                     ",
  33.         "   %%  %% %    %%% %%  %  %%         ",
  34.         "   %%  %%      %   % % % %           ",
  35.         "   %%%%%% %    %%  %%  % %           ",
  36.         "   %%  %% %    %   %   % %           ",
  37.         "   %%  %% %  % %%% %   %  %%         ",
  38.         "            %                        ",
  39.         "                                     ",
  40.         "                                     ",
  41.         "                                     ",
  42.         "                                     "    
  43.     },
  44.     {
  45.         "                                     ",
  46.         "   %%  %%  %%   %         %          ",
  47.         "   %%  %% %  %   %       %           ",
  48.         "   %%%%%% %  %   %   %   %           ",
  49.         "   %%  %% %  %    % % % %            ",
  50.         "   %%  %%  %%      %   %             ",
  51.         "                                     ",
  52.         "    %%      %  %                     ",
  53.         "    % %     %  %                     ",
  54.         "    %%      %  %                     ",
  55.         "    % %      %%                      "    
  56.     },
  57.     {
  58.         "                                     ",
  59.         "       %%%%%%%%%%%%%%%%%%%%%%%%      ",
  60.         "                           %%%%      ",
  61.         "       %%%%%%%%%%%%%%%%%%%%%%%%      ",
  62.         "       %%%%                          ",
  63.         "       %%%%%%%%%%%%%%%%%%%%%%%%      ",
  64.         "                                     ",
  65.         "                 %%%%                ",
  66.         "                 %%%%                ",
  67.         "                                     ",
  68.         "                                     "    
  69.     }
  70. }
  71.  
  72. local scNum = 1
  73. oScreen =nil
  74. --effectsAPI.playEffect(1,1,nil,aScreen,"randomScatter")
  75.  
  76. local effects = {"randomScatter","vertLines"}
  77. local function getEff() return effects[math.random(1,#effects)] end
  78. term.clear()
  79. while true do
  80.     effectsAPI.playEffect(1,1,oScreen,screens[scNum],getEff())
  81.     sleep(5)
  82.     oScreen = screens[scNum]
  83.     scNum=scNum+1
  84.     if scNum > #screens then scNum = 1 end
  85.    
  86.     --effectsAPI.playEffect(1,1,bScreen,aScreen,"randomScatter")
  87. end
Advertisement
Add Comment
Please, Sign In to add comment