Menu

Tree [54e461] master /
 History

HTTPS access


File Date Author Commit
 maps 2015-01-14 Mihail Cuculici Mihail Cuculici [d74449] Map generator tool
 src 2016-06-09 MihaiCux MihaiCux [54e461] New version: resource allocation & new bugs
 .gitignore 2013-12-10 root root [f2070a] Created characters & walls & initial part of se...
 README.md 2016-06-03 MihaiCux MihaiCux [576517] ConcurrentException fix + minor optimizations
 README.md~ 2016-06-03 MihaiCux MihaiCux [576517] ConcurrentException fix + minor optimizations
 bomberman.sql 2016-06-03 MihaiCux MihaiCux [576517] ConcurrentException fix + minor optimizations
 composer.json 2015-01-14 Mihail Cuculici Mihail Cuculici [d74449] Map generator tool
 hs_err_pid10910.log 2014-07-22 root root [a2e82b] Optimized management for bomb explosion
 nb-configuration.xml 2014-09-25 mihaicux mihaicux [0872d5] Minor code changes for the bots
 pom.xml 2015-01-14 Mihail Cuculici Mihail Cuculici [d74449] Map generator tool

Read Me

cuxbomberman

This application uses the Java implementation for the webSockets server to provide an endpoint for the classic bomberman game.
The whole code was written using Netbeans 8.0

The whole source code can be cloned and opened directly into NetBeans.

In order to run the game, you may need to adjust the source code, changing the line numbered 817 from the file src/main/java/com/cux/bomberman/BombermanWSEndpoint.java, fixing the absolute location for the firstmap.txt file.

You must also import the SQL file named bomberman.sql, found in the root of the project.
The database is called bomberman and the default credentials are as follows:

Username : bomberman_admin

Password : bomberman_password

If you decide to change these values, make sure to also change the code constants values found in
src/main/java/com/cux/bomberman/BombermanWSEndpoint.java:

DBConnectionString : found at line 247

DBName : found at line 252

DBUser : found at line 257

DBPass : found at line 262

The MAPS folder must be placed in GlassFish current domain config folder.
For me, this is located in
/home/mihaicux/GlassFish_Server/glassfish/domains/domain1/config/


The next line of code can be found in src/main/java/com/cux/bomberman/BombermanWSEndpoint.java, at line 821

map.put(mapNumber, new World("maps/firstmap.txt"));

You will also need a Glassfish server to deploy the application. I simply downloaded the FULL version of Netbeans, and it came with all the features needed to directly run this application.

Because it needs to store login credentials, as well as other properties for the players, you will need a MySQL database server.

All you have to do is to open the project in NetBeans, Clean&Build the project and press Play.
** Note: you will have to allow/unblock the default port for the WebServer - 8080**

You are now ready to play with your friends this simple, yet classy and entertaining game.
Just give them your IP address followed by :8080/bomberman and they will be ready to connect in no time.

screenshots
InGame Action Screen

Map Generator Tool

Admin options menu Screen

Wellcome Screen

Normal user options Screen

Login Screen

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.