Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game Design #4

Open
ashish2199 opened this issue Nov 12, 2017 · 9 comments
Open

Game Design #4

ashish2199 opened this issue Nov 12, 2017 · 9 comments
Labels
Projects

Comments

@ashish2199
Copy link
Owner

ashish2199 commented Nov 12, 2017

This is how I feel we should be designing the game that is General Architecture

Initializing of the Resources

  • load graphics , sounds ect
  • Handle missing resources

Initiate Game

  • Create objects required for the game, Add event handlers , Initialize the game variables like score ect, Initialize physics
  • Loading game state from disk in case we are loading a previously saved game.

Run the main game loop

  • Handle user input such as keyevents
  • Update the game based on user input that is updating the player, enemies ,the world ect
  • Send the updated to game state to server in case of multiplayer
  • Render the updated game state

Finishing up

  • Save important variables like score to disk
  • Release resources , destroy objects

Let me know if there is something that was left out.

@ashish2199 ashish2199 added this to Design in Bomberman Nov 12, 2017
@lyx13710
Copy link

Sound goods. Shouldn't the game initiates only after handling user inputs?

@CiaranRoft
Copy link

Seems good to me. So whats the plan just expand this document out till we have a clear description of how to build the game?

@ashish2199
Copy link
Owner Author

@lyx13710 User input is handled throughout, starting from the launch of application till the application is closed. What meant here was that we wont update the game state until we are aware of what the user input is.
@CiaranRoft Yeah we will expand this document as things progress. I think we will have a clear description only skeleton for the game is built.

There will be many use cases which I haven't covered yet here. I will try to incorporate them here as we progress.

@CiaranRoft
Copy link

@ashish2199 so is there anything I could do to help in this process then?

@ashish2199
Copy link
Owner Author

@CiaranRoft you can study implementations of other 2D game and suggest any changes to this design if any you feel.
Once we are decided with the language. I think we can start focusing more on the implementation details such as layout of functions/classes and skeleton of the code.

@llllllxu
Copy link

When should be begin it?

@EricH-Propser
Copy link

You're missing menu states such as Main menu and pause menu

@ashish2199
Copy link
Owner Author

@EricH-Propser I feel what you are suggesting is more towards the actual user experience of the game rather than the general architecture and flow for the game.
Thanks for your feedback.

@EricH-Propser
Copy link

@ashish2199 it depends on if you're doing state based control or not, if you are - these are valid states. If not, then feel free to ignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Bomberman
  
Design
Development

No branches or pull requests

5 participants