How do I learn to use HUMP for gamestates?

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
kipo nipo
Prole
Posts: 2
Joined: Sat Nov 05, 2022 10:57 pm

How do I learn to use HUMP for gamestates?

Post by kipo nipo »

I've been looking at the documentation and I just don't understand, I've never been good at comprehending docs though. Most of what I've learned has been through youtube videos, but I can't find anything on humps for gamestates?
How do people understand documentation?
am I stupid?
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: How do I learn to use HUMP for gamestates?

Post by zorg »

What exactly do you not understand?
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
kipo nipo
Prole
Posts: 2
Joined: Sat Nov 05, 2022 10:57 pm

Re: How do I learn to use HUMP for gamestates?

Post by kipo nipo »

zorg wrote: Sun Nov 06, 2022 7:12 am What exactly do you not understand?
I don't understand how the examples given on this page is supposed to be used or how their supposed to work?
https://hump.readthedocs.io/en/latest/gamestate.html
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: How do I learn to use HUMP for gamestates?

Post by zorg »

all states (in the first example, menu and game) have their own "versions" of callback functions defined; draw, update, keyreleased, along with some that have to do with the library more than löve's own callbacks: enter (and leave, if it was included)

switch switches from the menu state to the game state.
love.load sets up everything with registerEvents and switches to the menu state.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests