Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (684)
Games in Android Showcase (196)
games submitted by our members
Games in WIP (752)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 8
1  Games Center / WIP games, tools & toy projects / Re: Malevolent Primeval LIBGDX PC ANDROID IOS on: 2016-06-28 09:38:08
I am liking the look of this, especially the decapitating kicks Smiley
2  Games Center / WIP games, tools & toy projects / Re: Lala - Android bridge building game for young kids on: 2016-06-24 16:45:58
In this game I use dialog-boxes for simple messages, for example instructions show at the beginning of a tutorial level;

With libGDX and it's GlyphLayout it's easy to construct these.

I construct the fonts as bitmap fonts, but I generate them at run-time using the FreeTypeFontGenerator as it means I can easily modify the fonts without having to re-process my assets;

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
public class FontAssets implements Disposable {
   public final BitmapFont dialog;
   public final BitmapFont menu_title;
   
   public FontAssets() {
      dialog = buildFont("fonts/Chewy.ttf", 48, 4, Color.BLACK, "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\"!`?'.,;:()[]{}<>|/@\\^$-%+=#_&~*");
      menu_title = buildFont("fonts/Chewy.ttf", 128, 12, Color.BLACK, "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\"!`?'
.,;:()[]{}<>|/@\\^$-%+=#_&~*");
   }
   
   private static BitmapFont buildFont(String filename, int size, float borderWidth, Color borderColor, String characters) {
      FreeTypeFontGenerator generator = new FreeTypeFontGenerator(Gdx.files.internal(filename));
      FreeTypeFontParameter parameter = new FreeTypeFontParameter();
      parameter.size = size;
      parameter.borderColor = borderColor;
      parameter.borderWidth = borderWidth;
      parameter.characters = characters;
      parameter.kerning = true;
      parameter.magFilter = TextureFilter.Linear;
      parameter.minFilter = TextureFilter.Linear;
      BitmapFont font = generator.generateFont(parameter);
      font.getData().markupEnabled = true;
      generator.dispose();
      return font;
   }

   @Override
   public void dispose() {
      dialog.dispose();
   }
}


When using the font I first set the GlyphLayout to the text I want;

1  
2  
3  
4  
5  
   public void openDialog(String text) {
      dialogEnabled = true;
      float dw = vWidth * 0.8f;
      dialogGlyphLayout.setText(Assets.instance.fonts.dialog, text, Color.WHITE, dw, Align.topLeft, true);      
   }


Here vWidth is the virtual or logical width of the screen, and I am telling the GlyphLayout to render at 80% of the width of the screen and wrap if longer.

Then, when rendering the Stage the text and it's background is rendered like this;
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
      if (dialogEnabled) {
         spriteBatch.setProjectionMatrix(stage.getCamera().combined);
         spriteBatch.begin();
         
         float tw = dialogGlyphLayout.width;
         float th = dialogGlyphLayout.height;
               
         float dw = tw + 0.05f * vWidth;
         float dh = th + 0.05f * vWidth;
         
         float bx = (vWidth - dw) / 2.0f;
         float by = vHeight - dh * 1.2f;
         
         Assets.instance.hud.panel_metal.draw(spriteBatch, bx, by, dw, dh);
         Assets.instance.fonts.dialog.draw(spriteBatch, dialogGlyphLayout, bx + (dw-tw) / 2.0f, by + dh - (dh-th) / 2.0f);
         
         spriteBatch.end();
      }


This sets up a nine-patch which is the background to have a 5% padding, and then draws the message.

To get the different words highlighted requires no special code as the input string can be marked-up to change color;
1  
[WHITE]DRAG THE WOODEN BOX TO THE [BLUE]GAP[WHITE] TO LET THE [GREEN]ALIEN[WHITE] CROSS.


Super simple.
3  Games Center / WIP games, tools & toy projects / Re: Lala - Android bridge building game for young kids on: 2016-06-14 06:49:06
Oooh neat.
Thank you!

Nice job on this, but I want to add that 3-6 year olds don't care about unlocking things

They just want to feel accomplished in what they have so when they say, "hey daddy look" daddy could be proud of the youngin.

I am a reliable source of information. I have experience being that young  Pointing
I sort of disagree with you point about kids not caring about unlocking things, at least the older part of my target age group does, I think.

Either way, I take your point and the unlocking mechanism won't be the traditional "finish level N unlocks level N+1" approach. To make sure players don't get stuck on one level most levels will unlock several others, so the should always be an ample supply of unlocked levels and chapters for them to try.

Possibly with the exception of the first 6 levels, where I want to make sure they go through all parts of the game play.

Thanks for the feedback!
4  Games Center / WIP games, tools & toy projects / Re: Lala - Android bridge building game for young kids on: 2016-06-12 08:47:08
To make the screens more visually appealing I have been adding more things that move, clouds now drift across the sky and leaves blow off of bushes. And on some levels there are flies or bees that fly away when the player gets too close to them.

I am using the libGDX particle editor almost exclusively to create these effects, it's somewhat limited but it allows me to quickly tweak and adjust the various effects.

Click to Play


The "smoke" from the UFO and the stars falling are also particle systems.
5  Games Center / Showcase / Re: Retronix - a Xonix clone in Java (cross-platform, open source) on: 2016-06-07 06:35:10
EDIT:  played for about an hour at work. 
Played games for an hour at work?
Two questions;
  • Where are you working?
  • Are you currently hiring?
Smiley
6  Games Center / WIP games, tools & toy projects / Re: Pathway on: 2016-06-01 12:19:34
This looks cool, well done.

When you say "turn-based", is that as in X-Com or more like in Final Fantasy (i.e. is the movement turn-based or just the battles)?
7  Games Center / WIP games, tools & toy projects / Re: Questica -- 62.5% Quest, 37.5% Ica on: 2016-05-26 10:23:02
And you get this nice effect when walking under the trees
That is gorgeous. Well done!
8  Games Center / WIP games, tools & toy projects / Re: Lala - Android bridge building game for young kids on: 2016-05-16 18:53:57
As I said in my initial post I am using Box2D for this. The reason for this is partly getting collision detection for free but also because I want a badly built bridge to topple and fall over in a manner dictated by physics.

Since I want the alien to interact with the blocks I needed a way to represent him as rigid body and a way to make him move.

For Grapple when solving a simular problem I used a capsule (circle for feet and head with a box in between) that I pushed in the direction the player wanted to walk, but for this game that didn't work out as well.

It caused the alien to push some blocks around and it was messy constructing the levels.

Instead I decided to represent the alien as a sphere, and instead of pushing it I add torque to it.

So when the game looks like this;
Click to Play

It is actually doing this;
Click to Play


I am hoping the fact that the circle's shape doesn't correlate perfectly to the shape of the alien won't get in the way of this approach  persecutioncomplex.
9  Games Center / WIP games, tools & toy projects / Re: Lala - Android bridge building game for young kids on: 2016-05-08 18:34:50
I am working on the HUD and I want to use big, easy to hit buttons that will suit kids.
Click to Play

The buttons are arranged so that the most frequently used ones are at the bottom. On the left are controls for controlling the alien (i.e making him go or stop/restart) and also a button for clearing any blocks placed.
On the right are controls for rotating and mirroring the blocks.

Currently I have no touch-gestures for rotating and/or mirroring, only to move the blocks around but this might change if it looks like that's a more natural way of manipulating the blocks.

The blue tray thingie at the bottom center is where the available blocks are, it auto-hides when a block is being moved or the alien is walking.
10  Games Center / WIP games, tools & toy projects / Re: Lala - Android bridge building game for young kids on: 2016-05-06 12:29:42
I like the idea, also the effects when you complete a level look really cool. But I think the background in the menu is moving a little bit too fast to the left, maybe you can play with the velocity there.
Point taken, I've adjusted this down a bit to make the menu look less hectic.

I can't wait to see more game-play and how you handle it easy enough for little kids Wink
Hopefully I'll be able to show off more of the UI and, I am struggling a bit with the conflict between allowing many different actions whilst at the same time being intuitive enough for kids so I'm interested in any feedback I can get in this area.
11  Game Development / Newbie & Debugging Questions / Re: Libgdx Freetype font glitches on android? on: 2016-04-23 15:26:44
I can't see what's wrong with that, but then I don't know what your
1  
Renderer
class looks like.

You could try running something like this to figure out at what sizes it fails, and then look at the data generated by the font generator to figure out what's going wrong;
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
package com.bornander.stuff;

import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator;

import javafx.scene.text.Font;

public class MyGdxGame extends ApplicationAdapter {
   SpriteBatch batch;
   FreeTypeFontGenerator generator;
   BitmapFont bitmapFont;
    int size = 4;
   
