Skip to content

ZERDICORP/adv__client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

adv__client 👾

Client for multiplayer game ADV.

What it is? 👀

ADV is an abbreviation that stands for.. idk to be honest 😅
Maybe, ADVenture, or maybe Adult Dog Violence.. 🐶
I thought that I would create an adventure game, hence the acronym.

I created this game just for fun, I wanted to learn more about sockets and network programming in general.
As a result, we got such a fun 2D online shooter 🔫

How can I try it? 😯

First you need to clone this repository (yes, really!)

$ git clone https://github.com/ZERDICORP/adv__client.git

Next make sure you have java & jar installed

$ java --version
openjdk 17.0.3 2022-04-19
OpenJDK Runtime Environment (build 17.0.3+3)
OpenJDK 64-Bit Server VM (build 17.0.3+3, mixed mode)
$ jar --version
jar 17.0.3

Next run the following command

$ cd adv__client/src/ && ./build && cd ../build/
windows user?
> cd adv__client\src\ && win_build.bat && cd ..\build

Finally we can run the program with the run script

$ ./run
[adv:log] Please specify a server..
windows user?
> win_run.bat
[adv:log] Please specify a server..

Oops, I forgot to clarify something.. since this is an online multiplayer game, we have to tell our client which server he wants to join.
So far only one server is available - mine.

$ ./run 95.165.89.228:86
windows user?
> win_run.bat 95.165.89.228:86

Hooray!

How to play it? :rage1:

W - move up
A - move left
S - move down
D - move right

Important!
With the first press, you turn the player's gaze, and only with the second - move forward.

E - take a shot

Cartridges can be seen around the player

F - set a block

Blocks can only be placed in the central square

Interesting facts:

  • The game follows the classic "wave" scenario.
  • At the bottom of the screen, you can see the "new wave" indicator, which means the time until the next wave starts in seconds.
  • Before the onset of the wave, you need to build a shelter.
  • The number of blocks is limited (this can also be seen at the bottom of the screen).
  • Blocks will be restored after the end of the wave.
  • Your player model is shaded.

Bad news 😔

If your screen height is less than 800 pixels, the picture will break.
You will be able to play, but the bottom of the game window will simply float under the screen.

Don't hit me hard!
I'm not a frontender!
It's not my thing to adjust pixels! 😤

Screenshot

image