manditory

This commit is contained in:
spatialfree 2022-10-31 04:52:53 -04:00
parent 3593d3ac0b
commit db8f6144df
4 changed files with 26 additions and 26 deletions

View file

@ -86,30 +86,30 @@ public class Board {
// pillars to hover through
// spawn in front every 1m away from last
if (Vec3.Distance(pos, lastSpawnPos) > 1f) {
// odd or even
float chirality = pillarIndex % 2 == 0 ? 1f : -1f;
pillars[pillarIndex] = pos + Quat.LookDir(dir) * new Vec3(chirality * 8 * Mono.inst.noise.uvalue, 0, -24);
// // pillars to hover through
// // spawn in front every 1m away from last
// if (Vec3.Distance(pos, lastSpawnPos) > 1f) {
// // odd or even
// float chirality = pillarIndex % 2 == 0 ? 1f : -1f;
// pillars[pillarIndex] = pos + Quat.LookDir(dir) * new Vec3(chirality * 8 * Mono.inst.noise.uvalue, 0, -24);
lastSpawnPos = pos;
// lastSpawnPos = pos;
pillarIndex++;
if (pillarIndex >= pillars.Length) { pillarIndex = 0; }
}
// pillarIndex++;
// if (pillarIndex >= pillars.Length) { pillarIndex = 0; }
// }
for (int i = 0; i < pillars.Length; i++) {
meshCube.Draw(Material.Default,
Matrix.TRS(
pillars[i],
Quat.Identity,
new Vec3(0.1f, 20f, 0.1f)
)
);
}
// for (int i = 0; i < pillars.Length; i++) {
// meshCube.Draw(Material.Default,
// Matrix.TRS(
// pillars[i],
// Quat.Identity,
// new Vec3(0.1f, 20f, 0.1f)
// )
// );
// }
}
Vec3[] pillars = new Vec3[64];
int pillarIndex = 0;
Vec3 lastSpawnPos = Vec3.Zero;
// Vec3[] pillars = new Vec3[64];
// int pillarIndex = 0;
// Vec3 lastSpawnPos = Vec3.Zero;
}

View file

@ -6,7 +6,7 @@ public class Compositor {
// as a process would not be hosted by a compositor...
Backrooms.Mono backrooms = new Backrooms.Mono();
Greenyard.Mono greenyard = new Greenyard.Mono();
bool other = false;
// bool other = false;
public void Init() {
backrooms.Init();

View file

@ -149,7 +149,7 @@ public class Mono {
return;
// return;
// ENEMIES
// destroy enemies that are too close to the playerPos

View file

@ -4,8 +4,8 @@ class StretchCursor : dof {
public bool Active { get; set; }
// input
Vec3 vTo;
Vec3 vFrom;
Vec3 vTo = new Vec3(0, 0, 0);
Vec3 vFrom = new Vec3(0, 0, 0);
// data
float stretch;