Simulation Games

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
tomshreds
Party member
Posts: 101
Joined: Thu Oct 18, 2012 8:49 pm

Simulation Games

Post by tomshreds »

Hi everybody,

After having passed a week playing with Löve, I now feel comfortable to start building a game with it.

Without throwing away 100% of my idea, it's about enterprise simulation. You'd have to create products, sell them, advertise, and make sure that you make money at the end of the line to be able to proceed in the game.

Such a game wouldn't have that much graphics, but much more complex logic in it. I'm here for suggestions, what do you think would be the most important part of building a simulation game?

I'm starting to think about a table structure that would contain all the games data, and to save and load I'd use "Save Table To Tile" http://lua-users.org/wiki/SaveTableToFile for this part.

I'd like to know the best way to create menus with controls in them, any other ideas are welcome! Resources, questions, suggestions, everything!

Thanks and have a nice day!

/tommy
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Simulation Games

Post by Lafolie »

The love.filesystem is highly recommended over standard lua io, so I'd look into using a löve-specific way to save tables (psssh, there's some at Category:Libraries).

As for making menus, I would use a class implementation and create instances of a menu object as required. You could start out with a function that displays a window with the specified text (perhaps even using some 'fancy' texture atlas if you want resize-able windows with borders) and build it up from there. Give your menu class some callbacks for mouse or key events and you can easily manipulate them from within your gamestates (assuming you use them).
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
Codex
Party member
Posts: 106
Joined: Tue Mar 06, 2012 6:49 am

Re: Simulation Games

Post by Codex »

I don't know if it's the best way, but a quick and easy way is to just store the menu values in a table. If player is scrolling over menu selection set the table value to true. ie. menu_table = {button1 = false, button2 = false, button3 = true}

Hope that helps.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests