Advertisement
Guest User

Short animation

a guest
Apr 22nd, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. #include <gb/gb.h>
  2. #include <stdio.h>
  3. #include "Gyroid.c"
  4.  
  5. void performantdelay(UINT8 numloops);
  6.  
  7. void main() {
  8.     UINT8 currentspriteindex = 0;
  9.  
  10.     set_sprite_data(0,4,GyroidSprite);
  11.     set_sprite_tile(0,0);
  12.     move_sprite(0,88,88);
  13.     SHOW_SPRITES;
  14.  
  15.     while(1) {
  16.        for(currentspriteindex = 0; currentspriteindex < 4; currentspriteindex++) {
  17.            set_sprite_tile(0, currentspriteindex);
  18.            performantdelay(10);
  19.            //scroll_sprite(0,10,0);
  20.        }
  21.     }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement