Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (808)
Games in Android Showcase (239)
games submitted by our members
Games in WIP (872)
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  
  Defiance - An open-source multiplayer 2D shooter game in Java.  (Read 9085 times)
0 Members and 1 Guest are viewing this topic.
Offline GreenLantern101
« Posted 2014-12-27 16:49:36 »

Defiance - An open-source multiplayer 2D shooter game in Java.

Over the past week or so, I have worked diligently modifying the Sydney Engine multiplayer shooter game, written in Java originally by Keith Woodward in 2008, using the Apache Mina networking framework (version 2.0.9). I've added a boatload of new features, and improvements, including HUDs, particles, new weapons, and greatly improved the chat system, as well as killstreaks and so forth. I'm now putting it on github, and I hope someone could look at it and find a bug in the internet system.

Version 1.0.1


Grab the .jar file and play now! : Defiance.jar


Setting Up and Playing

Dependencies: The jars are included in the SydneyDependencyJars folder. Just load the Eclipse Project, and run the class.

======[ Controls ]======

  • Move with Arrow keys or W, A, S, D
  • Left mouse click: fires weapon
  • R: reloads weapon
  • Number keys (1-9) or Q/E or Mouse wheel: selects available weapons
  • `[funny key above TAB]: turn on/off player names and hit points
  • Enter or Shift & Enter: Activate chat, then and once you've typed the message, press enter again to send. If shift is down when you first press enter, the 'send to allies' option is ticked
  • Page up or down: zoom in/ out
  • Escape: displays menu.

======[ Weapons ]======

  • Pistol - Basic weapon with low damage.
  • Machine Gun - Standard rapid-firing rotating gatling.
  • Flamethrower - Close-range weapon that sprays napalm that will stick around for a while, useful for area denial. The napalm will cause damage to anyone that walks over it.
  • Shotgun - Dual-shot weapon that fires a cloud of pellets. Most effective at close ranges.
  • Sniping Rifle - Accurate for long-distance one-hit kills, but slow-firing.
  • Tranquilizer Gun - Fires in short bursts, stunning enemies and slowing them and making them unable to fire.
  • Rocket Launcher - launches rockets that have a large explosion radius. More damage is dealt to objects that are closer to the epicenter of the explosion.
  • Homing Gun - launches three alien-technology orbs that will fire like a regular bullet unless there is an enemy in front of it, in which case it will automatically follow that target. The orbs are relatively slow, but are still useful around corners and against dug-in defenders.
  • Nail Gun - An alternative to the machine gun, that spits out 3 nails at once very rapidly, but watch out for your ammo depletion, since it comes with a small clip considering its rate of fire.

 Both the Flamethrower and the Rocket Launcher are Variable-Range weapons, that is, their bullets can detonate or stick at a certain range away from the weapon by using the mouse to aim.

======[ Items ]======

  • Healthpack - Restores 33% health.
  • Godly Armor - Grants invincibility against all weapons for 15 seconds, but player can still be tranquilized
  • Speed Shoes - Significantly speeds up travel.
  • Invisibility Shroud - Enemies can't see and target you for 15 seconds.

You can only use one of either the Godly Armor or the Invisibility Shroud, but not both. But, the Speedy Shoes can be used with anything.

======[ Extra ]======

The wi-fi on laptops may cause noticeable lag over local LAN, but still very playable.

This was slightly modified from the excellent Sydney Engine v. 0.2, made by Keith Woodward, whom can find me on the forums at or contact through . If you'd like to expand on this game, you can download the source code of Sydney Engine on, just search for 'SydneyEngine'.

I have a small list of todos:

Fix internet gameplay, make networking more dependable
Achievements??? - 1st kill, 3rd, 10th, 20th, 30th, 50th, 75th, 100th, 150th, 300th, 500th kills Die 1 time, Die 3 times with no kills, Get 3 healthpacks, Get 3 invisibilities, Switch weapons 20 times, used each weapon at least once, killed with each weapon at least once, assist 25 times
Make personal pop-up alerts configurable
Enhance graphics
Mech Suits support?
Destructable walls- possibly by using subtractive polygons
Map Editor/Maker!


Feel free to clone or fork it on github and all contributions are welcome.

Are there any suggestions or comments about this? Does anyone have any suggestions for improving the vector graphics?
Offline Drenius
« Reply #1 - Posted 2014-12-27 20:43:41 »

Are you sure about the name? It might lead to confusion...
Offline GreenLantern101
« Reply #2 - Posted 2014-12-27 22:51:12 »

I know that name is not unique, and I just meant for it to be a temporary name for this project, which seems fitting given the nature of the fast-paced against-all-odds type gameplay.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Ed_RockStarGuy
« Reply #3 - Posted 2014-12-27 23:27:27 »

Yeah 3 years ago i also had a project called defiance xD
Offline Destructor

Junior Devvie

Medals: 1
Exp: 2 years

« Reply #4 - Posted 2014-12-30 20:48:12 »

Nice game, but bots running faster than player Cheesy
Offline GreenLantern101
« Reply #5 - Posted 2014-12-30 21:12:18 »

Are you sure? The bots inherit from player class directly, using the same vars, and same update loop, and the maxSpeed var is set once and never changed...

When you change directions, there's an extremely small lag in direction changing, and then you must accelerate back to your maxSpeed. So you'll move faster if you move in solely one direction, for example.
Offline CommanderKeith
« Reply #6 - Posted 2014-12-31 01:40:42 »

Perhaps it's because one of the bots picked up speed shoes?!

GreenLantern made lots of awesome improvements to the game play. My favourites are the tranquiliser gun, rocket launcher, grenades and the trash-talking bots.

Pages: [1]
  ignore  |  Print  

Riven (849 views)
2019-09-04 15:33:17

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

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

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

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

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

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

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

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

nelsongames (5513 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

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 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!