waldou.com

HOME linkedin facebook twitter youtube rssfeed

  ENG | ESP
CODE EXAMPLE FOR TOUCHSCREEN DPAD USING LIBGDX

Hello! Now that you had a lot of time to play with the code i wrote on my previous post, here's an example Eclipse project that uses that same code of my class GameDPad for you to test and use as reference. (Well it is not the SAME code, because the first one used the fourth quadrant of the cartesian coordinate system, and this one uses the first quadrant.)

Why the change you ask? Well, the first time i was using the Canvas API where the origin is at the top left corner, and this example uses the Libgdx Framework which starts with the origin at the bottom left corner.

Note that it really is basic stuff, and maybe it's not the best implementation but it works nice enough, although i intentionally left some gaps for you to fill. I'm sorry if you expect me to write down EVERYTHING you need, but i'm the kind of person that thinks that you will learn more by yourself than having it all do...

Read full post and comments

TAGS: PROGRAMMING JAVA ANDROID TIPS THINGY GAMES


HOW TO MAKE A BASIC DPAD FOR TOUCHSCREENS

As i told you on an earlier post, Starship Constructor is a puzzle game (maybe i didn't state puzzle but you can infer that from the text), but that doens't mean that i don't test other genres. I wanted to test something really basic for a platformer and i needed to use a directional pad or DPad. That being said, as usual, i didn't know how to do it.

So, i looked at 2 games i bought from the Play Store, Eternity Warriors 2 and N.O.V.A 3. The way they made the Dpad was "wherever you touch, there you'll have your pad". Of course this is not entirely true, because there's only one restriction, "only if you touch on the left side of the screen". So, that's two things to have in mind. The second one is the easiest, because you can just check if the TouchEvent X coordinate is between the boundaries.

X = [0 ... screen_width/2]

Now the first one is tri...

Read full post and comments

TAGS: PROGRAMMING JAVA ANDROID TIPS THINGY GAMES


FIRST LOOK AT STARSHIP CONSTRUCTOR

sc art first look

Yup... Starship Constructor is still in development and not dead... Although things don't look so good for this guy here.

...
Read full post and comments

TAGS: ME THINGY GAMES STARSHIP CONSTRUCTOR ANDROID PROGRAMMING


LA CARAVANA 2012 @ CBA

lacaravana2012 pic

Just another day at the office with WAMA :) xD at La Caravana @LaCaravanaMcbo

...
Read full post and comments

TAGS: ME WAMA AWESOMENESS


THINGY GAMES/STARSHIP CONSTRUCTOR

sc logo

I've been making a small videogame with my cousin @Zaicuch named Starship Constructor (working title). It's basically a shape matching game where you have to build as many starships within a given time. It's our first videogame ever, and we plan to release it on the Android platform.

Being our first game, i've encountered a lot of little problems developing it (first thing i program on Android) so yeah, i'm kind of a noob on Android. I'm thinking of releasing videos showing some of them and how i managed to work around them, or at least show some written code for those of you who maybe have the same issues.

...
Read full post and comments

TAGS: THINGY GAMES STARSHIP CONSTRUCTOR ANDROID PROGRAMMING


1 2 next
THINGY GAMES
WAMA
SNIPPET CODES



All tags: ME PROGRAMMING MUSIC THINGY WAMA AWESOMENESS GAMES STARSHIP CONSTRUCTOR ANDROID JAVA SNIPPET TIPS GOOGLE WEBSITES OPENGRAPH INSIGHTS RSS PHP MYSQL
 
 
www.waldou.com

Valid XHTML 1.0!