GithubHelp home page GithubHelp logo

ezhangle / swift-match3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gabrielnika/swift-match3

0.0 0.0 0.0 7.99 MB

Swift version of the "How to Make a Game Like Candy Crush" tutorial by Matthijs Hollemans originally posted on the Ray Wanderlich's site

Swift 100.00%

swift-match3's Introduction

swift-match3

Swift version of the "How to Make a Game Like Candy Crush" tutorial by Matthijs Hollemans originally posted on Ray Wanderlich's site


Tutorial by Matthijs Hollemans:

Part1: http://www.raywenderlich.com/66877/how-to-make-a-game-like-candy-crush-part-1

Part2: http://www.raywenderlich.com/66915/how-to-make-a-game-like-candy-crush-part-2


Modifications

  • The code is written to be generic and not apply just for cookies like in the tutorial. As such, the former "cookies" are now called "Tiles". The former "tiles" are now called "GridElement" and reside in a matrix called "grid".

  • Matrix is a new type defined in Utilities.swift. It can contain nil. The tiles and grid tiles matrices make use of the new meaning of nil in Swift: at any given position within the tile/grid matrix there can be either "something" or ... "nothing", which makes things a lot more logical and easier to picture the level structure

  • To access the tiles: level!.tiles[x,y]: Tile?

  • To access the grid: level!.grid[x,y]: GridElement?

  • The cookies layer has been renamed to boardLayer

  • The code is written to compile on 64 bit as well and uses full auto-layout. Also the app is now Universal, even though no assets exist for iPad or whatever comes next ;)

Unfortunately i haven't included the comments in the tutorials and in some cases they no longer applied

What is the License for the Tutorial Source Code?

For licensing, please refer to http://www.raywenderlich.com/faq

MIT License applies for the code in this repository

Credits: Tutorial and Objective-C code Matthijs Hollemans. Artwork by Vicki Wenderlich. The music is by Kevin MacLeod. The sound effects are based on samples from freesound.org.

Contact

Can contact me at @gabrielnicauk or LinkedIn

swift-match3's People

Contributors

gabrielnika avatar gabrieltab avatar

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.