Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <gb/gb.h>
- #include <stdio.h>
- #include "PowerUP.c"
- void main(){
- UINT8 currentspriteindex = 0;
- set_sprite_data(0, 2, Power1);
- set_sprite_tile(0, 0);
- move_sprite(0, 88, 78);
- SHOW_SPRITES;
- while(1){
- if(currentspriteindex==0){
- currentspriteindex = 1;
- }
- else{
- currentspriteindex = 0;
- }
- set_sprite_tile(0, currentspriteindex);
- delay(1000);
- scroll_sprite(0,10,0)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement