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

CLICK HERE TO PLAY GAME 4


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

The aim of Game 4 is to move your player to the centre of the hex grid without the monsters landing on the cell that your piece is in. The grid becomes bigger as you play which increases the level of difficulty (and the number of monsters to dodge!).

Under the hood the game is very simple. Monsters move in circles around the origin. On a hex grid, circles are of course hexagons. The direction of movement is fixed for each cell, and pre-calculated. We basically iterate the grid in a spiral fashion, and assign directions accordingly, something like the following:

C#
1
2
3
4
foreach circle in startRadius to FinishRadius
for each side in circle
for each point in side
grid[point].Direction = Directions[side]


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 15 Game 15: 30 games in 30 days using Grids  In Game 15 you are a paratrooper and your mission...
  2. Day 14 Game 14: 30 games in 30 days using Grids  Game 14 is a version of the game Snake played...
  3. Day 27 Game 27: 30 games in 30 days using Grids  Game 27 is our version of the game Line up...
  4. Day 8 Game 8: 30 games in 30 days using Grids  In Game 8 you play as an amoeba. The aim...
  • Permalink
  • Posted: 4 November 2013
  • Tags: hex grid, hexagon, 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