Skip to content

Graygzou/raven

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raven Website

Top down 2D game, similar to a Quake-style deathmatch. It is originaly made by Mat Bucklandin his book, "Programming Game AI By Example". This application has been completed for a school project at the Université du Québec à Chicoutimi (UQAC). The course is the following : Artificial Intelligence for Video Games (8IAR125).

Objective

The main objective was to reviewed and improved the IA in the game. We also added features to the game like a new map, new weapons and new game modes (team deathmatch, 1vs1, ...)

Run the game

An .exe is available in the FinalBuild folder. To make it work, you need to download the entire FinalBuild folder which include lua variables, maps, etc. A UI will show up at start : it permits to run different modes and custom your game with custom AI behaviors for example.

Neural Network

The final challenge we solved in this project was introducing a neural network in the game to make a bot leaned how to shoot. We fed our network with criterions that came from the game envrionment :

  • Is the closest enemy visible ? 0 or 1
  • Does the closest enemy has his maximum health ? 0 or 1
  • Does the learning bot has his maximum health ? 0 or 1
  • The current weapon of the learning bot. 6 to 9
  • Does the distance (closest enemy)-(learning bot) is less than 200 ? 0 or 1

The final outuput of the network is the decision of the bot to shoot or not in the direction of the closest enemy. 1 or 0

We decided to expressed our inputs as binary values to make the neural learn as quickly as possible. We didn't want to record hours of gameplay in order to train it with all the possible cases.

Contributors

Name Worked on
Grégoire Boiron Learning with Neural Network, Fuzzification principle, Custom behaviors, Controller
Nguyễn Đức Hậu Add grenade weapon
Thomas Faget Dodge behavior
Florian Rumiel Learning with Neural Network, Controller
Vincent Pera Fuzzification principle
Sacha Vanleenne Team and loot weapons mechanism

Packages

No packages published

Languages

  • C++ 39.4%
  • C 35.5%
  • HTML 22.3%
  • Lua 0.8%
  • Makefile 0.7%
  • Python 0.6%
  • Other 0.7%