# Sea Battle ( online )

**URL:** <https://discourse.threejs.org/t/sea-battle-online/53174>\
**Category:** Showcase\
**Created:** [June 24, 2023, 1:43pm UTC](https://discourse.threejs.org/t/sea-battle-online/53174 "2023-06-24T13:43:35Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![KiborgMaster](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kiborgmaster/32/69616_2.png) [@KiborgMaster](https://discourse.threejs.org/u/KiborgMaster)\
**Post date:** [June 24, 2023, 1:43pm UTC](https://discourse.threejs.org/t/sea-battle-online/53174/1 "2023-06-24T13:43:35Z")

</div>

[https://sea-battle.wstgame.online](https://sea-battle.wstgame.online)

[![](https://img.youtube.com/vi/tvdagE9OAWU/maxresdefault.jpg "SeaBattle") ](https://www.youtube.com/watch?v=tvdagE9OAWU)

Good day to everyone, I have not been here on this forum for a long time, because of the situation in my country, I have not been engaged in development for half a year. But now I decided to come back and to refresh my memory I created a sea battle game, it has already been released and the application for android is on moderation. In the current version, everything is minimally available so far, you can create a game or connect to an already created game. It is also possible to create private rooms with a password so that no one other than your opponent can connect. In the future, I’m thinking of adding 20x20 maps, as well as mines and the ability to change ships. By the way, the change of ships is already on the server, I’m just not in a hurry because this game is designed more for mobile phones and I don’t want to overload it with very large models.

---

<div class="post-metadata">

**Author:** ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)\
**Post date:** [June 27, 2023, 4:09am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/2 "2023-06-27T04:09:07Z")

</div>

Watched the video. The graphics looks nice!

As I understand it, you plan to improve the game by adding new functionality. You might also consider these issues:

- the ships are too dark, at least on my screen
- the ships may sway on the ways, instead of staying fixed
- the water, although a nice effect, is somewhat distracting

---

<div class="post-metadata">

**Author:** ![Umbawa\_Sarosong](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/umbawa_sarosong/32/30107_2.png) [@Umbawa\_Sarosong](https://discourse.threejs.org/u/Umbawa_Sarosong)\
**Post date:** [June 27, 2023, 5:03am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/3 "2023-06-27T05:03:12Z")

</div>

awesome, i played this game on 2d, this game would be a good mobile game in 3d, just zoom it in a bit so we can see the grid more clearly on mobile.

---

<div class="post-metadata">

**Author:** ![KiborgMaster](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kiborgmaster/32/69616_2.png) [@KiborgMaster](https://discourse.threejs.org/u/KiborgMaster)\
**Post date:** [June 27, 2023, 8:41am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/4 "2023-06-27T08:41:52Z")

</div>

> [@PavelBoytchev](#):
>
> - the water, although a nice effect, is somewhat distracting

You are right, 1 and 3 are just a setting, but point 2 I have already thought about it.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/1/a/1a97af00b573d01d9db2f800699b1096371b9b02.jpeg)

I will do something simple so as not to load the scene.  
Thanks for your advice.)

---

<div class="post-metadata">

**Author:** ![KiborgMaster](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kiborgmaster/32/69616_2.png) [@KiborgMaster](https://discourse.threejs.org/u/KiborgMaster)\
**Post date:** [June 27, 2023, 8:43am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/5 "2023-06-27T08:43:23Z")

</div>

> <https://play.google.com/store/apps/details?id=online.wstgame.seabattle>
>
> Sea Battle ( 3D ...

Hooray promoted the first version on the play market ))))))))

---

<div class="post-metadata">

