Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  RPG with networking  (Read 441 times)
0 Members and 1 Guest are viewing this topic.
Offline mmimaa

Junior Newbie





« Posted 2013-07-08 14:30:38 »

Hello there! So far I've been working on some small projects, but now I've decided that I want to start a bigger project. So I'm thinking to program a 2D sidescroller RPG-ish, that has a multiplayer part.
For starters, I can't decide on which engine to use; I've worked with both LibGDX and slick2D, and I'm leaning towards slick2D because I've been using it more, but from what I've read it's outdated. The game is going to be running on PC, I'm not going to port it to mobile devices(Android or iOS). I will consider other engines too, if suggested. So I'm asking for your opinion, which one should I use and why?
Like I stated above, it's going to have some networking involved and, again, I don't know which API to use. I've considered KryoNet and Mina Apache so far, but I don't know anything about them and I don't know which one is better.
Also, I've been thinking about how to implement the data transfer. The terrain is going to be like in Terraria or Minecraft. So far i thought about splitting the map into chunks and sending some of them to the player based on his location, along with a list of mobs and other players. To keep the map updated I'm thinking about transferring a list of updated blocks between the server and the clients, so I don't have to send the whole chunk again. But I don't know how to do mob movement and combat, and how to keep it in sync across clients.
I know there are a lot of questions, but this is my first project of this kind and I want to do it right. Thank you for your patience.
Offline sproingie

JGO Kernel


Medals: 202



« Reply #1 - Posted 2013-07-08 17:08:18 »

Even if you're going with PC only, I'd still say go with LibGDX.  Slick operates in immediate mode with no geometry batching, and it lacks anything as useful as scene2d (slick-gui really doesn't count).  You'll be able to use tools like Spine for animations if you like, which has integration with GDX but not Slick.  And you'll have a community website and forum that's still there and plans to remain so.

As for networking, I'd recommend KryoNet.  Mina is very low-level in comparison, and it's kind of obsolete anyway, with most of its users (including its developers) having moved on to Netty.  Netty is a great networking API to study, but you probably don't need it.

Start simple, write lots of unit tests, and give your network clients and servers debug modes that deliberately slow down or drop packets.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (39 views)
2014-10-17 03:59:02

Norakomi (30 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (28 views)
2014-10-15 16:18:58

TehJavaDev (57 views)
2014-10-14 00:39:48

TehJavaDev (58 views)
2014-10-14 00:35:47

TehJavaDev (48 views)
2014-10-14 00:32:37

BurntPizza (64 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (78 views)
2014-10-11 22:30:10
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!