diff --git a/Assets/meshes/assets.glb b/Assets/meshes/assets.glb index 3ba69a5..2f48910 100644 --- a/Assets/meshes/assets.glb +++ b/Assets/meshes/assets.glb @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:03e6766296a916fbb3471e3601eb0ed0e2e82bda18b34bf5233116f2e2b80593 -size 405108 +oid sha256:6366777e86535b0c19c4c8ef67940ac9e49112fd3168695b2c9b8ee9099e4d04 +size 407316 diff --git a/src/Arts.cs b/src/Arts.cs index edcf11a..2a6f251 100644 --- a/src/Arts.cs +++ b/src/Arts.cs @@ -54,8 +54,12 @@ static class Arts // box Hierarchy.Push(Mono.box_pose.ToMatrix(Mono.box_scale)); meshes["InsideOut"].Draw(mat_unlit, Matrix.Identity); + meshes["InsideOut"].Draw(mat_backbox, Matrix.Identity); meshes["Corrugation"].Draw(mat_unlit, Matrix.Identity); - meshes["Corrugation"].Draw(mat_backbox, Matrix.Identity); + if (Mono.menu) + { + meshes["Tape"].Draw(mat_mono, Matrix.Identity); + } // snake float fall_t = 0.0f; diff --git a/src/Mono.cs b/src/Mono.cs index 5d1c916..d5940d0 100644 --- a/src/Mono.cs +++ b/src/Mono.cs @@ -8,9 +8,11 @@ static class Mono public static double step_step = 60.0 / 80; // 80|100|120 bpm public static double step_time = 0.0; public static double step_t = 0.0; + + public static bool menu = true; + public static Pose box_pose = new(0, 0, -10 * U.cm); public static float box_scale = 1.333f * U.cm; - public const int SD_X = 2, SD_Y = 1, SD_Z = 2; public static SpatialArray s_array = new(SD_X, SD_Y, SD_Z, -1), @@ -98,11 +100,14 @@ static class Mono } // slither - for (int i = snake.Length - 1; i > 0; i--) + if (!menu) { - snake[i] = snake[i - 1]; + for (int i = snake.Length - 1; i > 0; i--) + { + snake[i] = snake[i - 1]; + } + snake[0] += snake_dir; } - snake[0] += snake_dir; // gravity bool grounded = false;