   @Override
   public void create () {
      batch = new SpriteBatch();
      generator = new FreeTypeFontGenerator(Gdx.files.internal("ArchivoBlack.otf"));
       getNextSize();

        Gdx.input.setInputProcessor(new InputAdapter() {
            @Override
            public boolean touchDown(int screenX, int screenY, int pointer, int button) {
                MyGdxGame.this.getNextSize();
                return super.touchDown(screenX, screenY, pointer, button);
            }
        });
   }

    private void getNextSize() {
        ++size;
        FreeTypeFontGenerator.FreeTypeFontParameter parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();
        parameter.size = size;
        parameter.color = Color.WHITE;
        parameter.shadowOffsetX = 2;
        parameter.shadowOffsetY = 2;
        parameter.shadowColor = Color.GRAY;

        bitmapFont = generator.generateFont(parameter);
    }

   @Override
   public void render () {
      Gdx.gl.glClearColor(0, 0, 0, 1);
      Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
      batch.begin();
      String text = "HIGH SCORE:" + size;
      GlyphLayout layout = new GlyphLayout();
      layout.setText(bitmapFont, text);

      float x = (Gdx.graphics.getWidth() - layout.width) / 2.0f;
      float y = (Gdx.graphics.getHeight() - layout.height) / 2.0f;
      bitmapFont.draw(batch, text, x, y);
      batch.end();
   }
}


That will write a string of your choice centered on screen, and increase the font size every time to tap the screen.
12  Game Development / Newbie & Debugging Questions / Re: Libgdx Freetype font glitches on android? on: 2016-04-22 12:28:47
This is difficult to answer without more information. Is there any code you can share with us?
13  Games Center / WIP games, tools & toy projects / Re: Lala - Android bridge building game for young kids on: 2016-04-22 06:13:41
For building the UI for the menu and on-screen controls I am using  Scene2d, which is libGDX's way of composing screens using Actors and Actions.

While I am not the biggest fan of the way layouts are handled, the way you can add animations to your UI elements is really cool.
By adding Actions to Actors most transforms (and other manipulations) becomes easy to add and fine-tune.
Click to Play

To make the level selection buttons fall in like the example above I simply need to add an action for it;
1  
2  
float timing = MathUtils.random(0.8f, 1.0f);
button.addAction(moveTo(xPos, yPos[row], timing, Interpolation.sine));

The timing variable is the amount of time the entire animation will take and it's set to a random value so that all the buttons fall in at slightly different speeds.

As the "old" level selection buttons needs to be removed from the scene when they've fallen off the screen I utilize the sequence Action which conveniently allows me to stack a series of Actions to be executed in order;
1  
2  
3  
4  
float d = MathUtils.random(0.8f, 1.0f);
button.addAction(sequence(
    moveTo(button.getX(), -button.getWidth(), d, Interpolation.pow4),
    Actions.removeActor()));

This way the animate (with interpolation of my choice), to a position that is below the bottom of the screen (-button.getWidth() in this case) and then the next action of removing it is automatically executed for me.

Sometimes Actions needs to run in parallel, when a level is completed a star is added to the level that fades in and pulses, and the padlock of the next level is dropped whilst spinning;
Click to Play

Creating this effects are as simple as;
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
// Fade in and pulse the star
image.addAction(
    parallel(
        alpha(1, 1, Interpolation.sine),
        sequence(
            scaleTo(2, 2, 1, Interpolation.sine),
            scaleTo(1, 1, 1, Interpolation.sine)))
);

// Drop and rotate the padlock
image.addAction(
    parallel(
        moveTo(actor.getX(), -image.getHeight()*2, duration, Interpolation.swingIn),
        rotateTo(180.0f * (RND.nextFloat() - 0.5f), duration, Interpolation.sineIn)));
14  Games Center / WIP games, tools & toy projects / Re: Lala - Android bridge building game for young kids on: 2016-04-16 15:19:55
I really like this idea for little kids...a nice idea that's not too difficult.  And I bet kids will get satisfaction out of seeing the alien able to walk across the screen.
Yeah, I think making sure that it is not too difficult and that the chance of getting stuck is low is important when your target age group is 3-6.

The game will have the normal sort of "unlock" mechanism where you get access to the level 2 only when you've completed level 1, but after the first sort of tutorial levels completing a level will unlock more than just one other level.

I am hoping that doing it that way will make it feel like there's more choice will there still is an incentive to try to complete all levels.
15  Games Center / WIP games, tools & toy projects / Lala - Android bridge building game for young kids on: 2016-04-14 17:56:37
For longer than it should have taken me, I have been mucking about with a prototype for a game that is sort of a bridge-building kind of physics puzzle intended for young kids.

I am doing this partly because I wanted to try doing a game where hand-eye coordination isn't the most important thing (like Hovercraft), and partly because I wanted to do a game that my kids can play (unlike Grapple, which got an age-rating of 13 and up because of the blood persecutioncomplex).

So with my daughter's "help" I've been building Lala, a game about helping aliens from planet Lala to reach their space-ships so that the can get back home.



The game is, as I am guessing most of you can see, based on Kenney's tilesets and it will when (if) finished have five different types of aliens, in five different environments in sixty different levels.



After Hovercraft I promised myself my next game wouldn't be one where I had to do a lot of level design. I broke that promise with Grapple and I am already regretting it Smiley

Game play will be about dragging blocks to make it possible for the alien to go from the left side of the screen to the right, where his space-ship is waiting.

Click to Play


The player does not directly control the alien, it's all about building by placing blocks.

Basic game play is implemented, but it's still a far away from being finished (I am sort of hoping that if I run a devlog here it will push me to finish it).

Main platform will be Android, but since I am using libGDX a desktop version might also come out of it. I am using Box2D for the physics and the levels are made using Tile Map Editor to create the levels.

Any feedback is greatly appreciated.
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-12 17:32:24
Decided that to turn my current prototype into a finished game I need to start writing about it as a WIP-project. That should force me to produce somewhat regular updates instead of occasionally tinkering with non-important details.
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-02-22 07:05:40
Wish me luck.

Good luck, I hope your venture works out!
18  Games Center / Showcase / Re: Grapple - Android 2D platformer (finally released to Google Play) on: 2015-12-18 14:14:25
Played this one after seeing it in wip... it's well done.

Interesting concept, well implemented.  I liked it.
Thank you! I appreciate the feedback.

Uses box2d right?
It does, yes. It's built with libGDX and the physics is Box2D.

Did you do the art yourself?

Where'd you get the music/sounds?
Most of the art is from OpenGameArt (A Platformer in the Forest and deadEarth's music), I can't really do any graphics or music so I'm relying on Creative Commons assets. Some of the sounds are done by me but most are from freesound.org.

(I'm assuming you're solo or small team)
I am just me. By myself. On the train to and from work. Smiley
19  Games Center / Showcase / Re: Grapple - Android 2D platformer (finally released to Google Play) on: 2015-12-15 08:35:52
Moved Smiley

Much obliged.
20  Games Center / Showcase / Re: Grapple - Android 2D platformer (finally released to Google Play) on: 2015-12-10 07:45:18
I just realized I've left this here in WIP, does anyone know what I need to do to move it away from the Work in Progress board and onto the Showcase one as I am considering this one done?
21  Games Center / Featured Games / Re: Exiled Kingdoms -Android RPG- Now with video! on: 2015-12-06 08:28:13
Spotted a typo, when you assign the initial points for a new character (yes, I am starting over again on this game now that there are so many updates) it says ┬┐Why does everyone hate you?, and it comes with weird upside down Spanish question marks Smiley
22  Games Center / WIP games, tools & toy projects / Re: Floodgate - Randomly Generated Sewer System Search Thingy on: 2015-11-18 08:20:20
"Randomly Generated Sewer System Search Thingy", now that's a game I didn't know I wanted to play until I saw it  Smiley

Looking forward to seeing what sort of problems or puzzles you can come up with for this game mechanic.
23  Games Center / Featured Games / Re: Exiled Kingdoms -Android RPG- Now with video! on: 2015-11-18 08:16:31
Last updates:

v.0.5.828 - 15/11/15

-Save your game at will! You can save in any outdoor area.

Does this mean I can save just before entering a dungeon (for example) and if I get killed I can just reload the save and try again?

Yes. Still there are a few limitations:

-You don't choose slot, each game you play is always saved in the same slot, so you'l overwrite the previous save.
-There can't be enemies nearby.
-You can't be very low on hitpoints.

The first one is there because I want this to be a choices&consequences game, mainly in the dialogues. I want people to make meaningful choices in conversations.

The second and third are a consequence of that. If you save your game in a situation of unavoidable death, you'd effectively lose your game.

Good, I like that you're making sure actions have consequences. I think the game play would be ruined by a too forgiving save-load methodology.
24  Games Center / Featured Games / Re: Exiled Kingdoms -Android RPG- Now with video! on: 2015-11-17 07:52:28
Last updates:

v.0.5.828 - 15/11/15

-Save your game at will! You can save in any outdoor area.

Does this mean I can save just before entering a dungeon (for example) and if I get killed I can just reload the save and try again?
25  Games Center / WIP games, tools & toy projects / Re: The Count Lucanor on: 2015-11-11 07:56:03
I just watched your Announcement Trailer on YouTube, your game is gorgeous.
26  Games Center / Featured Games / Re: Exiled Kingdoms -Android RPG- Now with video! on: 2015-10-29 08:01:33
I've not played this for a while (trying to learn a new language instead of playing games on my way to work) but I gave it another go today. I really like the lighting you've added, the towns look much more of welcoming, safe havens when you arrive at night. Really adds to the feel of the game, well done.
27  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-10-29 07:57:49
Realised my Hovercraft game has reached 10,000 downloads on Google play.
It made my day.

Congrats man may the download keep rising! Our game hasn't reached even thousand yet maybe in time Sad
Thanks!
It took mine close to a year to get to 10,000, be patient Smiley
28  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-10-27 07:56:11
Realised my Hovercraft game has reached 10,000 downloads on Google play.
It made my day.
29  Games Center / Featured Games / Re: Exiled Kingdoms -Android RPG- Now with video! on: 2015-10-26 08:47:33
The game seems to be one of the best 2D RPGs out there
You are not wrong.
30  Games Center / WIP games, tools & toy projects / Re: Questica -- A procedurally generated rpg adventure! on: 2015-10-06 08:20:55
This is looking really promising!
Do you have any estimate on when you think you'll have something ready for us to try (in a week, a month or a year)?
Pages: [1] 2 3 ... 8
 
orrenravid (260 views)
2016-07-16 03:57:23

theagentd (329 views)
2016-07-11 14:28:54

Hydroque (418 views)
2016-07-06 05:56:57

Hydroque (577 views)
2016-07-03 08:52:54

GrandCastle (435 views)
2016-07-01 09:13:47

GrandCastle (427 views)
2016-07-01 09:09:45

CopyableCougar4 (481 views)
2016-06-25 16:56:52

Hydroque (444 views)
2016-06-22 02:17:53

SwampChicken (408 views)
2016-06-20 13:22:57

SwampChicken (311 views)
2016-06-20 13:22:49
Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42

FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17
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!