convert all DNA to uint8_t

This commit is contained in:
2025-01-02 22:19:37 +01:00
parent 4d3474bc18
commit 8066ba5103
4 changed files with 33 additions and 18 deletions

View File

@@ -7,10 +7,10 @@
void newDna(Dna &dna)
{
TraceLog(LOG_INFO, "SIZE OF DNA:%d", sizeof(dna));
dna.moon = {mrand::getFloat(), mrand::getFloat(), mrand::getFloat()};
dna.colorSet = mrand::getValue(0, 3);
dna.time = std::floor(Remap(dna.moon.y, 0, 1, 4, 0));
dna.moonX = mrand::getValue(0, 254);
dna.moonY = mrand::getValue(0, 254);
dna.moonSize = mrand::getValue(0, 254);
dna.colorSet = mrand::getValue(0, 254);
dna.mountenSeed.a = mrand::getInt();
dna.mountenSeed.b = mrand::getInt();