menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Web Design

>

The Logic ...
source image

Dev

3w

read

224

img
dot

Image Credit: Dev

The Logic Behind Tile Swaps: Lessons from Connections and Starcrossed

  • The article discusses the tile swapping logic used in the games Connections and Starcrossed, highlighting different approaches.
  • In Connections, tiles are swapped based on a hierarchical method that prioritizes tiles based on their ordering.
  • An alternative approach suggested is the Nearest Neighbor method, aiming for minimal tile movement and overlap.
  • The User-Driven approach follows the sequence in which the user selected tiles to determine the swap order.
  • The article also mentions a chaos-embracing approach that can introduce randomness and excitement to the animations.
  • Each method has its pros and cons, and the choice depends on the desired user experience.
  • For Starcrossed, the User-Driven approach was chosen for consistency and excitement.
  • The author emphasizes the importance of small details in creating engaging puzzle games.

Read Full Article

like

13 Likes

For uninterrupted reading, download the app