How to make a main menu using HUMP?

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
Rabbid4240
Prole
Posts: 2
Joined: Sat Dec 23, 2023 8:08 pm

How to make a main menu using HUMP?

Post by Rabbid4240 »

Hi, I'm trying to make a menu to house all the simple stuff in my game (Start, Save/Load, Options, etc) using HUMP, but I don't exactly know where to start, it's been a while since I've done programming and I'm kinda new to LOVE and Lua, so any help would be appreciated, I've already gotten a simple movement and camera down.
User avatar
dusoft
Party member
Posts: 635
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: How to make a main menu using HUMP?

Post by dusoft »

You don't specify which part of the hump lib you are using for your menu. It does not really make sense to use camera for menu. Although it's possible to create it that way, it's non standard at the best.

Check the UI libs that might help you laying out a menu:
https://github.com/love2d-community/awesome-love2d#ui

Or check my Layouter that does just that (as a grid layout system):
https://github.com/nekromoff/layouter
Rabbid4240
Prole
Posts: 2
Joined: Sat Dec 23, 2023 8:08 pm

Re: How to make a main menu using HUMP?

Post by Rabbid4240 »

dusoft wrote: Sat Dec 23, 2023 9:48 pm You don't specify which part of the hump lib you are using for your menu. It does not really make sense to use camera for menu. Although it's possible to create it that way, it's non standard at the best.

Check the UI libs that might help you laying out a menu:
https://github.com/love2d-community/awesome-love2d#ui

Or check my Layouter that does just that (as a grid layout system):
https://github.com/nekromoff/layouter
Oh yeah, I've been using gamestate.lua, thought that would help
User avatar
dusoft
Party member
Posts: 635
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: How to make a main menu using HUMP?

Post by dusoft »

Rabbid4240 wrote: Sat Dec 23, 2023 10:56 pm
dusoft wrote: Sat Dec 23, 2023 9:48 pm You don't specify which part of the hump lib you are using for your menu. It does not really make sense to use camera for menu. Although it's possible to create it that way, it's non standard at the best.

Check the UI libs that might help you laying out a menu:
https://github.com/love2d-community/awesome-love2d#ui

Or check my Layouter that does just that (as a grid layout system):
https://github.com/nekromoff/layouter
Oh yeah, I've been using gamestate.lua, thought that would help
Gamestate is cool and will work, but you still need some UI library to draw it. Gamestate wotks well for scene management, where one of the scenes is your menu.
Post Reply

Who is online

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