Did somebody say "game"?
@ilan, I'll check your game and source code once I get home, I'm at work now.
@itgirl, LibGDX has a lot of complexity, but to start using it, it's really simple. Back in September I know none about it, but thanks to
@walterf25 and
@Informatix tutorials and help, I was quickly able to start working with it.
Here's my mini-tutorial, in case someone's interested.
Preparation:
- First of all, read
How To Make Games by
@Informatix, is what I consider, one of the best pieces of information on this forum.
- Another great learning resource which can be found on Youtube is the
Extra Credits series
- Although
B4A will be your core development tool, if you're planning on using LibGDX, you should also have a powerful image editor like
Photoshop CS6 and a waveform editor such as
Audacity or even
FL Studio 11, if your planning to create your own music.
LibGDX:
- This library can be used for a lot of things, but for now it's only important to understand how to display and move "objects" on screen.
- First, you'll need to load some textures. A texture is nothing but an image file (transparent PNGs), but there are a few things which can be done with it. For example, a texture can be used as a sprite sheet.
- After loading the textures, you can create regions. A region is a LibGDX object which displays part of (or the whole) texture. This is crucial when your game uses animated sprites.
- In LibGDX, the Y coordinates are "reversed", this means that the origin (0,0) is at the bottom-left corner of the screen. Since I never got used to it, in my games I use a simple trick to have the origin at the top-left corner. If you're interested in how to do this, just let me know and I will explain it.
- To display a region on screen, you'll need the following 5 elements: Texture Region Name, X Position, Y Position, Width and Height. Pretty much like every other B4A object.
From this point on, it's time to read the
Official LibGDX Tutorial.
I will upload an empty LibGDX project which can be used as a template. Check this post tomorrow, as I will add the link here.