Skip to content

What is a game? #24

Description

@jcarrier0026

After doing some research, I think we need to really consider what a game is so we can build our game right. We should have a discussion to figure this out. Some questions I think we should be able to answer are:

  1. What is a game? Is it a bunch of sprites/animated sprites that exist on the screen, or is it a bunch of objects that exist in the game that have components, such as a sprite/animated sprite, location, hit box, physics, etc?

  2. How are we going to handle these objects/sprites? Should we create some type of GameObject Manager class to keep track of them?

  3. All of these objects/sprites need to be updated every frame. So far we have been updating everything in game.run(). Should we create a game update function that is called by the game run function, and in the game update function call an update function for each game object/sprite? Or, if we were to use a game object manager, should we call an update function for the game object manager that would update all of the objects?

  4. Should we have a texture manager class? (Not as big of a deal, but I think it makes sense)

I'm typing all this so I don't forget it. It may be beneficial for you to watch some of the videos I've been watching before we talk. I'll link the interesting videos below. The first link is for the texture manager, and the second is for creating a system that would allow us to add components (ex. sprite component, location component, physics component) to an "entity" which is what I would call a "game object". If we were to use this, I think we should probably change some things about it, but I like the general concept.

https://www.youtube.com/watch?v=RqvpkZ7I1aU&list=PLhfAbcv9cehhkG7ZQK0nfIGJC_C-wSLrx&index=6 ~6 min https://www.youtube.com/watch?v=XsvI8Sng6dk&list=PLhfAbcv9cehhkG7ZQK0nfIGJC_C-wSLrx&index=9 ~37 min

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions