"How can I do this in the right maner ?" thread !

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Linkpy
Party member
Posts: 102
Joined: Fri Aug 29, 2014 6:05 pm
Location: France
Contact:

"How can I do this in the right maner ?" thread !

Post by Linkpy »

Hellooooo everyone ! :awesome:

So, I want to create a thread with various subjects.
This thread as one goal : have resources for programmer to help achieve what they want in the efficient and reliable way !
If you don't like thinking (or if you can't think :emo: ), this thread is not for you, because it will be like a brainstorming session, where everyone think about other's ideas.

So, everyone can came here, says "Hey ! I want to do this ! But I don't know where to start... :? " and then, everyone will be able to think about it, and answer they own idea of how implement this ! :) But keep in mind that there are no "good" or "bad" answer, because there are always many ways to achieve what you want to do ! :P

But, if you answer, please say on which idea you answer, or it can become a big mess ! :crazy:

Finally, I start with some subject :
  • How make a great Client-Server architecture (using Löve2D) ?
  • How can I handle menus and game screen (using Löve2D) ?
  • How can I create a simple but efficient GUI system ? (not especially using Löve2D !)
  • How can I manage my game's source and data folders ? (not especially using Lôve2D !)
  • How can I manage my source files for having a simple and easy-reading code ? (not especially using Löve2D !)
And voilaaaa ! Thanks for your reading ! :ultrahappy:
Founder of NeoShadow Studio. Currently working on the project "Sirami".
github / linkpy
User avatar
ivan
Party member
Posts: 1918
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: "How can I do this in the right maner ?" thread !

Post by ivan »

How make a great Client-Server architecture (using Löve2D) ?
Not sure, never programmed multiplayer games.
How can I handle menus and game screen (using Löve2D) ?
Start with a reference to the 'current' state/screen of the game.
The 'current' state will need some inputs like mouse/keyboard events.
If you want more control you can use a stack of states.
How can I create a simple but efficient GUI system ? (not especially using Löve2D !)
To keep it simple, you can have just one 'menu' screen and reuse that screen with different options.
When the gameplay requires menus and GUI it gets complicated.
It's usually better to write a few simple custom GUI elements rather than using a generic library.
How can I manage my game's source and data folders ? (not especially using Lôve2D !)
Separate the game's content from the code...
and separate the game logic from the rest of the code.
How can I manage my source files for having a simple and easy-reading code ? (not especially using Löve2D !)
Separate it in domains.
Don't mix rendering, input and physics code in the same file.

That's how it is 'in theory', but in practice there are always exceptions.
Post Reply

Who is online

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