Commit 048fae6e authored by Tomás Teijeiro Campo's avatar Tomás Teijeiro Campo

Increased the velocity initialisation to match the python version with 120fps

parent f6e36954
......@@ -50,8 +50,8 @@ invadersApp.Invader = function (ctx, genes, x, y) {
//TODO guarrada para comprobar a influencia da primeira xeración
genes['scale'] = bound_value(gammavariate(4, 0.5)+1, 1, 7);
genes['alpha'] = chance.integer({min: 20, max: 255});
genes['xvelocity'] = 100*bound_value(gammavariate(2, 0.4), 0.01, 5);
genes['yvelocity'] = 100*bound_value(gammavariate(2, 0.3), 0.01, 5);
genes['xvelocity'] = 120*bound_value(gammavariate(2, 0.4), 0.01, 5);
genes['yvelocity'] = 120*bound_value(gammavariate(2, 0.3), 0.01, 5);
genes['x_prob_change_dir'] = chance.floating({min: 0.01, max: 0.05});
genes['y_prob_change_dir'] = chance.floating({min: 0.01, max: 0.05});
return genes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment