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

View file

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

View file

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

View file

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