Page 2 of 6

Re: TilemapRamino example

PostPosted: Sat May 27, 2017 9:18 pm
by awesome101
Ok I'm looking at the code one sec

Re: TilemapRamino example

PostPosted: Sat May 27, 2017 9:27 pm
by awesome101
Can you debug what maxDDX and maxDDY are
Also, for just for testing purposes you should keep the tile map width and height within 20x15 and change the data and see if that works

Re: TilemapRamino example

PostPosted: Sat May 27, 2017 9:41 pm
by awesome101
Why is drawX and drawY an int_8t??!! It needs to be int_16t!!
Why are dw and dh uint_8t??!! They need to be uint_16t!!
Why are ddw and ddh uint_8t??!! They need to be uint_16t!!
In drawBitmap() the x and y values need to be uint_16t!!

Re: TilemapRamino example

PostPosted: Sat May 27, 2017 9:50 pm
by awesome101
Anything involving the position on the screen (from 0-320 or from 0-240) need to be uint16_t!! The reason your tilemap isn't working is because you used int8_t and uint_8t for positions on the screen but those can only range from 0-255!

Re: TilemapRamino example

PostPosted: Sat May 27, 2017 9:52 pm
by Duhjoker
That was from a library i had set up that kurtE helped me with for esp. I didnt something from to my old library and now it wont compile. So i just reopened the master and did a redo. They are all uint16_t and int16_t. With out that change you dont get very much.

No problem to change the tilemap sheets to 22x15

Re: TilemapRamino example

PostPosted: Sat May 27, 2017 9:53 pm
by awesome101
You also need to change the data for the 20x15

Re: TilemapRamino example

PostPosted: Sat May 27, 2017 9:53 pm
by Duhjoker
You mean 16 right and not 1

Re: TilemapRamino example

PostPosted: Sat May 27, 2017 9:53 pm
by awesome101
So did it work?

Re: TilemapRamino example

PostPosted: Sat May 27, 2017 9:55 pm
by awesome101
what do you mean by "you mean 16 not 1 right"

Re: TilemapRamino example

PostPosted: Sat May 27, 2017 9:56 pm
by awesome101
Change the with and height to 20 and 15 respectively and then change the data in tikemap_black to 20 rows by 15 columns