**Author:** ![Umbawa\_Sarosong](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/umbawa_sarosong/32/30107_2.png) [@Umbawa\_Sarosong](https://discourse.threejs.org/u/Umbawa_Sarosong)\
**Post date:** [June 27, 2023, 9:48am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/6 "2023-06-27T09:48:07Z")

</div>

it be cool if automatically zooms into the boards, luv this game its one of the best past time game, no stress and fun

---

<div class="post-metadata">

**Author:** ![KiborgMaster](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kiborgmaster/32/69616_2.png) [@KiborgMaster](https://discourse.threejs.org/u/KiborgMaster)\
**Post date:** [June 27, 2023, 10:10am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/7 "2023-06-27T10:10:58Z")

</div>

> [@Umbawa\_Sarosong](#):
>
> it be cool if automatically zooms into the boards

It’s an interesting idea, but how to do it right. Basically, there is switching between cameras between boards, of course, you need to set the scale manually.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/4/d/4d5a725254ebea44f4d00406cadeaa1071b73862.jpeg)

And this button allows you to turn off orbital control  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/6/7/6766bda43371c15b694fc02e64834ea952779747.jpeg)

---

<div class="post-metadata">

**Author:** ![Umbawa\_Sarosong](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/umbawa_sarosong/32/30107_2.png) [@Umbawa\_Sarosong](https://discourse.threejs.org/u/Umbawa_Sarosong)\
**Post date:** [June 29, 2023, 12:50am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/8 "2023-06-29T00:50:57Z")

</div>

can i have ur permission to integrate this in android and use it in Google play

---

<div class="post-metadata">

**Author:** ![KiborgMaster](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kiborgmaster/32/69616_2.png) [@KiborgMaster](https://discourse.threejs.org/u/KiborgMaster)\
**Post date:** [June 29, 2023, 7:35am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/9 "2023-06-29T07:35:24Z")

</div>

It has already been added to the play market, the link is above.

---

<div class="post-metadata">

**Author:** ![Umbawa\_Sarosong](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/umbawa_sarosong/32/30107_2.png) [@Umbawa\_Sarosong](https://discourse.threejs.org/u/Umbawa_Sarosong)\
**Post date:** [June 30, 2023, 11:55am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/10 "2023-06-30T11:55:20Z")

</div>

i am making a version with modern battleships, i will then use android webview so i can publish it on google play

---

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [June 30, 2023, 4:27pm UTC](https://discourse.threejs.org/t/sea-battle-online/53174/11 "2023-06-30T16:27:14Z")

</div>

make them actually firing at the enemy with the canon balls flying in arcs. and maybe when the ship gets destroyed, some predator-like de-cloaking effect and then it sinks.

---

<div class="post-metadata">

**Author:** ![KiborgMaster](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kiborgmaster/32/69616_2.png) [@KiborgMaster](https://discourse.threejs.org/u/KiborgMaster)\
**Post date:** [June 30, 2023, 8:51pm UTC](https://discourse.threejs.org/t/sea-battle-online/53174/12 "2023-06-30T20:51:43Z")

</div>

That’s what I thought, because fire is a system of particles that makes the load. But you can’t do it quickly with cannonballs, I need to find the formula for the parabolic flight of the cannonball, and even add an active cannon to each ship.

---

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [June 30, 2023, 11:10pm UTC](https://discourse.threejs.org/t/sea-battle-online/53174/13 "2023-06-30T23:10:59Z")

</div>

> [@KiborgMaster](#):
>
> I need to find the formula for the parabolic flight of the cannonball

that’s like right in the name:

> parabolic

you get t = 0…1, lerp xz, and for y you want it to be at some height h at t=0.5 and down to 0 at t=0 or 1, so y = h - something \* (t - 0.5)^2 then 0 = h - something \* 0.25 so something = h \* 4.

(obviously in real life it does not quite work like that, h is tied to initial ball speed, but here in the matrix you can just pick the value that feels right for the game)

---

<div class="post-metadata">

**Author:** ![KiborgMaster](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kiborgmaster/32/69616_2.png) [@KiborgMaster](https://discourse.threejs.org/u/KiborgMaster)\
**Post date:** [October 10, 2023, 7:10am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/14 "2023-10-10T07:10:40Z")

</div>

Update 2

1. Added the ability to change ships
2. Dead ships self-destruct after 60 seconds, this gives greater productivity. But you can also disable self-destruction in the settings.
3. Added visualization of the ship rocking on the waves.

[![](https://img.youtube.com/vi/JVMgD8SHrm4/maxresdefault.jpg "SeaBattle2") ](https://www.youtube.com/watch?v=JVMgD8SHrm4&t=63s)

---

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [October 17, 2023, 2:48am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/15 "2023-10-17T02:48:30Z")

</div>

> [@KiborgMaster](#):
>
> Dead ships self-destruct

they should just sink, lol

and why does the water burn after they self-destruct?

---

<div class="post-metadata">

**Author:** ![KiborgMaster](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kiborgmaster/32/69616_2.png) [@KiborgMaster](https://discourse.threejs.org/u/KiborgMaster)\
**Post date:** [November 8, 2023, 10:14am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/16 "2023-11-08T10:14:15Z")

</div>

Drowning, it can be done, I just didn’t bother. I thought about the burning, but they told me not to remove it yet because it looks cool.

---

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [November 8, 2023, 7:56pm UTC](https://discourse.threejs.org/t/sea-battle-online/53174/17 "2023-11-08T19:56:02Z")

</div>

you can do bubbles after the ship sank

---

<div class="post-metadata">

**Author:** ![KiborgMaster](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kiborgmaster/32/69616_2.png) [@KiborgMaster](https://discourse.threejs.org/u/KiborgMaster)\
**Post date:** [November 26, 2023, 7:36pm UTC](https://discourse.threejs.org/t/sea-battle-online/53174/18 "2023-11-26T19:36:54Z")

</div>

New Update ( B52, Kirov ) i think all remamber " KIROV REPORTING "

[![](https://img.youtube.com/vi/5w9L0JuYZ3M/maxresdefault.jpg "SeaBattle3") ](https://www.youtube.com/watch?v=5w9L0JuYZ3M)

---

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [November 28, 2023, 4:54am UTC](https://discourse.threejs.org/t/sea-battle-online/53174/19 "2023-11-28T04:54:27Z")

</div>

[![](https://img.youtube.com/vi/Jj-mAiTMvX8/maxresdefault.jpg "Angry Birds - Mighty Eagle's Theme Song Scene (7/10) | Movieclips") ](https://www.youtube.com/watch?v=Jj-mAiTMvX8)
