Hey all I've been recently trying to code a zombie base building game in ICE but for the life of me cannot figure out how to display tilemaps, I always get a jumble of colors and nothing displays properly I've been searching through other peoples games and the examples with ice to no avail.

does anyone have a solid example of source code? or just an example?

Code:
[i]OUTPUT
OpenVar("LEVELS","r",21)->LEVELS
LoadData("TILES",0,15)->DATA
DefineTilemap(32,32,10,7,5,5,32,160,0,0,DATA,'04030303030303030303040101010000000101040401010100000001010404010101000000010204040202020200000202040402020202000002020403030303030303030303')->TILESET

det(0
GetDataPtr(LEVELS->{TILESET}
Tilemap(TILESET,0,0
Pause
det(1
Have you looked at the example in the README of the actual ICE download? I've checked, and it does work, if you take the time to try it.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement