Understanding the language, error messages, etc.
by awesome101 » Sat May 27, 2017 9:18 pm
Ok I'm looking at the code one sec
-
awesome101
-
- Posts: 159
- Joined: Sat Jun 20, 2015 6:56 pm
by awesome101 » Sat May 27, 2017 9:27 pm
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
-
awesome101
-
- Posts: 159
- Joined: Sat Jun 20, 2015 6:56 pm
by awesome101 » Sat May 27, 2017 9:41 pm
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!!
-
awesome101
-
- Posts: 159
- Joined: Sat Jun 20, 2015 6:56 pm
by awesome101 » Sat May 27, 2017 9:50 pm
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!
Last edited by
awesome101 on Sat May 27, 2017 10:04 pm, edited 2 times in total.
-
awesome101
-
- Posts: 159
- Joined: Sat Jun 20, 2015 6:56 pm
by Duhjoker » Sat May 27, 2017 9:52 pm
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
-
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
by awesome101 » Sat May 27, 2017 9:53 pm
You also need to change the data for the 20x15
-
awesome101
-
- Posts: 159
- Joined: Sat Jun 20, 2015 6:56 pm
by Duhjoker » Sat May 27, 2017 9:53 pm
You mean 16 right and not 1
Last edited by
Duhjoker on Sat May 27, 2017 9:54 pm, edited 1 time in total.
-
Duhjoker
-
- Posts: 446
- Joined: Sat Jul 02, 2016 4:57 am
- Location: Where Palm trees grow
by awesome101 » Sat May 27, 2017 9:53 pm
So did it work?
-
awesome101
-
- Posts: 159
- Joined: Sat Jun 20, 2015 6:56 pm
by awesome101 » Sat May 27, 2017 9:55 pm
what do you mean by "you mean 16 not 1 right"
-
awesome101
-
- Posts: 159
- Joined: Sat Jun 20, 2015 6:56 pm
by awesome101 » Sat May 27, 2017 9:56 pm
Change the with and height to 20 and 15 respectively and then change the data in tikemap_black to 20 rows by 15 columns
-
awesome101
-
- Posts: 159
- Joined: Sat Jun 20, 2015 6:56 pm
Return to Programming Questions
Who is online
Users browsing this forum: No registered users and 1 guest