AITU Course Project. Like the Tanks 1990.
The project "Tanks_LibGDX" is a coursework developed as part of an educational programme at AITU. It is a game inspired by the classic game "Tanks 1990" and it is based on LibGDX.
The project aims to create a clone version of the popular video game "Tanks 1990", based on the LibGDX, a powerful game development framework. The project offers a complete package for developing, testing and deploying the game on a variety of platforms including Windows, Linux, Mac OS X, Android and Web Browser.
"Talks_LibGDX" not only showcases the technical skills of the development team, but also provides a solid foundation for further research and development in game programming.
These instructions will help you start and run a copy of the project on your local computer for development and testing purposes.
Start with cloning this repo on your local machine:
$ cd directory
$ git clone https://github.com/Alar-q/Tanks_LibGDX.git
$ cd ./Tanks_LibGDX
Tried everything, except for IOS, everything works.
Reference: Deploying your application
The easiest way to deploy to Windows/Linux/Mac is to create a runnable JAR file.
This can be done via the following console command:
$ ./gradlew desktop:dist
The generated JAR file will be located in the desktop/build/libs/
folder.
It contains all necessary code as well as all your art assets from the android/assets folder
and can be run either by double clicking or on the command line via
$ java -jar jar-file-name.jar
Your audience must have a JVM installed for this to work. The JAR will work on Windows, Linux and Mac OS X!
Alternative (modern) ways of deployment Distributing java applications as JAR file can be very unhandy. A very convenient way to distribute java application is to just bundle an JRE. Bundling a JRE.
$ ./gradlew android:assembleRelease
This will create an unsigned APK file in the android/build/outputs/apk folder
.
Before you can install or publish this APK, you must sign it. The APK build by the above command is already in release mode, you only need to follow the steps for keytool and jarsigner.
You can install this APK file on any Android device that allows installation from unknown sources.
$ ./gradlew html:dist
This will compile your app to Javascript and place the resulting
Javascript, HTML and asset files in the html/build/dist/
folder.
The contents of this folder have to be served up by a web server, e.g. Apache or Nginx.
Just treat the contents like you’d treat any other static HTML/Javascript site.
There is no Java or Java Applets involved!
With Python installed, you can test your distribution
by executing the following in the html/build/dist
folder:
Python 3.x
$ python -m http.server 8000
You can then open a browser to http://localhost:8000 and see your project in action.
Node.js
$ npm install http-server -g
$ http-server html/build/dist
and browse at http://localhost:8080. docs
I wanted to realise online game as well. In the end I did not implement Online. There is uncomplicated way to realise it with Socket.IO Multiplayer Games with LibGDX and NodeJS. I've been thinking about synchronisation, but I haven't figured out how to implement it properly yet. It seems the best solution would be to keep all game state on the server, players would only send controller information. But, there was no time to re-implement the game on the server.
Menus, MenuButtons, Boulders, and Explosions are generated by DALL-E.
See also the list of contributors who participated in this project.
██████╗ ███████╗███╗ ██╗ █████╗ ██╗███████╗███████╗ █████╗ ███╗ ██╗ ██████╗███████╗
██╔══██╗██╔════╝████╗ ██║██╔══██╗██║██╔════╝██╔════╝██╔══██╗████╗ ██║██╔════╝██╔════╝
██████╔╝█████╗ ██╔██╗ ██║███████║██║███████╗███████╗███████║██╔██╗ ██║██║ █████╗
██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║██║╚════██║╚════██║██╔══██║██║╚██╗██║██║ ██╔══╝
██║ ██║███████╗██║ ╚████║██║ ██║██║███████║███████║██║ ██║██║ ╚████║╚██████╗███████╗
╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝╚══════╝