Skip to content
/ megaman Public

2D Javafx Multiplayer Shooting game using Java Networking

Notifications You must be signed in to change notification settings

nafiz6/megaman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mega Man

A simple and fun retro-style multiplayer 2D shooting game made entirely from scratch with Java-FX and mega man sprites

Game Start

Working code for the entire project is in src/sample directory.

Other folders in /src directory contain .png sprites and a single folder contains game sounds.

Game sounds are deactivated in the latest release

Running the Game on your machine

The Working JAR executable files are found in JAR_Executables Folder

Instructions for running the game

Since this is a multiplayer game, Exactly two clients must be connected to server in order to begin playing The three files (One Server JAR file and 2 Client JAR files) can be run in three seperate machines as long as the machines are in the same LAN.

Java Runtime Environment needs to be installed on the machine(s) running the JAR files

Download the Runtime from java's website

There are three files in the JAR_Executables Folder](JAR_Executables/).

  1. The mega-man-server file is the server file that needs to be run first. There's no Graphical Interface on the server file, so it runs silently upon clicking it. This is intended behaviour.
  2. The mega-man-client-1 file and The mega-man-client-2 file are identical. The files are seperate to make running the same client code twice easier in some machines. Run both the files in turn. 3.The client game files when run will ask for Server IP address (Defaults to 127.0.0.1) Use the default IP address if the server is running in the same machine as the client game file. If not, enter the machine's IP address where the server is running here. Then click ready. Enter Server's IP address here
  3. Do the same for the other client game file.
  4. Intro plays and the game starts. Enjoy!

Controls

  • Press the arrow keys to move around ("Up" Arrow key to jump)
  • Press the "x" key to shoot fire bullets
  • Press the "c" key to attack with your glorious sword

Gameplay

Shooting Sword Strike Jumping

  • Going to the bubble on the top left of the screen gives the player a shield, rendering them immune to attacks for a limited time
  • Going to the plus sign on the top right gives the player extra health
  • Health of each player regenerates slowly with time
  • Bullets run out and regenerate slowly over time

Post-Game

Dead

  • Once someone is dead, Clicking on the Restart button on both clients restarts the game!

About

2D Javafx Multiplayer Shooting game using Java Networking

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages