Giter VIP home page Giter VIP logo

colorbynumber-ios's Introduction

ColorByNumber-iOS

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.

Screenshots

alt text

Example:

https://apps.apple.com/us/app/color-by-number-coloring-game/id1317978215

Tools & Programming Language

Spritekit and Swift 4.2

How does it work?

  1. 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'.
  2. 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.
  3. JSON file array is convert into tiles on the scene which you can color with touch.
  4. Progress of current colored art is also saved in Preferences.

Run the Project?

Just download the project and run it in Xcode.

Compatibility

iOS 11.0 and above.

How to create a JSON file after drawing with Piskel

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

Issues & Questions

Please let me know if there are some issues. Contact me at: http://www.syedaraib.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.