Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (756)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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 / Newbie & Debugging Questions / Re: [SOLVED by RobinB]How to check if an object is not itself? on: 2013-07-24 15:59:14
Thats a pun refering to the Marauder's Map in Harry Potter which had to be wiped clean with the spell "Mischief Managed"
2  Game Development / Game Play & Game Design / Re: Just something to think about while you go about your lives. on: 2013-06-27 10:41:29
An Idea that came to me: Offering the player the option of winning the game after each level or at certain points of the game - depending on game style. So if somebody just wants to win he only has to choose accordingly. On the other Hand those who "do not want to win" go on with the game (next level/map/area/quest/...).

You could pair this with a story of good vs evil where the opposing side knows it can not defeat you in the state you currently are but wants you out of the way.
They offer you to just win the game so they can follow ther evil/good deeds without you interfering.

Basically appealing to the players curiosity. Smiley
3  Discussions / Miscellaneous Topics / Re: How to fetch an AJAX call on a LAN machine? on: 2013-01-31 08:41:07
Actually, short polling tends to be more scalable, because long polling holds a socket open longer on the server, and fds are a more scarce resource than bandwidth. 

Not that it's likely to matter that much on a LAN scale.

As sproingie said, considering that you want to implement this in a LAN environment it doesn't matter much which option you choose.
What you might think about though is that with the first method (polling every x seconds) you have a chance of the client having the wrong number for quite some time (bit less than x seconds in the worst case). Using the second method you have the new number on the client always only short time after the server has the new number (since it's the server that can then complete request whenever he wants - e.g. when he has a new number to send)
4  Discussions / Miscellaneous Topics / Re: How to fetch an AJAX call on a LAN machine? on: 2013-01-30 15:52:08
Sry for late answer. Processing input form a server without a request is something that is not yet widely supported by current browsers. You could do something like a heartbeat-system where you let the client send a request every 30 seconds or so to the server that answers the number you would like to change.
It is (or has been) however afaik disregarded as bad practice because of the additional traffic that such requests cause. In your case though that would not matter because it is only LAN and only one single number that gets updated.

Another approach is a very long Request that stays open until a certain "Event" causes the Server to respond. After that the Client immediately sends another request, again waiting for the server to respond.

Wikipedia-Article Pointing

Also google spits out tons of information on that subject. Including some ready-to-use frameworks that use those approaches:

push ajax

Hope it helps  Wink
5  Discussions / Miscellaneous Topics / Re: How to fetch an AJAX call on a LAN machine? on: 2013-01-25 13:02:40
Not much different than you would do on the internet. The Server has to run some kind of Web-Server that can accept and process requests that you send to it. So instead of sending the AJAX Request to a certain homepage you prepare your Webpage (or whatever you want) to send it to the IP-Adress of that Server.

Is there something specific you want to know about?

Edit: Re-read your post. Do you mean to send an AJAX response to the client without a foregoing request of that client?
6  Game Development / Newbie & Debugging Questions / Re: How to write ArrayMap to JSON? on: 2013-01-04 09:18:15
I'm not sure that i fully understand what you are trying to accomplish but you could do
text: {
  class: "map",
  entries: {
    "3": "Once upon a time, there are 3 bees",
    "4": "One of them was so ugly, so the other two died",
    "5": "Left alone, the ugly bee suicided",
    "6": "THE END"

You could then read the Class Property as normal Text-Value (Maybe use the real Class name -> could use Reflection to instanciate) and the entries as Map-Object, where you can then iterate over the Content and fill your ArrayMap Object with the Keys and Values.
7  Game Development / Networking & Multiplayer / Re: Storing Highscore... where ? on: 2012-11-07 15:04:04
Create a SQL User.
GRANT that User INSERT on your Highscore-Table. Maybe UPDATE if you just want one entry per user.

Use a System like Minecraft -> Username and Password for Game needed (Maybe only at the point where the Highscore gets sent).

When the Highscore is to be submitted -> send score along with username and pw (and other data to be stored) To a php script. If valid credentials -> store in Highscore DB, if not -> give client signal to explode.

SQL Injections and cheating on Client-side are things that have to be considered always and everywhere.

PS.: SQL Injections can be dealt with when you escape characters per default and perform validity checks on the values. If a score consists of anything else than numbers its rubbish for example (depends on your game of course). But how you could deal with cheating -> no idea
8  Game Development / Newbie & Debugging Questions / Re: Quick question regarding the GridBagLayout manager on: 2012-10-17 09:10:12
@Riven: I did not want to state that GridBagLayout is the optimal solution for Eyesackerys Problem. Only that a complex LayoutManager isn't necessarily hard to use.
9  Game Development / Newbie & Debugging Questions / Re: Quick question regarding the GridBagLayout manager on: 2012-10-16 16:08:59
I fail to see the Problem everybody is having with GridBagLayout.

Took me 3 minutes to get this running and it seems not that far from what you want to do.

Maybe if you explained your intended use for south- and westPanel a bit more i could help you even further.
10  Discussions / Community & Volunteer Projects / Re: Looking for a buddy on: 2012-09-07 11:20:53
Care to take more than one Person on Board? I'm in quite exactly the same Situation like Alessandro. I start a lot of projects that i get to an (almost) playable state but then i lose interest. And also Freetime is something i don't have plenty of, but i'm willing to invest it in game development.

Timezone might be a problem though. So let me know if you'd like to give it a try.  Smiley
11  Discussions / Miscellaneous Topics / Re: Java applets in a Flash based website? on: 2012-07-26 08:57:43
So i possibly have to change my mind about w3schools after all.  Sad
Reading the Posts and the information bits around the code on w3schools proofes to be a bit frustrating.

Still i'm missing a how to at the bottom of the majority of the how not to sections. They do describe whats wrong. But not how to make it right. Some code-snippets would sometimes be nice.
12  Discussions / Miscellaneous Topics / Re: Java applets in a Flash based website? on: 2012-07-26 06:19:57
Some references:

Just saw that i suggested a German Help-Site in an english Forum  Emo *facepalm*. Sorry for that. Force of habit.

A significant amount of information on w3schools is incorrect. It's better avoided. (eventhough I use it myself, for quick fixes)
My whole life is lie! I always look on them for basic html learn!

It did (and still does) work for me. I think if you approach the tutorials on w3schools with a certain amount of skepticism and caution it may work quite well for some fundamental basics. As i mentioned i never really read something mindblowing wrong. Undecided

@ra4king Are we talking about false practices here or really about errors?
@Riven same question. How would you define that "significant amount of false information"?
13  Discussions / Miscellaneous Topics / Re: Java applets in a Flash based website? on: 2012-07-25 22:30:04
I recommend WordPress for your website Smiley

I second that suggestion. Choose a Design you like once and forget about it. All you have to do from there is to pump out Sites/Content. Might be just the thing for you.  Wink
14  Discussions / Miscellaneous Topics / Re: Java applets in a Flash based website? on: 2012-07-25 22:25:03
I was not aware that seemingly w3schools presents you with wrong information. Huh
I for my part never stumbled upon something error-prone and liked the Feature where you can tamper around with the code directly online without much hassle.
But i also have to admit that i never read the explaining paragraphs around the bits of code since that is all i need (use it more like a quick reference than to learn).

Might keep my eyes open for aforementioned wrong informations the next time i stop by at w3schools.
15  Discussions / Miscellaneous Topics / Re: Java applets in a Flash based website? on: 2012-07-25 12:40:53
Since i have developed some Sites i might be able to help you here and there.

Should questions rise concerning JavaScript, HTML, CSS or a Combination of all three i will do my best to answer them.

Some references:

These are my choice when it comes to looking up how to use "this" HTML-Element for "that" purpose, the Syntax of a Function in JavaScript or debugging both for Errors/Mistakes.

Sometimes you will find a "best practice" or "how NOT to...". Often spared me countless Hours of Searching and Optimizing.

And a little extra: - what can be done with the same source and some CSS  Pointing
16  Discussions / Miscellaneous Topics / Re: Java applets in a Flash based website? on: 2012-07-25 10:58:39
Welcome to JGO,    meingrosserfreundjo. Your very first post is help someone, great!

Thanks for the warm welcome. I had to write something sometime. I got so much Information for my own Projects just being passive and reading the Topics of the Forum. First thing wenn i start up my Machine is reading news and new posts in Topics I'm interested in. Kinda keeps me informed what the latest best practices or librarys are. Just to keep up with changes that occur every day (or so it seems).

So i figured i'd start to give something back, hoping that somebody could use parts of my rambling to solve his/her problems or questions like i do quite a few times.  Cheesy
17  Discussions / Miscellaneous Topics / Re: Java applets in a Flash based website? on: 2012-07-25 10:45:45
Just looked at a few of the Examples from the URL you posted.

A lot of these Designs can be achieved with a Combination of CSS-structured HTML and a bit of JavaScript (=The "little" neat scripting Language that provides all these nifty little dynamic features of modern Websites. Side-scrolling and other animations, automatic Reloads,... you name it)

Most things that have some kind of Animation or dynamic Functions are done using JavaScript. That is if not using Flash of course (what i personally prefer).
18  Discussions / Miscellaneous Topics / Re: Java applets in a Flash based website? on: 2012-07-25 10:38:03
...he said, this is not a website development course, we just want you to know how to design the system and that, so were allowed to use templates, or using dreamweaver or any other program where you don't need to type one line of code in...

Didn't know that. Then i would really suggest just to take a Template and fiddle around a bit until it looks the way you like it/can use it. Is there any particular Reason that the Flash-Site is so preferable? Are we talking about "cool" Animations here or really a well done Concept/Style?

Is this a public Template? You got any URL or some kind of way to show the Flash-Site or what you want to achieve?
19  Discussions / Miscellaneous Topics / Re: Java applets in a Flash based website? on: 2012-07-25 06:37:18
Embedding Flash in Java is hard enough but the other way round is afaik not possible.

And before you start to split your flash thing in multiple parts to put around your Applet i'd suggest you just do HTML+CSS (which i think is the intended purpose of letting you create a website in the first place?).

There are some pretty awsome Templates out there. Go get 'em  Wink
(EDIT: Writing your own would be the best option though... You just don't have to invent the wheel over and over again. Use the best parts and ditch the rest)
Pages: [1]
DesertCoockie (59 views)
2018-05-13 18:23:11

nelsongames (88 views)
2018-04-24 18:15:36

nelsongames (78 views)
2018-04-24 18:14:32

ivj94 (763 views)
2018-03-24 14:47:39

ivj94 (95 views)
2018-03-24 14:46:31

ivj94 (647 views)
2018-03-24 14:43:53

Solater (108 views)
2018-03-17 05:04:08

nelsongames (189 views)
2018-03-05 17:56:34

Gornova (430 views)
2018-03-02 22:15:33

buddyBro (1090 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

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