Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - GnoEvenimente

Pages: [1]
1
General / Entire game in single cpp file?
« on: March 27, 2021, 10:28:12 am »
Hello all, I'm an SFML beginner. I have a bit of C++ experience, so I'm familiar with OOP and all that (maybe intermediate level), but I was just wondering: I'm making a very simple text based game, with a few basic graphics and sound elements. would it be really frowned upon to have my entire game in the main.cpp?

For me it's just easier to keep track of everything than dealing with multiple class files, but all the SFML tutorials I see say that's the norm. For bigger projects I can see how keeping classes and functions separated makes sense, but is there really a downside doing it all in one file for a small little game?     

Pages: [1]