Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (799)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (865)
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  Game Development / Game Play & Game Design / Re: Theming Custom Game GUI Components on: 2015-04-13 20:22:35
yes it is Smiley
2  Game Development / Game Play & Game Design / Re: Theming Custom Game GUI Components on: 2015-04-13 20:19:31
I would say whatever works for You, should be good enough. With time and experience comes also the knowledge what should change, if anything at all.

I don't think I can give You any straight suggestions, but I'll describe a approach that my own GUI has.
Basically, it has 3 layers/abstractions/components:
* The object model - This is the button that reacts to the button presses and calls out the actions, the input, that accepts texts etc.
* The renderers - This is the layer, that actually paints/renders the objects to the world.
* The themer/styler - This is the "layer", that has the style info: the colors, the fonts, the images, borders etc

Having separated the model from the renderer gives me the ability to change the renderer pretty easy. I myself, during my learning, have rewritten one of my games/tech demos, 2 different times: from java2D -> slick -> libgdx. As far as my UI was concerned, this meant only replacing my renderers.

Now having separated the styler from the renderer means, that I can define different styles, either between different games, or why not, have one or more alternative looks for my given one game.

Basically, if You look at it, this seems very familiar:
* The object model = HTML
* The renderer = browser
* The styler = CSS

Depending on Your needs, You can merge one or the other layer and have a little less complexity for a little less flexibility: for example, model + renderer (the button itself knows how to draw it) or renderer + styler (every object is custom-drawn).

I do think, most of the GUI's have similar ideas and as I red, You yourself were also moving along the same pathway.

Now, how this all should look in code, is an implementation detail.
3  Discussions / General Discussions / Re: What's your day job? on: 2015-04-02 21:25:12
I'm a java software dev (depending on the project, I've had other roles as well: architect, support, maintainer, main customer contact, team lead, tester, etc) , developing custom software for telecoms and banking. Have done eclipse based tools for industrial automation software (our tool generated C code that went into embedded systems) and also done web based tools.

