Discussion: Game Flow Management
Posted: Sat Oct 23, 2010 9:30 am
hi all,
Would like to open a discussion that "may-be" most of us will fast the issue.
"How to make our code more friendly, expandable, readable when deal with Game Flow Management" (in General)
Game Flow can be
- SplashScreen
- MainMenu
- Game Over
- Game Starting
- Game Running (where different events may happen due to user input, game rule which causing game to change to different states)
I believe Love2D is a cool enough engine/framework but i am facing issue like my code getting messier where i put all my logic scatter in
- love.load, love.update, love.draw, love.mousepressed, love.keypressed functions
I came from web development and we hv several design pattern. Like MVC (which seperate business logic, locig flow, GUI)
I really hope someone can suggest this kinda approach in Love2D
Thanks!
Would like to open a discussion that "may-be" most of us will fast the issue.
"How to make our code more friendly, expandable, readable when deal with Game Flow Management" (in General)
Game Flow can be
- SplashScreen
- MainMenu
- Game Over
- Game Starting
- Game Running (where different events may happen due to user input, game rule which causing game to change to different states)
I believe Love2D is a cool enough engine/framework but i am facing issue like my code getting messier where i put all my logic scatter in
- love.load, love.update, love.draw, love.mousepressed, love.keypressed functions
I came from web development and we hv several design pattern. Like MVC (which seperate business logic, locig flow, GUI)
I really hope someone can suggest this kinda approach in Love2D
Thanks!