Search found 2 matches

by roramigator
Mon Jul 18, 2022 3:01 am
Forum: Support and Development
Topic: How do you code game states?
Replies: 11
Views: 14962

Re: How do you code game states?

... I really wonder what is with people answering years old dead threads... are you just bored that you google search something and then write an essay to a random post, or did you lose a dare or what? :huh: Did I offend you? I just had the same problem and couldn’t find an answer, when I discovere...
by roramigator
Fri Jul 15, 2022 7:21 pm
Forum: Support and Development
Topic: How do you code game states?
Replies: 11
Views: 14962

Re: How do you code game states?

I do it as follows, I'm not sure how efficient is it, but is convenient. the default game loops are `love.load`, `love.update(dt)`, and `love.draw`; you can replace the value of these functions for your own: function love.load() end function love.update() if love.keyboard.isDown("escape") ...