Strategy RPG Beginners Tutorial using libgdx + Artemis

Hi, I’m a relative beginner fighting through using libgdx and Artemis to build a strategy rpg, and documenting my efforts in a blog: http://javagamexyz.blogspot.com/ and google code repository: https://code.google.com/p/javagamexyz/source/browse/.

I started by deconstructing the Artemis demo program Spaceship Warrior (http://gamadu.com/artemis/demos.html) and through a series of 6 blog posts built it up step by step from scratch, beginning with how to download the source with mercurial eclipse and setup the project with .jar libraries.

In my own project I have covered basic 2D animation, tile-based-maps (I’m using a hex map, but the code is so general that it could easily be switched to a square map), procedural terrain generation, pathfinding, user input, scene2dui (menus), combat abilities, and enemy AI. Here’s a (laggy) video of the most recent incarnation of things, where all entities are controlled by AI.

H1x9phg1A2I

Earlier incarnations didn’t have the dorky player tokens - they had a knight - but I wanted to be able to differentiate healers from archers, etc.

I started almost from scratch, building off of the architecture from Artemis’ Spaceship Warrior, and I think the series might be helpful to people trying to get a start!

All code is open source, and graphics are licensed under Creative Commons Attribution. I still plan on adding visual/audio effects for abilities, character stats viewer, a character classes, dialogue, inventory, and save/load game. But I wanted to share the progress I’ve made so far, and hopefully get some helpful feedback, and help other people starting from scratch!

The early blog posts were written to be really cheesy, but I dropped that as the topics became more advanced.

Thanks! Let me know what you think!

I know it’s an old thread, but I just wanted to post here and say a massive thankyou to the author who made it easy(easier) to learn mid point displacement and to help me put it into practice.

I am not using Artemis or anything else, I am just using LibGDX so a bit of tweaking was done here and there, but ultimately, you helped me understand the process of not just the actual terrain generation algorithm, but also the process of generating terrain in a game and outputting it to something visual :slight_smile:

I will show the results of my work later when I sort the culling and camera stuff out.

Thanks mate :slight_smile: