Make my menu use Hardon Collider?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Suspicious_37
Prole
Posts: 10
Joined: Tue Oct 16, 2012 12:22 pm
Location: Australia
Contact:

Make my menu use Hardon Collider?

Post 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
Attachments
SpaceGame.love
(3.2 MiB) Downloaded 148 times
User avatar
Azhukar
Party member
Posts: 478
Joined: Fri Oct 26, 2012 11:54 am

Re: Make my menu use Hardon Collider?

Post by Azhukar »

Correct me if I'm wrong but that is a library for physics not interface.
User avatar
Suspicious_37
Prole
Posts: 10
Joined: Tue Oct 16, 2012 12:22 pm
Location: Australia
Contact:

Re: Make my menu use Hardon Collider?

Post by Suspicious_37 »

It is for Collision detection I'm pretty sure?
User avatar
Azhukar
Party member
Posts: 478
Joined: Fri Oct 26, 2012 11:54 am

Re: Make my menu use Hardon Collider?

Post 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.
User avatar
Suspicious_37
Prole
Posts: 10
Joined: Tue Oct 16, 2012 12:22 pm
Location: Australia
Contact:

Re: Make my menu use Hardon Collider?

Post 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.
User avatar
Azhukar
Party member
Posts: 478
Joined: Fri Oct 26, 2012 11:54 am

Re: Make my menu use Hardon Collider?

Post 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.
User avatar
Suspicious_37
Prole
Posts: 10
Joined: Tue Oct 16, 2012 12:22 pm
Location: Australia
Contact:

Re: Make my menu use Hardon Collider?

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests