⚓ Firebase Battleship — Realtime
⚓ Firebase Battleship — Realtime
Classic Battleship reimagined for the browser.
Play against a friend in real-time using Firebase Realtime Database. Ships are auto-placed, turns are tracked live, and every shot syncs instantly between players.
🎮 Features
-
Online Multiplayer — Create or join a room with a 4-character code.
-
Hidden Boards — Your fleet is visible only to you; the enemy’s remains secret until you fire.
-
Turn-Based Combat — Fire shots one at a time; results update instantly (hit, miss, or sunk).
-
Victory Conditions — Sink all ships to win the match.
-
Realtime Chat — Built-in chat system for taunts, strategies, or GG’s.
-
Sound FX — Gunfire, hits, misses, explosions, and victory/defeat jingles.
-
Mute + Volume Control — Players can toggle or adjust audio anytime.
-
Spectator Mode — Extra players who join can watch the battle unfold.
🕹️ How to Play
-
Create Room — Click “Create Room” to start a match; share the 4-letter code with a friend.
-
Join Room — Enter the code and join as Player B.
-
Fire Away — When it’s your turn, click an enemy cell to fire a shot.
-
Sink the Fleet — Keep firing until you sink all enemy ships!
🔧 Tech
-
Firebase Realtime Database — Handles multiplayer state, turns, boards, and chat.
-
Anonymous Auth — No sign-up required; each browser tab is a unique player.
-
HTML / CSS / JS — 100% client-side, runs anywhere, mobile-friendly.
🚀 Notes
-
For best results, play 1v1 by sharing the Room ID.
-
Extra players can still join as spectators.
-
Works on both desktop and mobile browsers.
👉 Ready to sink some ships?
Create a room, invite a friend, and start the battle!

Leave a comment
Log in with itch.io to leave a comment.