Gamelogic
  • Home
  • Blog
  • Tools
    • Grids 2 (for Unity)
      • Features
      • Documentation
    • Grids 1 (Legacy, for Unity)
      • 30 games in 30 days
      • Features
      • Tutorials, Documentation, and FAQ
      • Games made with Grids for Unity
      • Examples
      • What is new?
      • Grid Prototypes and Previews
      • Buy
    • Extensions
    • Colors
      • Features
      • Documentation and tutorials
      • Buy
    • Words
      • Features
      • Documentation
      • Buy
    • Abstract Strategy
      • Features
      • Documentation and tutorials
      • Examples
      • Buy
    • Match
      • Features
    • Grids (for GameMaker)
      • 30 games in 30 days
      • Features
      • Documentation
      • Buy
  • Buy
  • Articles
  • Support
    • Knowledge Base
    • Email Support
  • About
    • Meet our team

Blog

Day 5 Game 5: 30 games in 30 days using Grids

CLICK HERE TO PLAY GAME 5


This is what Grids did for us today. What can Grids do for you?

Game 5 is a version of the game Lines played on a Cairo pentagon grid. In this version you have to match four cells in a hexagon instead of lines. hint: the hexagons can be pointy or flat. 😉

Cairo grids are unusual: each cell has 5 neighbors; however, there is no five-fold symmetry. There are no straight lines (at least not in the same sense as in regular grids). The overlapping patterns of hexagons are exploited for a neat implementation – under the hood the Cairo grid is simply a spliced pointy-hex grid. We also use these patterns in the gameplay for this game to group four dots in a neat pattern.

The implementation of this Unity game is straight forward. We use the A star path finding algorithm of the library to make sure moves are legal, and then to animate the point along the path. Because Cairo grids have no straight lines, the movement is more dynamic (erratic) than it would be on any of the regular grids in the plugin.


Click here to check out all 30 games 


Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

  1. Day 7 Game 7: 30 games in 30 days using Grids  Today’s game is a version of Conway’s Game of Life....
  2. Day 4 Game 4: 30 games in 30 days using Grids  The aim of Game 4 is to move your player...
  3. Day 21 Game 21: 30 games in 30 days using Grids  Today’s game is another 3D game; this time on a...
  4. Day 19 Game 19: 30 games in 30 days using Grids  Today’s game is a remake of the classic game Xonix....
  • Permalink
  • Posted: 5 November 2013
  • Tags: cairo grid, hexagon, neighbor cells, pentagon grid, unity game, Unity Library, Unity Plugin
  • Author: Gamelogic
Recent Posts
  • Tool Documentation Overhaul
  • What is new in Grids Pro 2.3.5
  • What is new in Grids Pro 2.3.2
  • What is new in Abstract Strategy 2.1.1
  • What is new in Words 2.0.2
Categories
  • 30 Games in 30 Days
  • AbstractStrategy
  • Aside
  • Colors
  • Example
  • Extensions
  • General
  • Grids
  • Grids 2
  • Previews
  • Programming
  • Social Media
  • Uncategorized
  • Words
Follow us on Twitter
My Tweets
Meta
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
  • Home
  • Features
  • Blog
  • About
  • 14 Eglin Road, Sunninghill, Johannesburg, South Africa
  • support@gamelogic.co.za
Stay Connected
  • Facebook
  • Google
  • Linkedin
  • Rss
  • Twitter
  • Gamelogic © 2013