Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void talk(void)
- {
- //start on row 4 of the tileset so we can see if the rest actually place
- //or else it won't fit on the screen
- int &tile_num = 2084;
- //set tsmax to the 128th tile on tilset 17
- //because 129th tile swould be tilset 18, tile 1.
- int &tsmax = 2048;
- &tsmax += 127;
- int &tile_pos = 1;
- //we have loaded a 600x550 tileset on tileset 17
- //let's make sure every single tile on that set works
- //We start with tile 1 of row 4, because we know the ones before that work
- //and we want to be able to see the results of the extra tiles.
- tileplace:
- map_tile(&tile_pos, &tile_num);
- draw_background();
- wait(250);
- if (&tile_num < &tsmax)
- {
- &tile_pos += 1;
- &tile_num += 1;
- goto tileplace;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement