Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (777)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
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 1103 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  

hadezbladez (335 views)
2018-11-16 13:46:03

hadezbladez (177 views)
2018-11-16 13:41:33

hadezbladez (336 views)
2018-11-16 13:35:35

hadezbladez (81 views)
2018-11-16 13:32:03

EgonOlsen (2175 views)
2018-06-10 19:43:48

EgonOlsen (2203 views)
2018-06-10 19:43:44

EgonOlsen (1376 views)
2018-06-10 19:43:20

DesertCoockie (2008 views)
2018-05-13 18:23:11

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

nelsongames (2296 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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!