2021-09-13 15:53:43 +03:00
# Shooter on self-written 3D engine
< h4 > About:< / h4 >
Source code of simple shooter on [3Dzavr game engine ](https://github.com/vectozavr/3dzavr )
![Project demonstration ](img/gamePlay2.png )
2021-10-25 13:27:24 +03:00
[![MIT License ](https://img.shields.io/badge/license-MIT-blue.svg?style=flat )](http://choosealicense.com/licenses/mit/)
[![Community Discord ](https://img.shields.io/discord/788056426324426782.svg?label=discord&logo=discord )](https://discord.gg/NzSf5tyS)
![Commits ](https://img.shields.io/github/last-commit/vectozavr/shooter )
2021-10-30 11:24:19 +03:00
[![TODOs ](https://badgen.net/https/api.tickgit.com/badgen/github.com/vectozavr/shooter )](https://www.tickgit.com/browse?repo=github.com/vectozavr/shooter)
2021-10-25 13:27:24 +03:00
![Issues ](https://img.shields.io/bitbucket/issues-raw/vectozavr/shooter )
![Repo size ](https://img.shields.io/github/repo-size/vectozavr/shooter )
2021-09-13 15:53:43 +03:00
2021-10-23 17:36:02 +03:00
< h4 > Installation (OS Windows):< / h4 >
2021-10-25 13:27:24 +03:00
1) [Download shooter 7z ](https://drive.google.com/file/d/10mhgxUXd0e482U4oMaq4RD1rDeu3-YAX/view?usp=sharing/ ), [unzip it ](https://www.7-zip.org/ ) and run shooter.exe
2021-09-13 15:53:43 +03:00
2021-10-23 17:40:22 +03:00
2) Write < b > ip< / b > and < b > port< / b > of server in < b > connect.txt< / b > file.
2021-09-13 15:53:43 +03:00
2021-10-23 17:40:22 +03:00
3) Write < b > port< / b > of the server in < b > server.txt< / b > file (only for computer where the server will be running).
2021-09-13 15:53:43 +03:00
3) Enjoy gaming!
2021-10-25 04:42:24 +03:00
[<h3>How to run the server</h3> ](https://github.com/vectozavr/shooter_server )
2021-09-13 15:53:43 +03:00
< h4 > Control:< / h4 >
2022-02-23 17:29:42 +03:00
< b > Mouse< / b > , < b > Space< / b > , < b > A< / b > , < b > S< / b > , < b > W< / b > , < b > D< / b > – player control.
2021-09-13 15:53:43 +03:00
2022-02-23 17:29:42 +03:00
< b > SHIFT< / b > – slow motion (this ability is not infinite: its bar is next to hp)
2021-09-13 15:53:43 +03:00
2022-02-23 17:29:42 +03:00
< b > E & Q < / b > or keys < b > < - - > < / b > – change weapon
2021-09-13 15:53:43 +03:00
2022-02-23 17:29:42 +03:00
< b > R< / b > – recharge
2021-09-13 15:53:43 +03:00
2022-02-23 17:29:42 +03:00
< b > O< / b > – turn OpenGL on/off
2021-09-13 15:53:43 +03:00
2022-02-23 17:29:42 +03:00
< b > Tab< / b > – turn debug mode on/off
< h4 > Playing with a source code:< / h4 >
2021-09-20 13:54:09 +03:00
2021-10-17 12:03:03 +03:00
1) [Download and install OpenAL library ](https://openal.org/downloads/ ) for SFML sound support (in current version you can't setup this engine without OpenAL)
2021-09-13 15:53:43 +03:00
2021-10-17 12:03:03 +03:00
2) Clone this repository
2021-09-13 15:53:43 +03:00
2021-10-17 12:03:03 +03:00
3) Open project
2021-09-13 15:53:43 +03:00
2021-10-23 17:47:25 +03:00
Using [CLion ](https://www.jetbrains.com/clion/ ) with [MinGW (32-bit) ](https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/7.3.0/threads-posix/dwarf/i686-7.3.0-release-posix-dwarf-rt_v5-rev0.7z/download ) compiler: open < b > CMakeList.txt</ b > as a project
2021-09-13 15:53:43 +03:00
2021-10-23 17:47:25 +03:00
Using [Visual Studio ](https://visualstudio.microsoft.com/ru/ ): open < b > shooter.sln</ b > as a project
2021-09-13 15:53:43 +03:00
2021-10-17 12:03:03 +03:00
4) Built project and run the game
2021-09-13 15:53:43 +03:00
2021-10-23 17:47:25 +03:00
P/S: < b > SFML for 32-bit OS Windows is already included into this repository.</ b > So, you don't need to manually install it to your computer. If you have any problems with SFML, you can try to [download another version or build SFML by yourself. ](https://www.sfml-dev.org/download.php )
2021-09-13 15:53:43 +03:00
2022-02-23 17:29:42 +03:00
Structure:
![Project demonstration ](img/structure.png )
2021-09-13 15:53:43 +03:00
Online:
![Project demonstration ](img/gamePlay4.png )
GamePlay:
![Project demonstration ](img/gamePlay3.png )
![Project demonstration ](img/gamePlay5.png )
![Project demonstration ](img/gamePlay6.png )
![Project demonstration ](img/gamePlay7.png )
2021-10-22 19:42:32 +03:00
![Project demonstration ](img/opengl.png )