A mini collection of 4 games I made using C++ and Simple Fast Multimedia Library (SFML) for animations, graphics and audio in Visual Studio 2019. I have classified the games for one player and two players and created menus for them. Some snapshots are:
game.dev.mp4
The first menu that will first appear on the screen:
If player wants to play a one player game:
If player wants to play a two player game:
SNAKE GAME
- A simple snake game made using c++ and SFML in visual studio.
- The aim is simple, make the snake as long as possible by eating the snack, its length increases by one block as snake eats the snack.
- The game is over if snake hits the boundaries and loses a life if it collides with itself and as lives become 0, game is finished.
- The game can be restarted by pressing 'R' and paused using 'P'.
BRICK GAME
- A simple ball brick game made using C++ and SFML in visual studio.
- The goal is simple, destroy all the bricks without losing lives, the ball speed and difficulty changes as per time and the positon of collison of ball with board.
- One can simply move the board by arrow keys, also game can be paused by pressing 'P' and restarted by pressing 'R'.
- Below is a visual representation of the game.
CONNECT-4 GAME
- A simple CONNECT-4 game that can be played between 2 players.
- The rules are the same as the normal connect-4 game. We have two players with 2 different coloured circular pieces, here i used yellow and red. The player that obtains 4 same coloured pieces consecutively in a row or column or diagonally, wins.
- Each player can move by dropping his piece which hovers above the board with the mouse.
- By clicking above the particular column in which the piece is to be dropped, one can move its turn.
- The game ends as soon as one of the player wins or the game draws and the window displays the winner colour, game can be restarted by using 'R' key.
- Below is a visual representation of the game.
TIC-TAC-TOE
- A simple tic-tac-toe game hat can be played between 2 players.
- The rules are same as the normal tictatoe game. We have 2 players one moves with a 0 and other with a X. The players who gets same 3 in a line either vertically, horizonatlly or diagonally wins the gaame.
- Each player can move by clicking on the box in the tictactoe grid.
- The game ends as soon as one of the player wins or the game draws and the window displays the winner, game can be restarted by using 'R' key.
- Below is a visual representation of the game.