Skip to the content

Emanuele Feronato

Italian geek and PROgrammer
Check my
101 games challenge!
All about "Hexagonal Tiles" game

How to find adjacent tiles in hexagonal maps – ALL and EVERY case explained and managed by a single file.

There are four types of hexagon tile based maps, according to hexagon placement, number of rows and columns, but I wrote a single script to manage them all, with four HTML5 examples powered by Phaser. Full source code available.

Talking about Hexagonal Tiles game, Game development, HTML5, Javascript and Phaser.

How to find adjacent tiles in hexagonal maps – ALL and EVERY case explained

A complete guide about finding adjacent tiles in an hexagonal map. All cases covered and explained. HTML5 examples made with Phaser

Talking about Hexagonal Tiles game, Game development, HTML5, Javascript and Phaser.

Understanding hexagonal tiles – updated with HTML5 examples thanks to Phaser

Creating hexagonal tile based games has never been so easy, with two different HTML5 examples powered by Phaser

Talking about Hexagonal Tiles game, HTML5, Javascript and Phaser.

Finding adjacent cells in an hex map – AS3 Version

I am porting this prototype into AS3. I am not doing it for the sake of porting something, but because I want to show you a complete Dice Wars prototype. I am sorry if the code is not that clean, I’ll come with a dedicated class later, but at the moment this is what I … Finding adjacent cells in an hex map – AS3 Version

Talking about Hexagonal Tiles game, Actionscript 3, Flash and Game development.

Finding adjacent cells in an hex map – part 2

In the Finding adjacent cells in an hex map post I showed you how to find adjacent cells in horizontal hex maps. Now it’s time to find adjacent cells in vertical hex maps. hexagon_width = 44; hexagon_height = 38; grid_x_size = 10; grid_y_size = 12; sector_width = hexagon_width/4*3; sector_height = hexagon_height; gradient = (hexagon_width/4)/(hexagon_height/2); for … Finding adjacent cells in an hex map – part 2

Talking about Hexagonal Tiles game, Actionscript 2, Flash and Game development.

Finding adjacent cells in an hex map

This tutorial continues Hex maps creation and rollover. Now I will show you how find adjacent cells. Again, at the moment it’s only code, and it only works for horizontal hex maps hexagon_width = 38; hexagon_height = 44; grid_x_size = 12; grid_y_size = 10; sector_width = hexagon_width; sector_height = hexagon_height/4*3; gradient = (hexagon_height/4)/(hexagon_width/2); for (x=0; … Finding adjacent cells in an hex map

Talking about Hexagonal Tiles game, Actionscript 2, Flash, Game development and Users contributions.

Hex maps creation and rollover

This is just a quick, uncommented snippet of code I made starting from Coordinates in Hexagon-Based Tile Maps tutorial I found at GameDev.net. The article does not cover all hex maps, just horizontal ones. Read Understanding hexagonal tiles to know something more about hex maps. Also, the pseudo code shown in the article has some … Hex maps creation and rollover

Talking about Hexagonal Tiles game, Actionscript 2, Flash and Game development.

Understanding hexagonal tiles

You should already know Tile Maps: they are often used for the level design in two-dimensional games. The most used (and simplest) tiling system has squares. Tileball is an example of a game made with this method. Even if there are a lot of games using this tiling system, it’s easy to find its limit. … Understanding hexagonal tiles

Talking about Hexagonal Tiles game, and Game development.

101
Games Challenge
I will build 101 games as a solo developer

During these years, I published 226 explained game prototypes, along with source code: 1+2=3, 100 rounds, 10000000, 2 Cars, 2048, A Blocky Christmas, A Jumping Block, A Life of Logic, Angry Birds, Angry Birds Space, Artillery, Astro-PANIC!, Avoider, Back to Square One, Ball Game, Ball vs Ball, Ball: Revamped, Balloon Invasion, BallPusher, Ballz, Bar Balance, Bejeweled, Biggification, Block it, Blockage, Bloons, Boids, Bombuzal, Boom Dots, Bouncing Ball, Bouncing Ball 2, Bouncy Light, BoxHead, Breakout, Bricks, Bubble Chaos, Bubbles 2, Card Game, Castle Ramble, Chronotron, Circle Chain, Circle Path, Circle Race, Circular endless runner, Cirplosion, Click when Red, CLOCKS - The Game, Color Hit, Color Jump, ColorFill, Columns, Concentration, Crossy Road, Crush the Castle, Cube Jump, CubesOut, Dash N Blast, Dashy Panda, Deflection, Diamond Digger Saga, Don't touch the spikes, Dots, Down The Mountain, Drag and Match, Draw Game, Drop Wizard, DROP'd, Dudeski, Dungeon Raid, Educational Game, Elasticity, Endless Runner, Erase Box, Eskiv, Farm Heroes Saga, Filler, Flappy Bird, Fling, Flipping Legend, Floaty Light, Fuse Ballz, GearTaker, Gem Sweeper, Globe, Goat Rider, Gold Miner, Golf Dash, Grindstone, GuessNext, Helicopter, Helix Jump, Hero Emblems, Hero Slide, Hexagonal Tiles, HookPod, Hop Hop Hop Underwater, Horizontal Endless Runner, Hundreds, Hungry Hero, Hurry it's Christmas, InkTd, Input Delay, Iromeku, Jet Set Willy, Jigsaw Game, Knife Hit, Knightfall, Legends of Runeterra, Lep's World, Line Rider, Lumines, Magick, MagOrMin, Mass Attack, Math Game, Maze, Meeblings, Memdot, Metro Siberia Underground, Mike Dangers, Mikey Hooks, Mini Archer, Nano War, Nodes, o:anquan, One Button Game, One Tap RPG, Ononmin, Pacco, Perfect Square!, Perfectionism, Phyballs, Pixel Purge, PixelField, Planet Revenge, Plants Vs Zombies, Platform, Platform game, Platformer, Plus+Plus, Pocket Snap, Poker, Pool, Pop the Lock, Pop to Save, Poux, Pudi, Pumpkin Story, Puppet Bird, Pushori, Pyramids of Ra, qomp, Quick Switch, Racing, Radical, Rebuild Chile, Renju, Rise Above, Risky Road, Roguelike, Roly Poly, Run Around, Rush Hour, SameGame, SamePhysics, Security, Serious Scramblers, Shrink it, Sling, Slingy, Snowflakes, Sokoban, Space Checkers, Space is Key, Spellfall, Spinny Gun, Splitter, Spring Ninja, Sproing, Stabilize!, Stack, Stairs, Stick Hero, String Avoider, Stringy, Sudoku, Super Mario Bros, Surfingers, Survival Horror, Talesworth Adventure, Teeter Up, Tetris, The Impossible Line, The Moops - Combos of Joy, The Next Arrow, Threes, Tic Tac Toe, Timberman, Tiny Wings, Tipsy Tower, Toony, Totem Destroyer, Tower Defense, Trailblazer, Trick Shot, Tunnelball, Turn, Turnellio, TwinSpin, Vampire Survivors, vvvvvv, Warp Shift, Watermelon Game, Way of an Idea, Whack a Creep, Wheel of Fortune, Where's my Water, Wish Upon a Star, Word Game, Wordle, Worms, Yanga, Yeah Bunny, Zhed, zNumbers, Zuma

© 2025 Emanuele Feronato
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}