Recent Blogposts | Page 8

[WIP]Koloniigo - Viewing Building Feature

Sept. 17, 2015, 2:53 a.m. Gamedev Koloniigo WIP

As you might have know, each building in Koloniigo has a special feature. For example, hospital has 2x population generation among other buildings.

Now I've implemented a speech bubble that shows the feature of the building:

Not counting networked game, this game is almost finished. I will report future updates on development in this blog. :)


Gotcha of Rendering libgdx NinePatch

Sept. 15, 2015, 1:22 p.m. Gamedev Programming libgdx

Today I ran into a gotcha of libgdx. I was trying to render a NinePatch packed with texture packer by constructing a NinePatch using this:

new NinePatch(assetManaget.get("pack.atlas", TextureAtlas.class).findRegion("path/to/ninepatch"));

Then I tried to render the object using its draw() method. Didn't work. Instead, the NinePatch image was just stretched.

Then I read the documentation about the constructor of new NinePatch(TextureRegion)

Construct a degenerate "nine" patch with only a center component.

What? This is obviously not what I was expecting.

Turned out that the proper way to do this is:

assetManaget.get("pack.atlas", TextureAtlas.class).createPatch("path/to/ninepatch");

See also: TextureAtlas.createPatch(java.lang.String)


Behind the Scenes - Font Art

Sept. 11, 2015, 4:35 a.m. Behind the Scenes Gamedev Graphic Koloniigo

As you probably know, I have been working on the game Koloniigo recently. To make the game looks better, I decide to make some simple font art for the game. It is my first time doing this. So don't complain if it doesn't looks good. :3

Step 1

The font is made using Inkscape. To make this sort of font, first, create a text. Make some space between each letters by using , and set the stroke color and fill color to undefined by clicking on .

Step 2

Use Alt+D to create a clone of the text

Step 3

Change the color of stroke and fill. Then set the stroke with to 3~10. and set the join and cap to rounded:

Step 4

Either use space bar to create a copy of the colored text, or use Alt+D to create a clone of the undefined color text(displayed as black). Then set the stroke size to 20~30 and change its stroke and fill color.

Step 5

Make gradient for the middle text

Step 6

Create a copy of the text using the same method in step 4. This time set the color to white and set stroke width to 0

Step 7

Set the blur to 3~5, and set opacity 30~60

Step 8

Create yet another copy. This time shear it a bit and set its color to grey.

Step 9

Set the blur to 5~10

Done!

Great. It's now done. Try changing the text and font. The font art will be updated dynamically. :D

Changing the stroke width, color, gradient, etc. gives infinity possibility of the font art generated! :)

Here is the source file


[WIP]Koloniigo - Main Menu

Sept. 9, 2015, 1:42 p.m. Gamedev Koloniigo WIP

I've just implemented the main menu of the game.

The Random Map button generates, uh, a random map. :P The following parameters are randomized:

  • The position and the type of buildings
  • The size of the map(small(40%), medium(50%), large(10%))
  • The number of AI players(1~3)
  • The algorithm used of the AI player by adjusting the parameter

You're probably trying to guess the use of Play Networked button. You're going to think that it allow you to start a multiplayer game. Wrong. The button does nothing because it's unimplemented! :P Stay tuned! I will post about any progress of this game. :)


[WIP]Koloniigo - Background and Icon

Sept. 5, 2015, 6:59 a.m. Gamedev Koloniigo WIP

Hey guys! I've just implemented background and icon for the game Koloniigo. Here's how does it looks like:

It is made with Inkscape, then processed by GIMP to make it seamless.

It is how does it look like when zoomed in and out:

Here is a gameplay video with 3 AI players and a human player doing nothing in each turn:

If you compare this with the one in previous blogpost, you may notice that I've also iconified the buttons. Do you think that the game now looks better than before? :)