Added rotations, health, damage

This commit is contained in:
MaxRobinsonTheGreat
2020-07-16 13:29:17 -06:00
parent 9f13068cda
commit 2fc2ba7b80
12 changed files with 434 additions and 62 deletions

View File

@@ -30,7 +30,6 @@ class ControlPanel {
}
else if (!this.engine.running){
$('#pause-button').text("Pause");
console.log(this.fps)
this.engine.start(this.fps);
}
}.bind(this));
@@ -78,6 +77,16 @@ class ControlPanel {
$('#change-prob').val(Math.floor(Hyperparams.changeProb));
$('#remove-prob').val(Math.floor(Hyperparams.removeProb));
});
$('#mover-rot').change(function() {
Hyperparams.moversCanRotate = this.checked;
});
$('#offspring-rot').change(function() {
Hyperparams.offspringRotate = this.checked;
});
$('#insta-kill').change(function() {
Hyperparams.instaKill = this.checked;
});
}
defineModeControls() {