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?
How do I learn to use HUMP for gamestates?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- 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?
What exactly do you not understand?
Me and my stuff True 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.
Re: How do I learn to use HUMP for gamestates?
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
- 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?
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.
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 True 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.
Who is online
Users browsing this forum: No registered users and 9 guests