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
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).
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
I was able to run the game in a 5S simulator!
Fun game and example!