Raiden is a vertically scrolling shoot 'em up game with progressive difficulty. The player controls the Fighting Thunder aircraft, battling and evading various opponents. The player can shoot special projectiles that damage enemies while moving to avoid enemy attacks. The difficulty gradually increases by increasing the enemy's HP.
Random power-up goods would be distributed around the field to boost the player's performance. Collectables include weapon power-ups, healing items, and score-increasing awards. If all of a player's lives are lost during a game session, the game is over.
We use the traditional gaming controls, which are WASD, to control the movement of the ship. Arrow keys are also supported.
This is a modification of the original game Raiden, released in 1990.
Raiden Wikipedia
- Enemy ships are generated randomly in the field
spawnEnemyShip()
function
- Power up elements are generated randomly
spawnPowerUp()
function
int
char
&char
pointersstring
std::vector
std::pair
struct
- Enemy ships are stored in a dynamic array (
std::vector
) and removed once they are below the HP level.hitDetection()
function in game.cpp
- Bullets are removed once they reach the border of the game or hit the ships.
printBullets()
function in game.cpp
.txt
files are used to store the design of the player and enemy ship and the highest score attained in a local record.
main.cpp
file is the main instruction program to execute all the functions.game.cpp
file is the main file to write all the functions dedicated to the game, for instance, UI and controls.menu.cpp
file is the main file to write the functions related to the game menus.Makefile
is used to link all .cpp files and link them together.
ncurses
is used for better printing of game elements.
Menu | Gameplay | Gameover |
---|---|---|
Type make && ./game
to compile and execute the game. If you already compiled the game, just type ./game
to execute it.