SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <gb/gb.h>
  2. #include <stdio.h>
  3. #include "PowerUP.c"
  4.  
  5. void main(){
  6.     UINT8 currentspriteindex = 0;
  7.  
  8.     set_sprite_data(0, 2, Power1);
  9.     set_sprite_tile(0, 0);
  10.     move_sprite(0, 88, 78);
  11.     SHOW_SPRITES;
  12.    
  13.     while(1){
  14.         if(currentspriteindex==0){
  15.             currentspriteindex = 1;
  16.         }
  17.         else{
  18.             currentspriteindex = 0;
  19.         }
  20.         set_sprite_tile(0, currentspriteindex);
  21.         delay(1000);
  22.         scroll_sprite(0,10,0)
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top