But currently, I am responsible of creating auto-testing capabilities for a web based system built in php. You know, for a change, something different than the last 5~10 years ...
4  Game Development / Newbie & Debugging Questions / Re: [libGDX] ((Game) error on: 2014-02-14 13:12:51
A stacktrace would be nice, but currently the line

does currently nothing.
5  Games Center / WIP games, tools & toy projects / Re: Xcylin: A sci-fi open world voxel game. on: 2014-02-13 18:04:27
Nice video.
Though the "water" seems to be more of a jelly. While watching the video, I would have expected that the bottom layer flows faster than it currently does. The water stacks a block and then goes to the next one. Non-intuitive. Also the water in the container emptied itself vertically before horizontally.
Will You be keeping it like that ?

6  Java Game APIs & Engines / JavaFX / Re: JOGL in JavaFX on: 2014-02-03 22:34:09
I haven't done anything with JavaFX nor do I know anything about it really.
But I do know that there are some plans to get JavaFX to Android (how realistic the plans are, do not know) and I know that some ppl have it working on their phone, more or less.

My point wasn't that ppl should use it now or whatever. It was rather "here, take a look, if You are interested"
7  Java Game APIs & Engines / JavaFX / Re: JOGL in JavaFX on: 2014-02-03 15:29:33
The long term plan is to get JavaFX officially working on mobile platforms as well. Currently Oracle is targeting the desktops and embedded systems.
For example:
So it's possible and I would even say it's viable solution even for a long term plan.

The question rather is, does it help or is viable, to You, right now
8  Game Development / Newbie & Debugging Questions / Re: Why was it so hard to get font rendering working with lwjgl? on: 2014-02-03 15:24:07
Without really knowing Your needs, You might also find help from alternative approaches.
For example quite a few games pre-render the need fonts as bitmap fonts and then use the bitmap fonts in game/app.
Hiero with libgdx

Then there is also this alternative:
9  Discussions / General Discussions / Re: New feature: coding experience on: 2014-02-01 18:33:43
Definitely will be interesting.
10  Discussions / General Discussions / Re: Simple JAR/Library repository on: 2014-01-30 09:25:50
I dislike maven as much as the next guy, on my personal projects I use ant and manual jar management and that is my conscious choice, knowing fully what that beholds.

However, I do use maven extensively at work, jar hell is a concept, we don't know, everything just works (well, not always..) .
Maven itself is 3mb, it's a single install and there is nothing more to download. All the downloads maven does, are project dependent, the dependencies come from the jar's not from maven.
In the end, whatever You build or however You manage Your system, You are doing the same thing, just manually.

As long as You are aware of those things and don't dismiss the tools as "bloat" (as do C developers dismiss java, cause its "slow" and "bloat" and "noone uses it" and "no real programmer would ever use java") etc, just because, then whatever choice You make is fine. Just be aware of Your choices and approach openmindedly.
11  Discussions / Miscellaneous Topics / Re: A stupid bug I wrote... on: 2014-01-28 08:07:45
There is no such warning for eclipse.
There ought to be D=

Why can I just open curly brackets ? Why is this allowed at all ? =/

Curly brackets start a new scope. I've seen only a few times, this kind of scoping is used within a method body. As one would guess, You can live without it.
12  Games Center / WIP games, tools & toy projects / Re: Paint.JAVA - Attempt at cloning Paint.NET (with cross-platform support) on: 2014-01-28 08:02:56
Yep, javafx is very nice. Can't wait it to be THE default UI framework.
13  Discussions / Miscellaneous Topics / Re: A stupid bug I wrote... on: 2014-01-27 16:01:55
You probably have to enable it in some settings
14  Discussions / Miscellaneous Topics / Re: A stupid bug I wrote... on: 2014-01-27 15:42:33
I'm not sure, but I think there might be possible for Eclipse to teach him, to warn about angry faces. Unless, they are in regular use as well, then it'd be annoying.
15  Games Center / WIP games, tools & toy projects / Re: Paint.JAVA - Attempt at cloning Paint.NET (with cross-platform support) on: 2014-01-27 11:14:25
Nice work
But I have a few questions.
Why not JavaFX instead of swing ?
And why not framework native color-picker ?
16  Game Development / Newbie & Debugging Questions / Re: Modular Engine on: 2014-01-27 09:22:15
There are various ways to block execution of certain methods or even block class loading, which ever You need.
So if the question is: is it possible to block dangerous code execution, then it's a "yes"

I think there was a thread not long ago talking about preventing code execution, I think the thread was about scripting. Search around JGO.
17  Game Development / Newbie & Debugging Questions / Re: LibGDX - change the brightness of a texture on: 2014-01-24 13:13:52
It's not impossible.
I myself have not needed that effect but here are 2 links after searching "opengl texture brightness"

Note that LibGDX uses GLES so the second link might be more relevant.
18  Games Center / 4K Game Competition - 2014 / Re: Java4k Launcher (v1.1) on: 2014-01-23 13:41:53
Welcome to the future !
19  Game Development / Newbie & Debugging Questions / Re: Libgdx how to send arrays to Shader on: 2014-01-23 09:12:04
Your first problem is Your attitude. From every post You make regarding LibGDX, it is felt that You are frustrated and that You are forced to work with it. Human mind is a very complex and very conservative, lets say party. If You have a negative attitude, then everything You do reinforces that negativity, until You find a surprise, which, by definition, does not happen regularly. So my first suggestion is to try to be more open minded. Lwjgl and LibGDX are different beasts, although related. Instead of "oh no, why is it so, in the other place it was better" try to be more like "oh wow, something new, interesting"

LibGDX supports "OpenGL for Embedded Systems (OpenGL ES)" version 1.0 and version 2.0. Although it's still OpenGL, it's a different beast than regular, desktop GL. This means the differences might come from the stripped down nature of GLES or they might come from the GLES being more strict.
20  Discussions / Miscellaneous Topics / Re: Comment Tricks on: 2014-01-21 11:31:57
For comments, I just block select ant ctrl+shift+C (on eclipse)(Line comments on whole block)
For me hitting a whole line or block is easier than hitting one character.
21  Discussions / General Discussions / Re: Considering Java for game development, looking for brains to pick on: 2014-01-21 08:58:31
seeing it as bloated, slow, and a memory hog, ...

You definitely need to get rid of that attitude (I did notice the ending of the sentence). If Your mind is made up negatively, even before You do anything, You will find lots and lots of hurdles and problems that just reinforce Your negative attitude. Not to mention, with a negative attitude You are in a hostile waters (on these boards) and it will be felt on every thread.
The most important thing You need, while trying new things, is an open mind, so try to have one and experience the "slowness" and "bloatness" and "memory hogging" Yourself.

One thing that hasn't been mentioned yet, is that LibGDX cross-compiles onto different platforms. This means that quite a few games out there have been written in Java, but live their lives as HTML5 games.
22  Discussions / Miscellaneous Topics / Re: I present to you: the BS-LC ratio! on: 2014-01-21 08:18:51
My programs run 3 infinite loops in a second.
23  Discussions / Miscellaneous Topics / Re: Cryptonium, A cryptocurrency that I'm just playing around with. on: 2014-01-20 19:55:15
So basically, the have a huge cloud AND make money from it.
24  Discussions / Miscellaneous Topics / Re: Cryptonium, A cryptocurrency that I'm just playing around with. on: 2014-01-20 15:45:48
I'm just waiting for it to be revealed that these 'cryptocurrencies' were being used to crack codes(or encryption methods) or fill rainbow tables.  persecutioncomplex

It is NSA's attempt to make a massive rainbow database, with any possible string formats.
Just need a bit of carrot, like make the currency exchangeable with RL money and maybe drive the "value" up and You have basically a huge cloud of password crackers.
25  Game Development / Shared Code / Re: OpenGL font without textures on: 2014-01-20 14:23:11
This is awesome.
Unfortunately, ascii only, which is too little for my needs.
26  Java Game APIs & Engines / Java 2D / Re: 2D Engine on: 2014-01-17 12:28:17
The best source for learning material, for LibGDX, are the tests.
Definitely get the test and sources, whatever problem You might have, there is a high chance of a test already covering it.

Edit: Location aswell:
27  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Libgdx overcoming color limitations? on: 2014-01-16 12:05:39
Sorry, I edited my reply (touching the subject of colors) while You asked the last question.
10f does not have a meaning in color channel, since 1f is the max.
28  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Libgdx overcoming color limitations? on: 2014-01-16 12:01:41
The color, You add to SpriteBatch is a "tint" not an "abosolute" color. This means that the sprite and color are blended together.
LibGDX uses shaders and looking at the SpriteBatch shader, the colors are multiplied "gl_FragColor = v_color * texture2D(u_texture, v_texCoords);"

So what You can do. You can modify Your sprite (externally or at runtime) to make it brither (add more white). Or You could write Your own shader, that gives You more control over the colors.

Edit: Colors have 4 channels, 1 byte per channel. As a float, the channel values range from 0f (nothing) to 1f (everything). As such, 10f does not sense make any.
29  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Libgdx + Eclipse. on: 2014-01-15 11:45:17
It might have worked previously, yet it is still Eclipse that is responsible for refreshing and keeping the workplace up-to-date.
Try this "Preferences -> General -> Workspace" and "Refresh using native hooks or poll" and "Refresh on Access"
30  Game Development / Networking & Multiplayer / Re: Netty: how to calculate client ping and use interpolation? on: 2014-01-14 14:56:45
Here's a bit of reading, maybe You'll get some ideas. Both engines are multy-player FPS engines which means they have high demand on the networking, which may or may not apply to Your needs, but both are well worth reading anyway.
Pages: [1] 2 3 ... 8
Riven (187 views)
2019-09-04 15:33:17

hadezbladez (4874 views)
2018-11-16 13:46:03

hadezbladez (1785 views)
2018-11-16 13:41:33

hadezbladez (5147 views)
2018-11-16 13:35:35

hadezbladez (1016 views)
2018-11-16 13:32:03

EgonOlsen (4367 views)
2018-06-10 19:43:48

EgonOlsen (5216 views)
2018-06-10 19:43:44

EgonOlsen (2946 views)
2018-06-10 19:43:20

DesertCoockie (3867 views)
2018-05-13 18:23:11

nelsongames (4293 views)
2018-04-24 18:15:36
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 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!