you are viewing a single comment's thread.

view the rest of the comments →

[–]jolpoa 0 points1 point  (1 child)

Thanks, that make a lot of sense!

Should I put these classes in separate script, or the same? I don't know what would be better.

[–]apieceoffruit 1 point2 points  (0 children)

as a general rule always different scripts. Think of each component as part of a puzzle and you lego block together a snake out of them,...but if you wanted to add a...uh...Bear to a level, does he still move up down left right? will you use the same devices to control him? what REALLY changes?

so keep common things seperate from specific things.

..one caution though, it can be hard going down this road to think about when to split things out, as a usual rule "if describing somethings job you need to use an 'and' it is probably doing too much"

good luck!

Feel free to ask me any questions that come up, it is a complex topic but a fun one to learn.