Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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 2084 times)
0 Members and 1 Guest are viewing this topic.
Offline Tracers

Senior Newbie


Projects: 1



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

Hi!
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

https://play.google.com/store/apps/details?id=com.me.Blocls&hl=en

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


__________________________________________________________________________________________________

Online Drenius
« Reply #1 - Posted 2014-02-07 18: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 20: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 21: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 22: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 13: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 :

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
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);
      getCat().moveLeft(percent)
   } else {
      getCat().moveLeft(1.0f); // 100% speed to left
  }
} else if (acceleration >= movingSensitivity) {
   if (acceleration < maxAcceleration) {
      percent = (acceleration - movingSensitivity) / (maxAcceleration - movingSensitivity);
      getCat().moveRight(percent);
   } else {
      getCat().moveRight(1.0f); // 100% speed to right
  }
}

Offline Tracers

Senior Newbie


Projects: 1



« Reply #6 - Posted 2014-02-14 08: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  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

ctomni231 (32 views)
2014-07-18 06:55:21

Zero Volt (28 views)
2014-07-17 23:47:54

danieldean (24 views)
2014-07-17 23:41:23

MustardPeter (25 views)
2014-07-16 23:30:00

Cero (40 views)
2014-07-16 00:42:17

Riven (42 views)
2014-07-14 18:02:53

OpenGLShaders (29 views)
2014-07-14 16:23:47

Riven (29 views)
2014-07-14 11:51:35

quew8 (27 views)
2014-07-13 13:57:52

SHC (63 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org 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‑gaming.org
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!