Remove color randomness
This commit is contained in:
11
game/main.c
11
game/main.c
@@ -546,7 +546,6 @@ static void renderGame(Game *game, float dt) {
|
||||
while (ecs_iter_next(&it)) {
|
||||
Particle *particle = ecs_field(&it, Particle, 1);
|
||||
for (i32 i = 0; i < it.count; i++) {
|
||||
DrawCircleV(particle[i].pos, 2.0f, RED);
|
||||
if (updateParticle(tex, &particle[i], dt))
|
||||
ecs_delete(ECS, it.entities[i]);
|
||||
}
|
||||
@@ -773,17 +772,15 @@ void imguiRender(float dt, void *userData) {
|
||||
} while (0)
|
||||
|
||||
|
||||
igColor("minStartColor", data->minStartColor);
|
||||
igColor("maxStartColor", data->maxStartColor);
|
||||
igColor("minEndColor", data->minEndColor);
|
||||
igColor("maxEndColor", data->maxEndColor);
|
||||
igColor("startColor", data->startColor);
|
||||
igColor("endColor", data->endColor);
|
||||
#undef igColor
|
||||
|
||||
igSliderFloat("minLifetime", &data->minLifetime, 0.0f, 6.0f, "%.2f", 0);
|
||||
igSliderFloat("maxLifetime", &data->maxLifetime, 0.0f, 6.0f, "%.2f", 0);
|
||||
Particle particle = spawnParticle(&emitter);
|
||||
ecs_entity_t e = entityCreateEmpty();
|
||||
ecs_set_ptr(ECS, e, ParticleLayer1, &particle);
|
||||
//ecs_entity_t e = entityCreateEmpty();
|
||||
//ecs_set_ptr(ECS, e, ParticleLayer1, &particle);
|
||||
}
|
||||
if (igCollapsingHeader_TreeNodeFlags("Selection", 0)) {
|
||||
switch (input->state) {
|
||||
|
||||
Reference in New Issue
Block a user