I canât find a better place to post it that it allows me to post to so Iâm posting this here:
Fixes for MonsterWars to run in 5S simulator for XCode 10.1
https://www.raywenderlich.com/2806-introduction-to-component-based-architecture-in-games
It wonât let me upload the amended project so Iâll just explain the changes here:
Change deployment target to iOS 9.0
Change Build Settings â Architectures to âStandard Architecturesâ
Change âCGFloat __ccContentScaleFactorâ âfloat __ccContentScaleFactorâ everywhere you can find it in the project (in CCDirectorIOS.h and CCDirectorIOS.m).
In ccShader_PositionColorLengthTexture_frag.h
Delete the lines with the following text on them (lines 23, 35-37, and 39):
#extension GL_OES_standard_derivatives : enable \n\
#if defined GL_OES_standard_derivatives \n
gl_FragColor = v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n
#else \n\
#endif \n\
I was able to run the game in a 5S simulator!
Fun game and example!