Sprite Drawing Tools
Sprite Drawing Tools
This a new project I've been working on. The purpose of this program is to make it easier for you to figure exact screen
positions for drawing sprites, text, shapes etc. Instead of using trial and error, this program will allow you to get the perfect screen
coordinates for all your drawing needs. I recommend reading the Read Me found in the HELP AND READ ME folder before use.
positions for drawing sprites, text, shapes etc. Instead of using trial and error, this program will allow you to get the perfect screen
coordinates for all your drawing needs. I recommend reading the Read Me found in the HELP AND READ ME folder before use.
- Attachments
-
- Sprite Drawing Tools.zip
- (5.43 MiB) Downloaded 181 times
- krautersuppe
- Posts: 91
- Joined: September 14th, 2015, 10:58 pm
- Location: Istanbul
Re: Sprite Drawing Tools
Nice program. There is some sort of assertion fail in debug mode(vector subscript out of range) but release works fine.
I thought it would be useful to use this in combination with s0llys Excel tilemap stuff.
Will try to use this when i finally got enough willpower to proceed with my next game project.
I thought it would be useful to use this in combination with s0llys Excel tilemap stuff.
Will try to use this when i finally got enough willpower to proceed with my next game project.
DSU
Discord: dsu1, GitHub: https://github.com/DSpUz
Discord: dsu1, GitHub: https://github.com/DSpUz
Re: Sprite Drawing Tools
Chili buddy ole pal long time no talk. I’ve doing a lot of coding but I don’t have internet at home. So I haven’t been active here. I’ve manage to lock myself out my account again. Can’t remember my login info. The project is just a utility allows to mark point or regions where you would want your sprites and then you cann export all the screen coordinates to a text document download and lemme know what you think.
Re: Sprite Drawing Tools
Thanks bro. I’m just seeing your reply. I compiled it on my machine and got the same error. I’m not really sure why though. I looked up that error and it says basically that I’m trying out elements into a vector with the size 0 but in my initializer list I reserve 17 spaces for it.krautersuppe wrote: ↑August 29th, 2019, 8:08 amNice program. There is some sort of assertion fail in debug mode(vector subscript out of range) but release works fine.
I thought it would be useful to use this in combination with s0llys Excel tilemap stuff.
Will try to use this when i finally got enough willpower to proceed with my next game project.
Last edited by Walkabp on September 6th, 2019, 6:17 am, edited 1 time in total.
Re: Sprite Drawing Tools
Chili you think can help solve this issue. If you compile in debug it throws the error vector subscript out of range. I’m only using one vector. It’s declared in tools.h. In my tools constructor I’m reserving 17. The program will run just fine in release.
Re: Sprite Drawing Tools
ok I found a solution that works though I don’t think it’s the best. Right after my reserve call. I call rects.emplace_back(0,0,0,0); and that fixed the assertion error
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Sprite Drawing Tools
You are reserving, but not resizing.
rects.reserve(NUMRECTS);
All this does is allocates space for NUMRECTS, but the size is still 0. You can use rects.resize(NUMRECTS)
Or, you can call .emplace_back() or .push_back() on all the new elements.
rects.reserve(NUMRECTS);
All this does is allocates space for NUMRECTS, but the size is still 0. You can use rects.resize(NUMRECTS)
Or, you can call .emplace_back() or .push_back() on all the new elements.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
Re: Sprite Drawing Tools
Thanks for the response but I did solve the issue. I explained what I did in the response just before yours.albinopapa wrote: ↑September 6th, 2019, 7:26 amYou are reserving, but not resizing.
rects.reserve(NUMRECTS);
All this does is allocates space for NUMRECTS, but the size is still 0. You can use rects.resize(NUMRECTS)
Or, you can call .emplace_back() or .push_back() on all the new elements.
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Sprite Drawing Tools
Hope the explanation or reason for your previous usage was in error was helpful at least.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com