Skip to content

Bombs online it's a server-based game made in C++ for Linux. First release on February 2023.

License

Notifications You must be signed in to change notification settings

HelenaMaslowska/bombs-online

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bombs Online

Bombs Online is a 2D game developed on Linux Ubuntu using C++ and Qt Creator 6. This educational Bomberman-style game operates on a client-server model, utilizing the TCP/IP protocol and sockets. You can play the game on two or more computers within the same network. Simply provide the server's IP address and the port on which the game should run. After entering both values, click "Set up," set your nickname, and click "Start." When all players in the room declare that they are ready to play, the game begins.

If there are more than 4 players, multiple rooms will be created to accommodate everyone. In the game, you can move your character using the WASD keys and place bombs using the X key. At the start of the game, you have 3 hit points (HP), 1 explosion range, 1 speed, and more, but you can change these values through power-ups. You'll find power-ups where crates exploded. Below, there is a description of what each color of crate does. The game ends when there is only one player left alive. The game's source code is available on my GitHub. Rules are simple:

  1. Be the last one to stand!

Ok, there are some other rules...

Rules

  1. Use w, a, s, d to move and x to place bombs.
  2. Kill other players.
  3. Destroy crates to gain powerups.
  4. Use powerups to increase your survivability.
  5. Have fun!

Powerups

  • green - range
  • gray - max bombs
  • blue - speed
  • red - HP
  • yellow - immortality

Getting started

You need to compile server on your computer, use this command. Use this folder path!

g++ server.cpp -o server -pthread

Execute server using this command: ./server <port_number>. Example is shown below.

./server 8080

After that, you can open clients/gamers using following command. Use this folder path. You can have a lot of players playing in other rooms!

./skproject

Screenshots with explanations

Please set these parameters before start!

  • IP address, e.g. 192.168.3.3 or 127.0.0.1 which means localhost
  • Port, e.g. 8080
  • After that press Set up!
  • Input your beautiful Nickname and then press Start

Here is our game! When all gamers press Ready to start, game will start!

License

Bombs Online is free and open source! All code in this repository is licensed under either:

About

Bombs online it's a server-based game made in C++ for Linux. First release on February 2023.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published