GameState help

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
pielago
Party member
Posts: 142
Joined: Fri Jun 14, 2013 10:41 am

GameState help

Post by pielago »

Okay I read the HUMP and i am totally lost
for beginners that's like (I AM DONE) its kind of difficult makes you want to quit but for sure here I can get a better help!

So.. is it possible IF someone could .ZIP me a small and super simple way to do gamestate?
Last edited by pielago on Wed Oct 02, 2013 5:36 am, edited 2 times in total.
User avatar
Zer0
Citizen
Posts: 59
Joined: Sat Oct 06, 2012 9:55 am
Location: Sweden
Contact:

Re: GameState help

Post by Zer0 »

http://vrld.github.io/hump/

seems to have some good examples for hump.

If you wondered about buttons and stuff you would probably want to create a table of buttons like.

Code: Select all

buttons = {
  {
    n="Play", -- name
    x=300,
    y=250,
    w=200, -- width
    h=100, -- height
    f=function() Gamestate.switch(game) end,
  },
}
then loop through it in menu:mousepressed to see what button is pressed.
If you can't fix it, Kill it with fire. ( Preferably before it lays eggs. )
Post Reply

Who is online

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