libGDX is a Java game development framework that provides a unified API that works across all supported platforms.

The framework provides an environment for rapid prototyping and fast iterations. Instead of deploying to Android/iOS/Javascript after each code change, you can run and debug your game on the desktop, natively. Desktop JVM features like code hotswapping reduce your iteration times considerably.

Libgdx tries not be the "end all, be all" solution. It does not force a specific design on you.

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Post article RSS feed Related Articles

First of all, it's with great pleasure that I can unveil the first piece of concept art for King under the Mountain, produced by Anthony Avon. As something of a specialist in landscape concept art, I contacted Anthony with a description of the game, the setting, and a brief of producing a landscape depicting a dwarven settlement in the game world.

Concept art of a dwarven settlement


The artwork is actually meant to show different stages of the development of a settlement in the game - towards the foreground you can see simple structures for mining and a sawmill, the focus of the picture are dwarven buildings that would be constructed while the centerpiece in the background of the fortress set into the mountainside is the end goal. As part of what ended up being quite a large undertaking, Anthony first worked on some black and white concepts to feed into the final color piece.

Dwarven buildings concept sketch Concept art of dwarven buildings


Although the game is top-down 2D, these concepts will greatly help to set the look and feel of assets produced for in-game. I'm extremely happy with how the artwork has turned out and can't wait to see what Anthony produces next for the game! Don't forget to check out his artstation site at Artstation.com.

Before I started work on the AI systems which will drive a lot of the gameplay, I wanted to get some working graphical assets in place for dwarven characters rather than use abstract shapes or placeholder art. After contacting several 2D artists with a brief of requiring a few dwarven characters in a simple vector style (with no legs) I've decided to go with those produced by Dave Rigley shown below. Dave doesn't have an online presence yet but given the quality of his work I hope that he does soon!

Example dwarf in-game characters

Example dwarf in-game characters


Getting the characters into the game was complicated by the fact that I want the skin and hair colors to be dynamically colored (and open to mods) separate to the other parts making up the body. This can be done by separating the characters into different layers, but to complicate matters further, they can end up facing one of several directions which has some further implications for what is drawn when. It took some time but there's now a relatively simple, moddable system for defining parts of a character with the ability to color in different parts independently. I plan to carry this design on into most of the objects used in the game to allow a huge variety of colors and styles without requiring extra artwork to be produced.

Dwarf character layers separated


With these in place I could finally start work on the AI behaviours of the dwarves in the game which is probably one of the most important parts of the game's implementation. For now, I've really only focused on path-finding and path-following. As ever, the excellent tutorials by Amit Patel of Red Blob Games were a huge help, thanks Amit!

Path-finding is a relatively mature and well-understood problem in game development so I had a wealth of experience to draw from. Although I've ideas for further improvements and refinements, for now the pathfinding is calculated by using good old A*. Despite the surface simplicity of the algorithm, running it over a large map or for a large number of game characters can significantly impact performance/framerate. I've come up with a multi-threaded solution which will use multi-core processing (as all game rendering and most updates tend to run on a single processor), which has allowed me to run the game in its current state with tens of thousands of dwarves without significant slowdown! As the final game will probably have at most dozens or hundreds of dwarves in a single settlement, this should do :)

Since getting the dwarves able to figure out a path to follow, actually following the path, at the same time as trying to avoid each other and not clip through walls, is another matter! Although still in progress I've got to a point I'm happy with and able to share an example video of it all put together in action


The dwarves in the video have a dynamically-chosen beard color based on one of several shades. The plan is for this and their skin color to be even more randomised for more procedural content. This video does not have lighting applied, shadowing of characters and outdoor lighting is something I hope to get onto in the near future. For now, I'm going to keep working away at the character movement. See you next time!

Weekly Wrap-up Highlights #6
Mischieviots

Weekly Wrap-up Highlights #6

Mischieviots 0 comments

This wrap-up covers the introduction of the newest zone "Dark Caves" along with some fun new monsters to combat against.

Pandum online in open beta
pandum online

Pandum online in open beta

pandum online 0 comments

Pandum online has been greenlited on Steam and is scheduled in early access by july 2016.

Mystic Diary - Quest for Lost Brother

Mystic Diary - Quest for Lost Brother

News 0 comments

I was enjoying a quiet day at home, sipping tea and studying magic, when I realized my brother Gustav had not returned my messages for days...

Don't Get Eaten - simple, fun, and cute Android game!
Don't Get Eaten

Don't Get Eaten - simple, fun, and cute Android game!

Don't Get Eaten 0 comments

I've just released my new Android game - Don't Get Eaten! Simple and cute gameplay! Hope you check it out and enjoy it!

Add game Games
Warrior of Cards

Warrior of Cards

Turn Based Strategy

Warrior of Cards is a Trading Card Game and a Turn Based Strategy. You can use the cards to invoke warriors and use strategies to conquist your enemy...

Plasmoid

Plasmoid

Arcade

Play a floating ball and collect colored fireflies to illuminate the world. Most worlds are left-right side scrolling, but there are also dark caves and...

Prisma

Prisma

Family

Prisma is a new sliding block puzzle game, inspired by the popular 80's game Sokoban. Push, join and store color blocks in their respective color spaces...

Princess Agnes and friends | Preschool Games

Princess Agnes and friends | Preschool Games

Educational

Preschool educational games with princess Agnes and her friends to learn & have fun.

Baby Feed Animals

Baby Feed Animals

Family

Fun educational game for Babies and Toddlers, to feed the animals.

Baby Music Instruments

Baby Music Instruments

Family

Fun educational game for children, to play musical instruments and hear their different tones.

Pirate Mike and Friends | Preschool Games

Pirate Mike and Friends | Preschool Games

Educational

Preschool educational games with pirate Mike and his friends to learn & have fun.

Jaggy Battles Beta

Jaggy Battles Beta

Turn Based Tactics

A turn based tactics game for desktop and Android.

King under the Mountain

King under the Mountain

Turn Based Tactics

King under the Mountain is a simulation-based strategy/management game where you design, build and run a settlement in a fantasy world. Then, once you're...

Strawberry Moon

Strawberry Moon

Cinematic

Trapped in a mansion with memories that are not yours, can you escape?

Comments
kbingh
kbingh

I just created a game called Chomp! using LibGdx. I found it a great library and I liked that it was a programmers platform since I am a Java programmer.

My game is now on the Google Play Store. It is about a crocodile that catches food. You control the crocodile with the accelerator.

Wally the Crocodile catches food from all directions and angles.

Three ways to play.

Play.google.com

Facebook page is Facebook.com

Reply Good karma Bad karma+2 votes
dud3z
dud3z

Why the developer is TOME studios and the license is Commercial?
It's being developed by the libgdx guys and the license should be Apache2.

Reply Good karma Bad karma+8 votes
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Company
Badlogic Games
Contact
Send Message
Licence
Commercial
Release date
Engine watch
Start tracking
Share
Community Rating

Average

9.3

16 votes submitted.

You Say

-

Ratings closed.

Twitter

Latest tweets from @badlogicgames

This is the greatest thing I've seen in a while. Stefan built a Shitrocket! T.co

8mins 27secs ago

RT @dukoid: @badlogicgames Meanwhile... T.co

8mins 59secs ago

Lily is a neat little language Jesserayadkins.github.io

2hours 1min ago

Embed Buttons
Link to libGDX by selecting a button and using the embed code provided more...
libGDX
Statistics
Rank
72 of 815
Last Update
Watchers
35 members
Games
476
Downloads
165
Articles
382
Reviews
4