This code is an application example for the implementation of simple sensors for enemies. It shows a simple maze game with different types of enemies and walls. The EnemySensor type has a seeing sensor and is able to see players in its looking at direction.
This example was used during Computer Games lessons of the Multimedia Degree at the University of Alicante. You may want to check out the associated C++ lesson video (in Spanish):
In order to compile this code you require:
- A Linux/*Nix operative system (Win10 bash may do the job)
- CMake 3.2 or greater
- A compiler supporting C++11 or greater (GNU GCC is recommended)
- NCurses library and its development headers
- Enter project folder
- Create a build subfolder (
mkdir bin/
) - Enter build subfolder (
cd bin/
) - Launch CMake (
cmake ../src/
) - If CMake succeeded, run make (
make
) - If build succeeded, run minimaze game (
./minimaze
)
(c) 2017 Francisco J. Gallego-Durán
This code is distributed under GNU-GPL v3 License.