duct tape menu
This commit is contained in:
parent
b5568e2a68
commit
ab53957e80
3 changed files with 16 additions and 7 deletions
BIN
Assets/meshes/assets.glb
(Stored with Git LFS)
BIN
Assets/meshes/assets.glb
(Stored with Git LFS)
Binary file not shown.
|
@ -54,8 +54,12 @@ static class Arts
|
||||||
// box
|
// box
|
||||||
Hierarchy.Push(Mono.box_pose.ToMatrix(Mono.box_scale));
|
Hierarchy.Push(Mono.box_pose.ToMatrix(Mono.box_scale));
|
||||||
meshes["InsideOut"].Draw(mat_unlit, Matrix.Identity);
|
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_unlit, Matrix.Identity);
|
||||||
meshes["Corrugation"].Draw(mat_backbox, Matrix.Identity);
|
if (Mono.menu)
|
||||||
|
{
|
||||||
|
meshes["Tape"].Draw(mat_mono, Matrix.Identity);
|
||||||
|
}
|
||||||
|
|
||||||
// snake
|
// snake
|
||||||
float fall_t = 0.0f;
|
float fall_t = 0.0f;
|
||||||
|
|
|
@ -8,9 +8,11 @@ static class Mono
|
||||||
public static double step_step = 60.0 / 80; // 80|100|120 bpm
|
public static double step_step = 60.0 / 80; // 80|100|120 bpm
|
||||||
public static double step_time = 0.0;
|
public static double step_time = 0.0;
|
||||||
public static double step_t = 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 Pose box_pose = new(0, 0, -10 * U.cm);
|
||||||
public static float box_scale = 1.333f * U.cm;
|
public static float box_scale = 1.333f * U.cm;
|
||||||
|
|
||||||
public const int SD_X = 2, SD_Y = 1, SD_Z = 2;
|
public const int SD_X = 2, SD_Y = 1, SD_Z = 2;
|
||||||
public static SpatialArray<int>
|
public static SpatialArray<int>
|
||||||
s_array = new(SD_X, SD_Y, SD_Z, -1),
|
s_array = new(SD_X, SD_Y, SD_Z, -1),
|
||||||
|
@ -98,11 +100,14 @@ static class Mono
|
||||||
}
|
}
|
||||||
|
|
||||||
// slither
|
// slither
|
||||||
|
if (!menu)
|
||||||
|
{
|
||||||
for (int i = snake.Length - 1; i > 0; i--)
|
for (int i = snake.Length - 1; i > 0; i--)
|
||||||
{
|
{
|
||||||
snake[i] = snake[i - 1];
|
snake[i] = snake[i - 1];
|
||||||
}
|
}
|
||||||
snake[0] += snake_dir;
|
snake[0] += snake_dir;
|
||||||
|
}
|
||||||
|
|
||||||
// gravity
|
// gravity
|
||||||
bool grounded = false;
|
bool grounded = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue