Page 1 of 1
Make my menu use Hardon Collider?
Posted: Tue Jan 06, 2015 1:17 pm
by Suspicious_37
Im looking to change my menu code to something more practicable and simple. Im going to use the Hardon Collider for the game anyway so thought may as well use it for the menu too. Was just wondering if anyone knows a good way to do this. Very new to Hardon Collider and finding it pretty hard to find out how to use it because the tutorials seem like they might be written for a higher level programer. But anyway would be greatly appreciated if someone could help me out or recommended a better way to do my menu.
Im having trouble uploading a .love file so just follow the link to my project page and download Pre-Alpha 0.2.0 for a look at my code.
My project page on reddit if anyones interested:
http://www.reddit.com/r/piquant2013
Re: Make my menu use Hardon Collider?
Posted: Tue Jan 06, 2015 1:47 pm
by Azhukar
Correct me if I'm wrong but that is a library for physics not interface.
Re: Make my menu use Hardon Collider?
Posted: Tue Jan 06, 2015 2:18 pm
by Suspicious_37
It is for Collision detection I'm pretty sure?
Re: Make my menu use Hardon Collider?
Posted: Tue Jan 06, 2015 2:28 pm
by Azhukar
Suspicious_37 wrote:It is for Collision detection I'm pretty sure?
My mistake, didn't realize it only handled collisions without resolving them.
Glanced over the documentation, it seems pretty straight forward. I have to note that it does not look practical for an interface. Which parts are you having trouble with?
What kind of menu are you trying to do? Describe the functionality.
Re: Make my menu use Hardon Collider?
Posted: Tue Jan 06, 2015 3:19 pm
by Suspicious_37
Azhukar wrote:Suspicious_37 wrote:It is for Collision detection I'm pretty sure?
My mistake, didn't realize it only handled collisions without resolving them.
Glanced over the documentation, it seems pretty straight forward. I have to note that it does not look practical for an interface. Which parts are you having trouble with?
What kind of menu are you trying to do? Describe the functionality.
The Menu is already finished. If you download my game you can see it and see how its coded. What I am trying to do is rebuild the menu code because its long and complicated. I was thinking of using this Library to do so.
Re: Make my menu use Hardon Collider?
Posted: Tue Jan 06, 2015 4:39 pm
by Azhukar
Suspicious_37 wrote:The Menu is already finished. If you download my game you can see it and see how its coded. What I am trying to do is rebuild the menu code because its long and complicated. I was thinking of using this Library to do so.
Unless your interface will be based on colliding shapes, I do not recommending using this library for it. The callback system it has is unsuitable for an interface and you only need a simple rectangular element to detect mouse and call a function.
Re: Make my menu use Hardon Collider?
Posted: Tue Jan 06, 2015 10:07 pm
by Suspicious_37
Azhukar wrote:Unless your interface will be based on colliding shapes, I do not recommending using this library for it. The callback system it has is unsuitable for an interface and you only need a simple rectangular element to detect mouse and call a function.
Oh alright then fair enough then. thanks! Do you like the way my menu is done or do you recommend another better way? This is the main thing that my post is about. Im just looking for a better way that I could do my menu because I think its long and complicated and could be done a lot better. If you think its fine then I will stop worry about it haha.