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 29 Game 29: 30 games in 30 days using Grids

CLICK HERE TO PLAY GAME 29


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

Grids are not just for attractive geometric shapes. Irregular shapes come in grids too 🙂

In today’s game we re-use some familiar mechanics, and give it a new twist: you play the normal Lights Out game, but on an irregular grid!

When you have more than a day, then you can use all kinds of sophisticated algorithms to make it really elegant and fast… but when time presses, brute force combined with lookup tables are your friends. In this case, we first select a point set following a rough Poisson distribution. This ensures the cells will be reasonably attractive. Using the point set, we construct a map that maps any point to the closest point in the set. Groups of points that map to the same point from the original set form a cell. We then create a lookup table that gives us the cell for each (integer) point in the world. Another lookup table is constructed to give all the neighbors of a cell. This is then fed to the grid, which makes it possible to use all our algorithms on this irregular grid.


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 4 Game 4: 30 games in 30 days using Grids  The aim of Game 4 is to move your player...
  2. Day 12 Game 12: 30 games in 30 days using Grids  The aim of Game 12 is to reach the the...
  3. Day 14 Game 14: 30 games in 30 days using Grids  Game 14 is a version of the game Snake played...
  4. Day 26 Game 26: 30 games in 30 days using Grids  In game 26 we try another simulation type game on...
  • Permalink
  • Posted: 29 November 2013
  • Tags: irregular grid, lights out, 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