Closed noondie closed 6 years ago
Ok, most of it worked. I made a few changes:
stdafx.h cannot be within a precompiler #ifdef when compiling with visual studio. I've moved the conditions to the stdafx header file itself.
You did alter basePage.cpp because it used conio.h, which is not available on Linux. The reason I used conio is that we need a continuous loop to call YSE::System().update(); frequently. If you halt the console and wait for keyboard response, the update is not called and most functionality will not work. I found some replacement code on the internet (wincompat.h) and included it in stdafx (outside the windows part). I cannot test it here, but if the include is correct this should take care of the problem. basePage.cpp is reversed to its previous version.
Please let me know if this works for you.
One other note: I have some macro definitions in headers/defines.hpp for different platforms. Please use YSE_WINDOWS, YSE_LINUX, YSE_ANDROID etc for conditional compiling within the engine (not in the demo).
Thanks for your contribution though. It is much appreciated.
please check, if the changes work with the different systems