Coder Social home page Coder Social logo

sietrix / ex_sensors Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abpmultimediaua/ex_sensors

0.0 2.0 0.0 46 KB

Example on how to add sensors to enemies in a simple but structured way

License: GNU General Public License v3.0

CMake 2.53% C++ 97.47%

ex_sensors's Introduction

Simple Enemy Sensor Implementation in C++

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.

Screenshot of an enemy looking at a Player using its sight sensor

Explanation

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):

Francisco Gallego's Computer Games Lesson at the University of Alicante

Compilation requisites

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

Compilation instructions

  1. Enter project folder
  2. Create a build subfolder (mkdir bin/)
  3. Enter build subfolder (cd bin/)
  4. Launch CMake (cmake ../src/)
  5. If CMake succeeded, run make (make)
  6. If build succeeded, run minimaze game (./minimaze)

Copyright and License

(c) 2017 Francisco J. Gallego-Durán

This code is distributed under GNU-GPL v3 License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.