Inspiration

We wanted to create a simple 1 vs 1 game that we could code in two days.

What it does

Two sharks (player 1 and player 2) try to hit each other with lasers. The first one to get hit loses.

How we built it

We built it using python and the pygame library. Each character has three sprites to animate movement when going forwards or backwards.

Challenges we ran into

We ran into some issues where the characters would flicker, which we ended up solving by minimizing the amount of times we updated the screen.

Accomplishments that we're proud of

The animation looks quite realistic and smooth despite being only two frames, and by limiting the amount of bullets a player can fire in a certain amount of time the game becomes much more interesting.

What we learned

We learned a lot about pygame, as well as how to use classes to make our code more clean and readable.

What's next for shark attack

Implementing health bars, so that each player can take more than one hit. Also maybe implementing more attacks.

Built With

Share this project:

Updates