This project have been moved to GitLab: https://gitlab.com/xiroV/ninja-castle-game
This was originally a project for DM842 Computer Game Programming course on The University of Southern Denmark in the fall of 2017. The goal was to make a King of the Hill game, 3D platform style.
The game is written in C++ using as few dependencies as possible, utilizing OpenGL, and all 3D files have been made using the Open Source 3D suite Blender.
- [x] Player Movement
- [x] Character Graphics
- [ ] Character Animation
- [ ] Character Attack (collision detection) (Needs fixing)
- [x] AI (could use improvement, but works)
- [x] World/Level Graphics
- [x] King of the Hill Mechanics (score, etc.)
- [ ] Print score on screen
- [ ] Switch from build-in OpenGL shaders to Custom Shaders
- [ ] Implement loading of textures instead of materials
The game is a variation of the King of the Hill children game. The game takes place in a castle-like arena with a center platform and a surrounding moat.
The center platform is connected by bridges to the rest of the castle, and the two players will spawn in opposite ends of the castle.
The player now have to control this center platform in order to win the game, while trying to keep the AI-controlled player away from the platform, e.g. by pushing him out into the moat.
A player on the platform will gain 1 point for every second on the center platform, and anyone who falls down the moat will respawn after 3 seconds.
The player who reaches 500 points first, will win the match, and the game will restart.
Tested on Linux only, with the following dependencies
- OpenGL 4.3
- Glew
- Glut
- GLM
To install, in a terminal emulator, enter
cd src
make
To run, simply run the resulting `game` binary, located in the `bin` directory:
./bin/game
- Move around using the arrow keys
- Jump by pressing `Z`
- Press `ESC` to exit