Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (739)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (820)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [libGDX] Falling Blocks - Android!  (Read 6964 times)
0 Members and 1 Guest are viewing this topic.
Offline Tracers

Senior Newbie

Projects: 1

« Posted 2014-02-07 08:04:45 »

Ill introduce myself first, because I have been creeping the help section on this forum for a quite awhile.
Luckily I was able to resolve all my issues and never needed to open a new thread! So now I made an account, for a good reason!
So here is my first android game! It was made using libgdx(Awesome).
Its extremely simple because I lack any sort of artsiness to make graphics, so I resorted to just using simple blocks.
From there I kept adding features as this was just a test for libgdx. I then decided to make this into a full mini-game because it was getting rather addicting.

So here are the instructions!

your character will begin on the bottom
touch blocks only with the same color
your characters color will change
blocks will begin to fall faster
blocks will fall in different ways
your goal is to reach level 100

Any sort of feedback is appreciated! And if you find any bugs please do tell!


Offline Drenius
« Reply #1 - Posted 2014-02-07 17:47:02 »

Quite nice so far, extremely simple but new!
A little hint like 'control with screen tilt' or such somewhere would be helpful.
Offline Tracers

Senior Newbie

Projects: 1

« Reply #2 - Posted 2014-02-07 19:40:43 »

Thanks Ill be sure to put "tilt" somewhere!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jens_S
« Reply #3 - Posted 2014-02-07 20:04:21 »

Hi Tracers!

Funny game! It's a simple but fun game. I like the controls!

I've tried it on my HTC One, and it goes into sleep-mode after a few seconds.

Do you have any WAKE_LOCK-permisson in your manifest? If not, add the following line to the manifest, and it should fix the problem:
 <uses-permission android:name="android.permission.WAKE_LOCK" />
Offline Tracers

Senior Newbie

Projects: 1

« Reply #4 - Posted 2014-02-07 21:01:52 »

Thanks for the tip! I have my devices screen timeout set at 5 minutes so I never noticed!
Just sent out an update, and I got rid of a separate settings screen since my only setting is sound.
Offline JVallius
« Reply #5 - Posted 2014-02-08 12:20:39 »

Some thoughts:

- Block spawning could be improved that so they do not overlap with each other.
- If blocks comes in difficult formation you can just dodge them and try again, too easy?
- You have to tilt your device quite a lot to reach maximum speed. I would recommend to use more narrower tilting range, here is code what I did with Naku The Cat :

float acceleration = Gdx.input.getAccelerometerY();   
float movingSensitivity = 0.3f; // minimum acceleration value where cat moves
float maxAcceleration = 1.5f; // maximum acceleration value where speed is 100%
float percent = 0;

if (acceleration <= -movingSensitivity) {
   if (acceleration > -maxAcceleration) {
      percent = -(acceleration + movingSensitivity) / (maxAcceleration - movingSensitivity);
   } else {
      getCat().moveLeft(1.0f); // 100% speed to left
} else if (acceleration >= movingSensitivity) {
   if (acceleration < maxAcceleration) {
      percent = (acceleration - movingSensitivity) / (maxAcceleration - movingSensitivity);
   } else {
      getCat().moveRight(1.0f); // 100% speed to right

Offline Tracers

Senior Newbie

Projects: 1

« Reply #6 - Posted 2014-02-14 07:23:36 »

I have redid the tilting! Also changed the gameplay alittle!
Also added some features and made the game more difficult!
Thanks for your advice!
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Ecumene (56 views)
2017-09-30 02:57:34

theagentd (79 views)
2017-09-26 18:23:31

cybrmynd (187 views)
2017-08-02 12:28:51

cybrmynd (185 views)
2017-08-02 12:19:43

cybrmynd (192 views)
2017-08-02 12:18:09

Sralse (202 views)
2017-07-25 17:13:48

Archive (758 views)
2017-04-27 17:45:51

buddyBro (892 views)
2017-04-05 03:38:00

CopyableCougar4 (1441 views)
2017-03-24 15:39:42

theagentd (1325 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!