Hello, all. I have been trying to start programming in XlibC, but I have a problem. I do not know how to make tilemap correctly, as when I try it, the result is a garbled mess. Is there any simpler way to tilemap rather than typing out the code manually?
Any chance you can post up your code you are using? We might be able to assist you in pointing out your error Smile
We will definitely be able to assist, but as tifreak mentioned if you are able to provide us with some example code and data (sprite data+tilemap data)? We can check it out!
This is how I organized the code, with a data string "mirroring" the screen.

0000002900003130000000310029000000260031
0000002900003130000000140029000000260031
0000002900003130000000310029000000260031
0001020304050607000000310029000000260031
1011121314003130000000310029000000260031
2021223031003130000000310029000000260031
3031330334003130000000310029000000260031
4041431344003130000000310029000000260031
5051529354003130000000310029000013260031
6061626364003153545556570029000000260031
7071727374003130000000310029000000260031
0000000000003153747576770029000000260031
0000000000003130000000310029000000260031
0000000030003130000000310029000000260031
0000002900003130000000310029000000260031
[/img]
Ok so that is your string for an example tilemap? Note that strings are HEX ASCII for use with xLIBC.

Have you tried any BASIC code to get the map to display as yet?
  
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