Skip to content

Naval Battle game made using Java, Javafx, css applying OOP, EDP concepts and serializable files to save the progress of the game.

Notifications You must be signed in to change notification settings

NogueraMateo/Naval-Battle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Naval Battle Game

Naval Battle game is an interactive desktop application inspired by the classic battleship game. Designed with a modern twist, this JavaFX-based application provides players with an engaging experience, allowing them to develop a strategy, attack and conquer their opponent's fleet.

🗝️ Key Features

  • Interactive Gameplay: Classic battleship mechanics with digital upgrade.
  • Fleet Management: Place ships on your grid with visual feedback.
  • Dynamic Fleet Reveal: Reveal or hide the machine's fleet using a "secure" keyword verification.
  • Save and Resume: Automatically saves the game's board state and player progress, allowing players to resume at any time.
  • Custom Graphics:
    • Animated bombs, fires, and water splashes.
    • Visuals for destroyed ships dynamically drawn with JavaFX shapes.

💻 Tech Stack

  • Java - Main Programming Language
  • 🏖️ JavaFX - Framework for GUI development
  • 🎨 CSS - For custom styling
  • ✏️ Git - Version control manager

🗺️ Future Ideas

  • Improved User Interface:
    • Add sound effects for actions like attacks and ship destruction.
  • Multiplayer Mode: Implement a local multiplayer feature to increase re-playability.
  • Statistics Tracking: Record and display game statistics, such as win rates and average game duration.
  • Testing: Add unit tests for game mechanics to ensure robustness.
  • Deployment: Package the game as an executable JAR file or installer for easier distribution.

🚀 How to run

  1. Clone the repository:
    git clone https://github.com/NogueraMateo/Naval-Battle.git
  2. Open the project in your preferred Java IDE (e.g., Intellij IDEA).
  3. Build and run the project:
    • Ensure JavaFX is configured correctly in your environment.
    • Run the HelloApplicationclass to start the application.

About

Naval Battle game made using Java, Javafx, css applying OOP, EDP concepts and serializable files to save the progress of the game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •