Skip to content

A collection of 4 games - Ball Brick game, Connect-4, TicTacToe, and Snake Game in a single application

Notifications You must be signed in to change notification settings

karthikeysaxena2507/GamesWithCppAndSFML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GAMES-WITH-CPP-AND-SFML

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:

STARTMENU

If player wants to play a one player game:

SINGlEPLAYERMENU

If player wants to play a two player game:

MULTIPLAYERMENU

SNAKE GAME

  1. A simple snake game made using c++ and SFML in visual studio.
  2. 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.
  3. 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.
  4. The game can be restarted by pressing 'R' and paused using 'P'.

snake

BRICK GAME

  1. A simple ball brick game made using C++ and SFML in visual studio.
  2. 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.
  3. One can simply move the board by arrow keys, also game can be paused by pressing 'P' and restarted by pressing 'R'.
  4. Below is a visual representation of the game. BRICKGAME

brcik2

CONNECT-4 GAME

  1. A simple CONNECT-4 game that can be played between 2 players.
  2. 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.
  3. Each player can move by dropping his piece which hovers above the board with the mouse.
  4. By clicking above the particular column in which the piece is to be dropped, one can move its turn.
  5. 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.
  6. Below is a visual representation of the game.

CONNECT4

TIC-TAC-TOE

  1. A simple tic-tac-toe game hat can be played between 2 players.
  2. 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.
  3. Each player can move by clicking on the box in the tictactoe grid.
  4. 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.
  5. Below is a visual representation of the game.

TICTACTOE

About

A collection of 4 games - Ball Brick game, Connect-4, TicTacToe, and Snake Game in a single application

Resources

Stars

Watchers

Forks

Languages