The Tequila Den

Combines the world of Tequila with Games.

Tag Archives: hexes

Random dispersal.

I finally had a bit of time to get around to fixing a couple of mistakes and errors when dispersing the tiles and numbers. At first thought it appeared to be correct, until I loaded maps of differing sizes. The problem then lied in with incorrect variable use (which really melded down to poor coding in which I like to blame lack of sleep). Any who, it’s all cleaned up and works with any map that can be loaded now.

You’ll notice a small error with the following screenshots. The deserts are not supposed to have numbers assinged to them. This has already been fixed. Please disregard. 
screenshot 2014.12.02 12.28.46.0702
screenshot 2014.12.02 17.41.13.0116

For now, I’m going to leave mapMaker alone and re-focus on getting the game back to the finished state that it was. That means testing. A lot of testing. After it all runs smooth and such again, I’m going to go back to the server portion and give it a bunch of ready-made buttons to alter a bunch of settings, phases, and points and what not. I’m trying to keep up with updates regularly but there are sometimes where I can’t really blog just about ramble.

Actually I can. I have. And I will again.

Advertisements

Quick update before the weekend

I re-worked a lot of the numbering code the last couple of nights because I felt like it wasn’t … for a lack of better terms… being nice. It seemed to default on simply adding more 2’s and 12’s. I revised it once then and first made it so the supply was balanced, then randomized the remaining pieces left over .

It seemed okay, but then I looked a bit deeper and noticed that the actual set gives you a certain amount of each number. So, back to the board. I properly dispersed the numbers again, and now its … pretty, again.

screenshot 2014.11.28 12.17.07.0293

So now, it’s just converting the random hexes to actual hexes. From there the game can resume normally to what I already have. Then all I have to do is handle winning and stats. Boom.

Just a brief update.

I’m just making this update quickly over my lunch time at school. I actually meant to throw this stuff up last night, but my procrastination got the better of me.

Anyway, I managed to simplify a few things when it came to loading/displaying maps (whether or not it’s more efficient, I’m not entirely sure, haven’t tinkered yet). But the bottom line to that is that you can now pick and decide which map you’d like to play given from the available maps. I do plan on modifying this even further so I don’t have to readily distribute all the maps with each client, but rather with just the server. That’ll be done tonight barring anything going awry.

Also what I managed to squeeze into last night was the proper dispersal of numbering. Which I think if I recall, I fucked up again. But none the less, it can and most likely be fixed.

So, you may ask, what’s next?

In a lot of the things I’ve shown recently, the hexes are shown as “random” hexes, so now, I have to convert to a real hex with a resource equivalent. Nothing major, just setting everything right is the issue, although it isn’t really one in the first place. It’ll be handled.

I’ll bring another update (perhaps) tomorrow, maybe showing some screens and such. If I’m nice.