ZoriaRPG

Simple Somaria v0.1

Jul 5th, 2018
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Simple Somaria
  2. // ZoriaRPG
  3.  
  4. ffc script Somaria
  5. {
  6.     void run()
  7.     {
  8.         int pos; int x; int y; int blocks;
  9.         while(1)
  10.         {
  11.             switch(Link->Dir)
  12.             {
  13.                 //find best position for Link's midpoint
  14.                 case DIR_UP: { pos = ComboAt(Link->X+8, Link->Y+8)); break;}
  15.                 case DIR_DOWN: { pos = ComboAt(Link->X+7, Link->Y+8)); break;}
  16.                 case DIR_LEFT: { pos = ComboAt(Link->X+8, Link->Y+7)); break;}
  17.                 case DIR_RIGHT: { pos = ComboAt(Link->X+8, Link->Y+8)); break;}
  18.                
  19.             }
  20.             pos = AdjacentCombo(pos, Link->Dir); //update
  21.             if ( Screen->ComboS[pos] != 0 )
  22.             {
  23.                 //error out
  24.             }
  25.             else
  26.             {
  27.                 if ( blocks )
  28.                 {
  29.                     //find and destroy old block
  30.                     //we obviously need to mark them in some way when they move!!
  31.                    
  32.                     //create new block
  33.                 }
  34.                 //set combo type to a 4-way block
  35.             }
  36.             Waitframe();
  37.         }
  38.     }
  39. }
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.

×