Sign in to follow this  
tangerine

Real-time Networked 2D Graphics

Recommended Posts

I recently have become hooked on creating networked games, starting simple of course. But I'm interested in real-time play, as in multiple player characters playing alongside other characters, not turn based play. Now I've only just begin to dabble in both graphics programming and network programming, but mainly only with Java. But is Java capable of real-time networked graphics? As a real basic example of what I mean, can Java be used to create an applet which involves two or more sprites on the screen being moved around at the same time each by separate players on separate machines, connected through the internet? If not, then I need to find a new language. I have some background in C++ but I'm looking for a language that's more simple for starting networked graphics. But if there isn't a better language or if C++ is better in the long run then I'm very much willing to use it.

Share this post


Link to post
Share on other sites
Quote:
Original post by tangerine
Thanks. I think I'll just go back to C++ though. I feel it's better in the long run.


Thats a shame. http://www.corvstudios.com/tutorials/udpMultiplayer.php

Share this post


Link to post
Share on other sites
I think java is your answer. Seach for socket programming in java, it is a very good library. If your game is simple or you are working on LAN it should be enough.

I never learned about networks in C++ but I am sure the problem you will get in Java will also occur in C++

Share this post


Link to post
Share on other sites
If you're still interested, you might want to check out this not-so-old article at FunOrb.com about a recently-released java game. IMO the developers have overcome this particular problem nicely. I'm not sure at first glance whether the game in question is 2D or 3D though, it's possible it uses 2D sprites which have been pre-rendered.

Just to prove it's possible, anyway. =) Hope this helps.

Share this post


Link to post
Share on other sites
For what it's worth, Puzzle Pirates is a 2D MMO written in Java. Of course, it's not a very latency-sensitive game, but it certainly does work, and I've no doubt that Java networking is basically as capable as C++ networking.

Share this post


Link to post
Share on other sites
Quote:
Original post by tangerine
Thanks. I think I'll just go back to C++ though. I feel it's better in the long run.


How will you run C++ code in a browser? After all, you were asking about applets.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this