#Where do I learn game structure
1 messages · Page 1 of 1 (latest)
Most games have classes, managers, and databases
Classes are individual components of the game, managers are the scripts that call and interact with these classes, and databases are what the classes and managers reference for customization
Classes should never interact with anything besides databases, but managers can interact with managers, databases and classes. Managers basically just call stuff.
thanks for your help. I did impliment classes or kinda im not really sure
You should make classes like you’re going to reuse them without making any changes for any game that needs it, this way of thinking helps keep the classes isolated
but uh I just always feel like it is not enough
aight got it
you mind if i send you my game file and you take a quick look and give me some comments?
I mean like I have a entityclass
for players
I won’t be able to for a while, I recommend having someone else look at it if you get the chance.
then inside i put like ragdoll, state, animations and stuff
Ragdoll and states can be their own classes
well that was what i did
but you know when it comes to like skill cancelling
and all kind of stuff i just got completely lost
You can set up a manager to handle calling all of these classes based on certain changes and criteria
I mean sometimes a class will use another class but try to not have classes rely on others so much.
There are some classes that do rely on other classes like a combat class
what does combat class do
** You are now Level 7! **
ive never thought abt that tbh
They would probably interact with a entity class or hitbox class
To generate hit boxes
You can make it abstract though, where you can pass certain methods into a combat class from the manager for example.
Like sending a abstract function to the combat class object that the class can call to generate hitboxes
I am kinda lost at this
where and how did you learn these btw
alr thanks for your helps anyways
In a manager script you can send a function that calls a class (and does some other customized things as well) inside of it to a class which when needed to it will call the function. This way it doesn’t have to require another class which is a form of abstraction and helps keep the classes a little more isolated
** You are now Level 5! **