Page 1 of 1

How to make a main menu using HUMP?

Posted: Sat Dec 23, 2023 8:12 pm
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.

Re: How to make a main menu using HUMP?

Posted: Sat Dec 23, 2023 9:48 pm
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

Re: How to make a main menu using HUMP?

Posted: Sat Dec 23, 2023 10:56 pm
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

Re: How to make a main menu using HUMP?

Posted: Sun Dec 24, 2023 12:47 pm
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.