Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (526)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
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 / Networking & Multiplayer / Re: Two communication channels? on: 2007-03-23 07:45:52
Now I've refactored the game into a pure server-client architecture.
And I must say it has really made development a lot easier and the code tidier.
So I must give you guys (or gals) cred for pointing this out to me. 
2  Java Game APIs & Engines / OpenGL Development / Problems under Linux on: 2006-11-02 20:27:50
Hi,
My app (http://sourceforge.net/projects/motopain)
is now using LWJGL, I just ported it from Java2d, or actually implemented lwjgl too so one can choose. Anyway, it runs OK under windows, tried on several XP machine with different hardware. Today I tried it at home under Linux on my
Laptop with AMD Turion 64 and a ATI MobilityRadeon X700 (128 MB) and it sucked. The refresh rate was so slow it was totally unplayable.
So I would be glad for any advice what might be causing this, since it runs OK under Windows.
Anyone else had the same problem?

Regards,
Anders
3  Game Development / Networking & Multiplayer / Re: Two communication channels? on: 2006-11-01 14:08:57
Sure, go ahead - Write the game, get it working play with it - but know that you WILL have to THROW AWAY the code if the game ever gets popular OR you ever want to re-use the code for a future game.

Most people here like to re-use their code from half-made project to project, hence they worry about making something first time that is actually usable. If you're that kind of person, never ever ever think you can get away with "the client being a sort of server" - it will never work (modulo you can actually make it work, but in ways that are so much hassle and pain you honestly don't want to even think about going there).

Hmmmm interesting.
I don't mind pain generally but when implementing... Naaaa..
Can you give an example of the "hassle and pain" with this approach? Not because I don't beleive you but of interest.
And thanks for the feedback, I will probably reconsider my network design.





4  Game Development / Networking & Multiplayer / Re: Two communication channels? on: 2006-10-30 08:18:54
"only when they disagree"...thats sorta like 99% of the time in fast action paced games...


Yes...
The problem is that I do not have a server who holds a state, the server only keeps track of participants in the game and relays messages.
My idea of collison detection is to let the client who has the object (car) locally decide if there is a collison or not.
Somehow I will try to make it beleivable in the gameplay, one idea I have is to make the bounding shape  used for collision detection somewhat smaller than the sprite, thus a "near hit" will be more beleivable as a hit for the part who did not perceive a collision.
This approach means that each client is authorative over its local objects and acts a server for them, whereas it will not perform collison detection for objects residing on other nodes.


5  Game Development / Performance Tuning / Java's implementation of PriorityQueue? on: 2006-10-26 11:16:54
Hi,

In my networked car game, I am going to use a priority queue for incoming messages. That way, messages with higher proiority (player death, new player joined etc etc)
will be handled before those of lower priority such as position updates.

Is it a good idea to use java.utilPriorityQueue directly? Since this class works with Objects and Comparable.compareTo() the performance might be lower than if I would implement my own PriorityQueue using just  "int" and ">" for comparison.
What do you think, would it be worth the effort?

Regards Anders
6  Game Development / Networking & Multiplayer / Two communication channels? on: 2006-10-24 06:50:59
Hi!

I would be glad to have some feedback on my idea. I'm currently in the middle of implementing networking in my first networked Java game (http://sourceforge.net/projects/motopain).
I have implemented two communication channels, one reliable (TCP) and one unreliable (UDP). UDP are used for position updates and TCP are used for messages such as collisions, inhabitants removed or added in the game world and other stuff that affects the game state more severely.
I'm pretty confident that I'm not the first to have these thoughts, so if any of you have tried something similar I would appreciate if you would share some of  your experiences.
My main concern if is there is a cost involved with having a connection open (I set keepAlive to "true") to the server?

Regards Anders
7  Games Center / Archived Projects / Re: Xtreme Space War - Online multiplayer space shooter! on: 2006-10-17 12:45:02
Hi,
killer app!
Is the source open? It would be interesting to see it as I am working on something similar myself
(http://sourceforge.net/projects/motopain) but I'm having problems getting it to run as smooth as your app.

Regards Anders
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

toopeicgaming1999 (71 views)
2014-11-26 15:22:04

toopeicgaming1999 (60 views)
2014-11-26 15:20:36

toopeicgaming1999 (14 views)
2014-11-26 15:20:08

SHC (27 views)
2014-11-25 12:00:59

SHC (25 views)
2014-11-25 11:53:45

Norakomi (31 views)
2014-11-25 11:26:43

Gibbo3771 (25 views)
2014-11-24 19:59:16

trollwarrior1 (38 views)
2014-11-22 12:13:56

xFryIx (77 views)
2014-11-13 12:34:49

digdugdiggy (55 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!