Rebrand as Big Ship Tycoon and add crew operations

This commit is contained in:
josh
2026-11-28 17:49:48 -05:00
parent a54f66cec9
commit 2c85a5ba00
68 changed files with 1642 additions and 98 deletions

View File

@@ -3,7 +3,7 @@ using UnityEngine;
namespace Soundings
{
internal sealed class VesselExterior
internal sealed partial class VesselExterior
{
internal const float DeckBase = 5.38f, DeckSpacing = 2.62f;
internal const float PoolHalfLength = 2.61f, PoolHalfWidth = 1.43f, PoolWaterHeight = .24f;
@@ -68,6 +68,7 @@ namespace Soundings
for (int side = -1; side <= 1; side += 2)
{
BuildHullFittings(side);
int portholes = 25 + ship.HullIndex * 7;
for (int i = 0; i < portholes; i++)
{
@@ -336,8 +337,11 @@ namespace Soundings
{
float pool = plan.PoolCenter;
if (plan.HasPool)
{
PoolBasin(Coat(Paint.Pearl), Coat(Paint.BlueGlass), Coat(Paint.Pool), new Vector3(pool, top, 0),
plan.PoolHalfSize, .37f, PoolWaterHeight);
BuildPoolDeckFittings(plan, top);
}
for (int side = -1; side <= 1; side += 2)
{
@@ -404,15 +408,18 @@ namespace Soundings
float radius = Mathf.Min(.31f, halfSize.y * .45f);
const float surround = .23f;
Vector2[] inner = RoundedRectangle(center, halfSize.x, halfSize.y, radius);
Vector2[] edging = RoundedRectangle(center, halfSize.x + .036f, halfSize.y + .036f, radius + .036f);
Vector2[] outer = RoundedRectangle(center, halfSize.x + surround, halfSize.y + surround, radius + surround);
float rim = foot.y + rimHeight;
float surface = foot.y + waterHeight;
coping.Loft(outer, center, false, new Vector3(1f, foot.y, 1f), new Vector3(1f, rim, 1f));
water.Loft(inner, center, true, new Vector3(1f, surface, 1f));
water.WaterSurface(inner, center, surface, halfSize);
for (int i = 0; i < outer.Length; i++)
{
int next = (i + 1) % outer.Length;
coping.Quad(HarborMesh.Point(outer[next], rim), HarborMesh.Point(outer[i], rim),
HarborMesh.Point(edging[i], rim), HarborMesh.Point(edging[next], rim));
tile.Quad(HarborMesh.Point(edging[next], rim), HarborMesh.Point(edging[i], rim),
HarborMesh.Point(inner[i], rim), HarborMesh.Point(inner[next], rim));
tile.Quad(HarborMesh.Point(inner[i], surface), HarborMesh.Point(inner[next], surface),
HarborMesh.Point(inner[next], rim), HarborMesh.Point(inner[i], rim));
@@ -631,7 +638,7 @@ namespace Soundings
private static Vector2[] RoundedRectangle(Vector2 center, float halfLength, float halfWidth, float radius)
{
const int cornerPoints = 5;
const int cornerPoints = 8;
var contour = new Vector2[4 * cornerPoints];
for (int corner = 0; corner < 4; corner++)
{