2
\$\begingroup\$

Currently I am doing SFML- c++ as a basement in game development before starting out Unreal

When I see a game project in SFML, the codebase is huge, like above 30 classes, 100 functions, how can I get an idea of the code project, any suggestions about the usual standard class names in SFML projects and their purpose would be helpful.

\$\endgroup\$
  • 5
    \$\begingroup\$ 30 classes and 100 functions is huge? Oh boy, wait until you see really big projects... \$\endgroup\$ – LukeG Jun 27 '17 at 8:29
  • \$\begingroup\$ oh.. then it is not huge ? my bad. \$\endgroup\$ – Kishy Nivas Jun 27 '17 at 8:36
  • \$\begingroup\$ A "huge" project has 100+ files \$\endgroup\$ – ratchet freak Jun 27 '17 at 11:40
  • 1
    \$\begingroup\$ It's quite subjective calling something "huge". It most likely seems huge to you, because of the lack of structure or/and organization. \$\endgroup\$ – Cedric Martens Jun 27 '17 at 14:33
1
\$\begingroup\$

If the code is nice, then the functions have a descriptive name, and you can basically skim through the main game loop to understand what it does.

If it's not that nice, then going throug the code with an inspector is probably your best option.

| improve this answer | |
\$\endgroup\$
1
\$\begingroup\$

In my opinion, the best way to understand for you is to go straight from main function, examining line by line. You don't need (and it doesn't make any sense) to go through all the methods of each class unless you really know where and why they're being used. So just go straight from the beginning, and you're good to go.

| improve this answer | |
\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.