понедельник, 28 декабря 2015 г.

Debugging grid placement and blueprint checking

When I tried to find blueprints in new system, nothing found.

Then, after some digging, I revived old debugging system for showing current grid composition.

One interesting thing about Unity color, though.

If you want to use color in range 0..255, you should use Color32 instead.

When I tested my code with basic color it shows values for rgba (25043) e.t.c. This is very frustrating, but after some search all stand still and perfectly visible.

Investigation of code  found, that I use (row,col) in grid and (col,row) in blueprints. So frustrating to know, that simply inconsistency can take so much time to figure out.

понедельник, 21 декабря 2015 г.

Heavy cruiser visuals ready.

Artist modeled Heavy Cruiser (RA-9900x).

This is biggest one in current chapter of BoomTris.

Side view - artist wants to make a falcon head under sun. Reactor is a sun. Pretty fun as seen.

The 3/4rd view for shop/hangar. Show it in full beauty.

And if place it side by side with other player ships you can see, it largest and more versatile.

I want to test it. And when blueprint facility will be working again it will be done.

In game it will look like:
As you can see - it has three groups of nanofactories and each module grid is 2 times bigger.

This ship is peak of my vision about side by side fight. 

четверг, 10 декабря 2015 г.

Extracting blueprint templates for design purposees

My code of TowerController was fully responsible for blueprint management and initialization. But most levels must contain only specific blueprints. This helps make story progression.

In sandbox mode all blueprints will be provided to you, but in Minecraft-alike mode. What you remember or find online you can craft. Once crafted it will be available to rest of game and between subsequent game sessions.

And this can help us implement bundles with new weapons and blueprints. Also - modding will be easier. Maybe package for unity asset store will be developed after release.

Blueprint editor extension


Blueprints was initialized as arrays, but it only can be fit into programming side of game. But designing from code is very tedious and not visible at all. You must scan/review code to define which blueprint is registered and what it will produce.

Hopefully unity has extension mechanism. And I use it for extending editor. Now blueprints can be present by game objects and prefabs.

And all blueprints can be hierarchically placed and tuned in game.
Thoughts about grid with drag-n-drop mechanics for blueprint invention were written down to my Zim wiki.

I like to develop in places without internet. More concentration and work was done there.

One problem with unity thought:
Unity can not serialize two dimensional arrays. I forced to implement blueprint grid as vector, and access it logically by shifting from beginning by row/column count.

For testing purposes introduced the grid of sprites - it should display current template for placed modules.

Without it I should print strings in log and see what happens. Not very usable. And slow down game when testing (console output very laggy and slow)

I like visual editing and maybe in future it will be introduced for campaigns and blueprints. And if I can figure it out - implemented in game.

When this facility will be fit into game I will develop replacement for big modules.

Currently game show me how much enemies I slain and towers lost, and it counts in tens.

I temporarily disabled energy price and production cooldown for blueprint testing. And front towers life is pretty short. Seconds or less.