Skip to content

2D-online-realtime shooter written in LibKTX(Kotlin API for libGDX) and Node.js (School Project))

Notifications You must be signed in to change notification settings

bartoszkruba/shooter_game

Repository files navigation

2D-online-realtime shooter

Written in LibKTX (Kotlin API for libGDX) and Node.js

How to run

Client

In order to run client you have to setup path to your SDK

Create file local.properties in project root
File should contain path to your SDK
sdk.dir=YOUR_PATH

Run desktop client thorugh gradle
./gradlew desktop:run

Server

Navigate into server directory
cd server

Install npm dependencies
npm install

Run server
node index.js

Docker

Creating docker image for server

Navigate into server directory
cd server

Build docker image
docker build -t IMAGE_NAME

Creating desktop executable

Compile project into fat jar
./gradlew dekstop:dist

Fat jar is generated in desktop/build/libs

Download the latest packR build

Edit packr.config.json add set following parameters:

platform: target platform for your executable (one of "windows32", "windows64", "linux32", "linux64", "mac")
jdk: path to directory, ZIP file or URL for JDK
classpath: path to your compiled fat jar
output: output directory for executable

Create executable with packR
java -jar packr.jar PATH_TO_CONFIG_JSON

About

2D-online-realtime shooter written in LibKTX(Kotlin API for libGDX) and Node.js (School Project))

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published