Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (710)
Games in Android Showcase (212)
games submitted by our members
Games in WIP (784)
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]
1  Game Development / Shared Code / Re: Multi Player Sandbox RPG [video & source] on: 2015-05-30 03:51:50
Thanks for posting this! The code really helped me advance my knowledge in networking! I may also try making 3d games in the future too, in which case this could also help.

I hope to see more from you in the future.
2  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Libgdx overlapping opaque widgets on: 2014-06-28 00:16:40
The opened tab would be dark (=less transparent) and the not opened ones bright (=more transparent).
For your problem (as it looks in the pictures): Maybe you can use an offscreen texture to only store the alpha channel (overwriting, not adding!) and draw the whole thing with that alpha map?

Just a quick thought...
Pretty sure you meant this

It doesn't really matter to me, I ended up with the other way around because of the template that was given.

Either way, I couldn't get this to work on my codes.

And tbh, I've been confused when you guys talk about textures. From what I know, I can load an image to a Texture. I can then have the sprite batch draw them in the render function. I could also have Image from scene2d.ui store the texture.

But I don't understand how this can help me with my 2 Buttons and Scrollpane. They both load there skins from my .json file.
3  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Libgdx overlapping opaque widgets on: 2014-06-27 22:20:07
Just by the way, why don't you just make the opened tab less transparent (=more visible) than the others?
And make the panel underneath with the same alpha as the opened tab?

That won't solve my problem. I still have the same situation.
4  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Libgdx overlapping opaque widgets on: 2014-06-27 09:46:37
Render to texture, with varying alphas, then render texture with overall alpha multiplier. Other than that, why do you need this?

Right now, I'm creating the UI for a lobby. The lobby includes a chatroom.

This is what I want

This is what I have

The reason I need them to overlap is because of that round corner.
I can easily fix this by making the corner sharp and do some adjustments like,

But I'm pretty dedicated to this minor issue Tongue

Edit: The tabs will change alphas as I select different ones
5  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Libgdx overlapping opaque widgets on: 2014-06-27 09:29:45
Render everything to a texture (with alpha = 1.0) and then render the texture with the desired alpha.

Sorry, I forgot to mention that the widgets will have different alpha values from each other. So If I put one widget with a higher alpha value underneath another widget, you should see the lower alpha value at the area where the two widgets are overlapping.
6  Java Game APIs & Engines / Engines, Libraries and Tools / Libgdx overlapping opaque widgets on: 2014-06-27 08:31:15
Let's say I have 2 or more widgets. They all have a non integer alpha value. They're also overlapping. Assuming the following 3 circles are my widgets, this is what we should expect to see.

However, my goal is to have them appear like so,

With the help from this, I was able to succeed doing this with shaperenderers. However, I couldn't figure out how to do this with widgets. Unless I searched for the wrong situation, I couldn't find a solution to this problem anywhere else either.

I hope I didn't left anything out
public void show() {
     skin = new Skin(Gdx.files.internal("data/uiskin.json"));
     stage = new Stage(new FitViewport(1100, 640));

     Button b1 = new Button(skin, "tab");
     b1.setBounds(330, 370, 70, 40);

     Button b2 = new Button(skin, "tab");
     b2.setBounds(350, 370, 70, 40);

   public void render(float delta) {, 0, 0, 1); | GL20.GL_DEPTH_BUFFER_BIT);

How would I accomplish this?
Thanks in advance!
7  Game Development / Networking & Multiplayer / Re: Applet - Mysql communication in php-made website? on: 2013-07-31 21:08:32
I don't think the complicated handshake method should be used because it doesn't prevent any hackers, just gives the hackers much more work to do.

I looked online and it seems that people are saying that it isn't possible. But then how does games like runescape prevent this?

Is it possible to make the php recognize the applet or only accept request from the same host?

Finally, does Applet to Servlet communication have the same issue? 'Cause It seems that the issues will be the same but perhaps there's something different about servlets than php that allows to close this security gap.

8  Game Development / Networking & Multiplayer / Re: Applet - Mysql communication in php-made website? on: 2013-07-31 06:50:18
Thank you so much. I had a feeling we could use php but I had trouble finding decent php - java tutorials online. I started testing with php and it seems great.

I've looked on security issues with applet and it being "hackable" (still dont fully understand the processs), but in the link that you've provided, how can we avoid the security issues?

If I'm going to guess the process of "hacking" it, it will be this(correct me if I'm wrong):
1. I think that people can download the java applet and read the codes.
2. They'll learn what the url to the php file is and what parameter that it takes.
3. Make a script (whether it's a php script or something else) that send POST/GET data to the php file with his own score.

If I'm correct with above, than how can we avoid this situation? I'm having difficult thinking of a solution where high scores get sent from the applet to a php file without specifying the php file url and the parameters.

Thanks for responding btw Smiley
9  Game Development / Networking & Multiplayer / Applet - Mysql communication in php-made website? on: 2013-07-29 02:25:10
I'm new in this community so hello! Smiley

Me and a friend is working on a multiplayer browser game.
I'm in charge of coding the game in Java while my friend is in charge of coding the homepage and forums with php.

Lets say the java applet has a login screen in which the user types in his/her user info and will log in if the authorization is successful.

A lot of sources recommended me to use servlets to do this. I spent a lot of time studying servlets and came up with this:

User types user & pass in java applet and presses enter
Username and encrypted pass goes to servlet while applet listens for response
Servlet compares username and pass with data in database
If matches, servlet retrieves user info (level, xp, skills) from database and sends it back to the applet
applet receives info and do whatever

Unfortunately, since my friend is using php and I require java, there appears to be a conflict. Only way to run java servlets is if I have java/tomcat hosting. I tested this with appfog and cloudbees however it seems that php cant run in tomcat.

So this makes it seem like I have to choose between my friend using jsp(not an option) or I'll have to find an alternative method.

Does anyone have any other methods they would recommend or a solution to the above problem?

Pages: [1]
numerical (72 views)
2017-02-21 07:32:16

numerical (73 views)
2017-02-21 07:31:46

theagentd (177 views)
2017-02-18 13:42:33

theagentd (180 views)
2017-02-18 13:35:16

h.pernpeintner (1343 views)
2017-01-24 22:39:11

h.pernpeintner (1331 views)
2017-01-24 22:38:32

Galdo (1892 views)
2017-01-12 13:44:09

Archive (1981 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2518 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2310 views)
2016-12-15 21:50:57
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 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!