A Java-based multiplayer implementation of the classic Bomberman game featuring network play, AI enemies, and a comprehensive power-up system.
- Features
- Screenshots
- Architecture
- Installation
- How to Play
- Game Mechanics
- Technical Details
- Project Structure
- Contributing
- Future Enhancements
- Classic Bomberman mechanics with modern improvements
- Progressive difficulty system with 4 levels
- Dynamic maze generation ensuring path accessibility
- Real-time explosion effects with chain reactions
- Collision detection for walls, enemies, and players
- Host/Join system for network play
- Multiple concurrent players support
- Synchronized game state across clients
- Custom networking protocol for real-time updates
- 4 unique enemy types with different behaviors:
- Enemy 1 (Green): Random movement pattern
- Enemy 2 (Blue): Semi-intelligent, occasionally tracks players
- Enemy 3 (Red): Fast and aggressive, actively hunts players
- Enemy 4 (Purple): Ghost enemy, can pass through walls
- Bomb Capacity: Increase/decrease maximum bombs
- Speed Boost: Modify movement speed
- Explosion Radius: Expand bomb blast range
- Ghost Mode: Temporarily walk through walls
- Remote Control: Detonate bombs on command
- Score Modifiers: Bonus points and penalties
- Level Door: Progress to next level after defeating all enemies
- MVC Pattern: Separation of game logic, UI, and models
- Observer Pattern: Event-driven updates
- Factory Pattern: Enemy and booster creation
- Singleton Pattern: Resource management
- Concurrent collections for multiplayer synchronization
- Thread-safe game state management
- Separate threads for:
- Game logic updates
- Network communication
- UI rendering
- Enemy AI calculations
- Java 8 or higher
- IntelliJ IDEA (recommended) or any Java IDE
- Clone the repository
git clone https://github.com/yourusername/bomberman.git
cd bomberman
- Open in IntelliJ IDEA
File โ Open โ Select the Bomberman folder
IntelliJ should automatically detect the project structure
- Build the project
javac -d out -sourcepath src/main/java src/main/java/com/bomberman/Main.java
4.Run the game
java -cp out com.bomberman.Main
Key | Action โ โ โ โ| Move player B | Place bomb SPACE | Detonate bomb (with remote control power-up) ESC | Return to menu
- Click "Host Game"
- Enter your player name
- The server starts on port 8090
- Share your IP with other players
- Click "Join Game"
- Enter server address
- Enter port number (default: 8090)
- Enter your player name
- Navigate the maze and destroy breakable walls
- Defeat all enemies on each level
- Collect power-ups to enhance abilities
- Find and reach the door after clearing enemies
- Progress through all 4 levels to win
- Bombs explode after 3 seconds
- Explosion spreads in 4 directions
- Chain reactions possible with multiple bombs
- Explosion radius affected by power-ups
- Wall destruction: 10 points
- Enemy defeat: 100 ร enemy type
- Power-up collection: Varies
- Time penalties for slow completion
- Level 1: Only basic enemies (Enemy Type 1)
- Level 2: Enemy Types 1-2
- Level 3: Enemy Types 1-3
- Level 4: All enemy types including ghosts
- Language: Java 8+
- GUI Framework: Swing
- Networking: Java Sockets
- Concurrency: java.util.concurrent
- Build System: Manual compilation (Maven compatible)
- Game.java: Core game logic and state management
- MapPanel.java: Rendering and display
- Client.java / Server.java: Network communication
- Enemy.java: Base enemy AI behavior
- Bomberman.java: Player character logic
Bomberman/ โโโ src/ โ โโโ main/ โ โ โโโ java/ โ โ โ โโโ com/bomberman/ โ โ โ โโโ Main.java โ โ โ โโโ constants/ โ โ โ โโโ models/ โ โ โ โ โโโ enemies/ โ โ โ โ โโโ boosters/ โ โ โ โ โโโ terrain/ โ โ โ โโโ game/ โ โ โ โโโ ui/ โ โ โ โโโ network/ โ โ โ โโโ utils/ โ โ โโโ resources/ โ โ โโโ images/ โ โโโ test/ โโโ out/ โโโ README.md
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -m 'Add some AmazingFeature')
- Push to the branch (git push origin feature/AmazingFeature)
- Open a Pull Request
- Sound effects and background music
- Save/Load game functionality
- Player statistics and leaderboard
- Custom map editor
- Spectator mode
- Additional power-ups and enemy types
- AI difficulty settings
- Tournament mode
- Cross-platform executable packaging
Andisheh Ghasemi
Website: andishehghasemi.com GitHub: @andisheghs
Original Bomberman game by Hudson Soft Java Swing documentation and community Contributors and testers
Built with โค๏ธ as part of my portfolio of interactive projects


