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:
- Be the last one to stand!
Ok, there are some other rules...
- Use
w, a, s, d
to move andx
to place bombs. - Kill other players.
- Destroy crates to gain powerups.
- Use powerups to increase your survivability.
- Have fun!
- green - range
- gray - max bombs
- blue - speed
- red - HP
- yellow - immortality
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
Please set these parameters before start!
- IP address, e.g.
192.168.3.3
or127.0.0.1
which means localhost - Port, e.g.
8080
- After that press
Set up!
- Input your beautiful
Nickname
and then pressStart
Here is our game! When all gamers press Ready
to start, game will start!
Bombs Online is free and open source! All code in this repository is licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)