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
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
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
Managing savegames with Flash shared objects
How many times did you find an option to save the game in Flash? How many times did you see a game that keeps track of your previously solved levels, like Nitrome’s Snow Drift? Today you’ll learn how to do it… and it’s very simple! We can do it with just a couple of instructions … Managing savegames with Flash shared objects
GuessNext: complete Flash game with highscores
Time to publish the complete tutorial about the making of GuessNext, a simple card game with highscores. In order to make an highscore, you must register to Kongregate but you can play even if you don’t register. It’s not meant to be a good or enjoyable game, it’s simply a programming exercise, so don’t expect … GuessNext: complete Flash game with highscores
Tileball, the FIRST game made with my tile ball engine
I published Tileball, the FIRST (and I want you to notice the capitalized “FIRST”) game made with my tile ball engine. I learned so much in the making of this game that once finished I wanted to delete it and start making it again. Then, I decided to release the game and practice all I … Tileball, the FIRST game made with my tile ball engine
Create a Flash game like Mass Attack
If you love to stay updated with latest addicting Flash games, probably you already know Mass Attack. Mass Attack is based on the very simple idea of balancing weights on a scale. Just press the mouse button to create a spheric weight. The longer you hold down the mouse the larger the weight that is … Create a Flash game like Mass Attack
Controlling a ball like in Flash Elasticity game tutorial
Due to the upcoming deadline of the Flash Game Design Competition with “Ball Phyiscs” theme, here it is another ball physics tutorial. I was looking for some good ball physics concepts and I stumbled upon Elasticity, a nice game with an interesting way to controll the ball. Why don’t we try to control a ball … Controlling a ball like in Flash Elasticity game tutorial