#Where do I learn game structure

1 messages · Page 1 of 1 (latest)

digital dove
#

Ive been trying to make like really core system of battleground game but always ended up abandonding it cause i felt like it was a really mess, i really want to learn good game structuring

hearty river
#

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.

digital dove
#

thanks for your help. I did impliment classes or kinda im not really sure

hearty river
#

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

digital dove
#

but uh I just always feel like it is not enough

digital dove
#

you mind if i send you my game file and you take a quick look and give me some comments?

hearty river
#

What makes it feel like it’s not enough?

#

I can’t right now, on my phone I’m sorry

digital dove
#

sure ill just leave it here until you have a chance

digital dove
#

for players

hearty river
#

I won’t be able to for a while, I recommend having someone else look at it if you get the chance.

digital dove
#

then inside i put like ragdoll, state, animations and stuff

hearty river
#

Ragdoll and states can be their own classes

digital dove
#

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

hearty river
#

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

digital dove
#

what does combat class do

pallid harnessBOT
#

studio** You are now Level 7! **studio

digital dove
#

ive never thought abt that tbh

hearty river
#

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

digital dove
#

where and how did you learn these btw

#

alr thanks for your helps anyways

hearty river
# digital dove I am kinda lost at this

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

pallid harnessBOT
#

studio** You are now Level 5! **studio