Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Simple 2D multiplayer game  (Read 906 times)
0 Members and 1 Guest are viewing this topic.
Offline progmaticOx

Junior Newbie





« Posted 2013-03-16 01:02:14 »

Well I'm currently learning the basics of game programming, making  simple games like space invaders and pacman. I'd really like to work myself up to a simple multi-player game, sort of like a 2D rpg where you fight each other, just one button mashing attack. However I have no idea what I need to know in order to make one of these, I was wondering if I could get a point in the right direction. Also it would preferably be playable in the browser.
Offline Axeman

Senior Member


Medals: 7



« Reply #1 - Posted 2013-03-16 01:49:14 »

If it's just two players bashing each other, it should be pretty easy. I would go about it like this: first I would focus on just getting a player on screen and then get it moving, perhaps even add an animation for the "hitting" part. Then I would get the collision detection working so you actually have some working game mechanic. After that I would create a tilemap so I have a "level" and add better animation.

I would suggest looking into LibGDX. That way you don't have to write your own texture loader or tilemap loader and you can focus on learning how to make games. Smiley There's a nice, basic  "hello world" type game on the wiki and some tutorials on youtube on libgdx to get you started.
Offline progmaticOx

Junior Newbie





« Reply #2 - Posted 2013-03-16 09:21:26 »

If it's just two players bashing each other, it should be pretty easy. I would go about it like this: first I would focus on just getting a player on screen and then get it moving, perhaps even add an animation for the "hitting" part. Then I would get the collision detection working so you actually have some working game mechanic. After that I would create a tilemap so I have a "level" and add better animation.

I would suggest looking into LibGDX. That way you don't have to write your own texture loader or tilemap loader and you can focus on learning how to make games. Smiley There's a nice, basic  "hello world" type game on the wiki and some tutorials on youtube on libgdx to get you started.
Ok thanks, I'm glad that it doesn't sound too difficult, I'll want to make it more advanced eventually, but I thought that this would be a good starting point.

Also would I be correct in thinking that by using libGDX I could make it an android game? Because I would certainly like to do that.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline 65K
« Reply #3 - Posted 2013-03-16 09:58:00 »

Multiplayer game programming is far, far from being easy, I say.
So, if you haven't done so before, I recommend to finish at least one not trivial single player game first.

Offline progmaticOx

Junior Newbie





« Reply #4 - Posted 2013-03-16 10:06:21 »

Multiplayer game programming is far, far from being easy, I say.
So, if you haven't done so before, I recommend to finish at least one not trivial single player game first.

Ok well I'll do the game in single player first.
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.

BurntPizza (22 views)
2014-09-19 03:14:18

Dwinin (35 views)
2014-09-12 09:08:26

Norakomi (63 views)
2014-09-10 13:57:51

TehJavaDev (90 views)
2014-09-10 06:39:09

Tekkerue (44 views)
2014-09-09 02:24:56

mitcheeb (65 views)
2014-09-08 06:06:29

BurntPizza (48 views)
2014-09-07 01:13:42

Longarmx (35 views)
2014-09-07 01:12:14

Longarmx (40 views)
2014-09-07 01:11:22

Longarmx (37 views)
2014-09-07 01:10:19
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!