Advertisement
ZoriaRPG

BlitTest.zs

Oct 2nd, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.20 KB | None | 0 0
  1. ffc script blitter{
  2.     void run(){
  3.         int a[5]; //destx, desty, destw, desth, rot
  4.         a[0] = 0; a[1] = 0; a[2] = 256; a[3] = 176; a[4] = 0;
  5.         while(1){
  6.             Screen->SetRenderTarget(2);
  7.             Screen->Rectangle(0, 0, 0, 255, 175, 1, 100, 0, 0, 0, true, 128);
  8.             Screen->Circle(0, 100, 80, 65, 0, 100, 1, 0, 0, 0, true, 128);
  9.             Screen->SetRenderTarget(-1);
  10.             Screen->DrawBitmap( 7, 2, 0, 0, 256, 176, a[0], a[1], a[2], a[3], a[4], true);
  11.            
  12.             Screen->DrawInteger(7, 0, 0, 2, 0x02, 0x0F, -1, -1, a[0], 0, 128);
  13.             Screen->DrawInteger(7, 0, 18, 2, 0x02, 0x0F, -1, -1, a[1], 0, 128);
  14.             Screen->DrawInteger(7, 0, 36, 2, 0x02, 0x0F, -1, -1, a[2], 0, 128);
  15.             Screen->DrawInteger(7, 0, 54, 2, 0x02, 0x0F, -1, -1, a[3], 0, 128);
  16.             Screen->DrawInteger(7, 0, 70, 2, 0x02, 0x0F, -1, -1, a[4], 0, 128);
  17.            
  18.             if ( Link->InputUp ) { a[0]++; }
  19.             if ( Link->InputDown ) { a[0]--; }
  20.             if ( Link->InputLeft ) { a[1]--; }
  21.             if ( Link->InputRight ) { a[1]++; }
  22.            
  23.             if ( Link->InputL ) { a[2]--; }
  24.             if ( Link->InputR ) { a[2]++; }
  25.            
  26.             if ( Link->InputEx1 ) { a[3]--; }
  27.             if ( Link->InputEx2 ) { a[3]++; }
  28.            
  29.             if ( Link->InputEx3 ) { a[4]--; }
  30.             if ( Link->InputEx4 ) { a[4]++; }
  31.            
  32.             Waitframe();
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement