A pygame implementation version of the game mode Spike Rush present in the popular game, Valorant.
These instructions are also present in the game itself on startup:
Spike Rush: Pygame Implemenatation is played by two players - one attacking, one defending; the game is played on a singular keyboard with each player having a set of controls for movement, shooting, reloading, aiming, and planting the “spike.” Each player has a primary goal, but may also shoot at the opposing player in order to guarantee a victory.
-The “spike” is a bomb that will go off 45 seconds after it has been successfully placed in the designated “plant zone” on the map
-The spike can only be planted within the first 100 seconds after the game has started
-Press “H” to view controls
Attacking Player:
Primary goal: Plant the spike
-The attacker’s goal is to plant the spike in the plant zone before the first 100 seconds are up; it takes 4 seconds to plant
Win conditions:
1-Kill the defending player - since no one will be able to defuse the spike, it is considered an automatic win
2-Stall the defending player long enough that the spike detonates
Defending Player:
Primary goal: Prevent the spike from being planted
-The defender’s goal is to prevent the attacker from planting the spike in the first 100 seconds or to defuse the spike before it blows up (the 45 seconds); it takes 7 seconds to defuse
Win conditions:
1-Attacking player dies before planting spike
2-Spike is defused
3-Attacking player has not planted within 100 seconds
From https://github.com/olincollege/spike-rush, either clone the repository or download the zip file.
The following libraries were utilized in python 3.9..7 in the Conda environment:
Pygame - $ pip install pygame
Numpy - $ pip install numpy
For unit testing:
$ pip install pytest
Cloning from this repository to mess around with features is welcome. No changes are necessary in order to run the code if all of the assets in images have been downloaded as well.
In order to play, run python run_game.py
in the terminal.
Show Controls - H
Player 1 - Attacking:
Move Forwards - W
Move Backwards - S
Move Left - A
Move Right - D
Shoot - X
Reload - R
Rotate Counter Clockwise - C
Rotate Clockwise - V
Plant/Defuse Spike - 4
Player 2 - Defending:
Move Forwards - Up Arrow
Move Backwards - Down Arrow
Move Left - Left Arrow
Move Right - Right Arrow
Shoot - M
Reload - L
Rotate Counter Clockwise - ,
Rotate Clockwise - .
Plant/Defuse Spike - ;
The website can be found here.