Advertisement
Guest User

Untitled

a guest
Jul 18th, 2021
29
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void talk(void)
  2. {
  3. //start on row 4 of the tileset so we can see if the rest actually place
  4. //or else it won't fit on the screen
  5. int &tile_num = 2084;
  6.  
  7. //set tsmax to the 128th tile on tilset 17
  8. //because 129th tile swould be tilset 18, tile 1.
  9. int &tsmax = 2048;
  10. &tsmax += 127;
  11. int &tile_pos = 1;
  12.  
  13. //we have loaded a 600x550 tileset on tileset 17
  14. //let's make sure every single tile on that set works
  15. //We start with tile 1 of row 4, because we know the ones before that work
  16. //and we want to be able to see the results of the extra tiles.
  17. tileplace:
  18. map_tile(&tile_pos, &tile_num);
  19. draw_background();
  20. wait(250);
  21. if (&tile_num < &tsmax)
  22. {
  23. &tile_pos += 1;
  24. &tile_num += 1;
  25. goto tileplace;
  26. }
  27. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement