Color by Number: a pixel coloring game on iOS.
One of the most popular game on iOS in the last 2 years. I wrote the code about 1 year ago and decided to open source it.
https://apps.apple.com/us/app/color-by-number-coloring-game/id1317978215
Spritekit and Swift 4.2
- The Pixel Image & its colors are stored in a JSON File [Sample in the code].
The JSON file contains an array of String. The String corresponds to the colors of the pixel character. The sample contains a 2-d array with total 32 objects.
"0x000000" -> represents on no color or empty area.
Use https://www.piskelapp.com/ to create your pixel objects. It also allows you convert the pixel objects into a JSON array. Use 'Export to C file'. - The game uses SKCameraNode to move around the scene. You can pan and zoom into the scene. You need to adjust the zoom according to the size of the JSON array.
- JSON file array is convert into tiles on the scene which you can color with touch.
- Progress of current colored art is also saved in Preferences.
Just download the project and run it in Xcode.
iOS 11.0 and above.
Follow the wiki: https://github.com/AraibKarim/ColorByNumber-iOS/wiki/How-to-convert-Piskel-files-(.c-files)-into-json-for-usage-in-the-source-code%3F
Please let me know if there are some issues. Contact me at: http://www.syedaraib.com