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.
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.
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.
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.
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)