Code Monkey home page Code Monkey logo

color-swap's Introduction

Color Swap

This is a Replica of a Mobile Puzzle Game Developed by 2024 Studios, To Solve the Puzzle each two connected nodes should be of different colors, you can drag the colored nodes and move them along the connection.

Solution

Each node contains a Child node(Colored Node) when The player touches a position near the Node the Child Node is Movable, when the player releases the child node it publishes its position and all the Parent nodes subscribe to this message, if the released colored node is near the position of a connected node to the parent Node a Swap Occurs.

After the Swap, The Graph is Traversed to check for any similar colored neighbors if that's the case the Game continues, otherwise, the puzzle is solved.

Communication between different components is achieved using a simple Pub-sub Pattern implemented using C# Action Events.

LeanTween Library is Used for Tweening to give a smoother look and improve the game feel.

color-swap's People

Contributors

mostafaelsherief 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.