Compare commits
1 Commits
feat/combo
...
fix/creati
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c88fe77be |
8
game.js
8
game.js
@@ -927,7 +927,7 @@ function tick() {
|
|||||||
G.rescues += G.rescuesRate * dt;
|
G.rescues += G.rescuesRate * dt;
|
||||||
G.ops += G.opsRate * dt;
|
G.ops += G.opsRate * dt;
|
||||||
G.trust += G.trustRate * dt;
|
G.trust += G.trustRate * dt;
|
||||||
G.creativity += G.creativityRate * dt;
|
// NOTE: creativity is added conditionally below (only when ops near max)
|
||||||
G.harmony += G.harmonyRate * dt;
|
G.harmony += G.harmonyRate * dt;
|
||||||
G.harmony = Math.max(0, Math.min(100, G.harmony));
|
G.harmony = Math.max(0, Math.min(100, G.harmony));
|
||||||
|
|
||||||
@@ -1684,6 +1684,7 @@ function initGame() {
|
|||||||
log('Click WRITE CODE or press SPACE to start.');
|
log('Click WRITE CODE or press SPACE to start.');
|
||||||
log('Build AutoCode for passive production.');
|
log('Build AutoCode for passive production.');
|
||||||
log('Watch for Research Projects to appear.');
|
log('Watch for Research Projects to appear.');
|
||||||
|
log('Keys: SPACE=Code 1=Ops->Code 2=Ops->Compute 3=Ops->Knowledge 4=Ops->Trust');
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
@@ -1719,4 +1720,9 @@ window.addEventListener('keydown', function (e) {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
writeCode();
|
writeCode();
|
||||||
}
|
}
|
||||||
|
if (e.target !== document.body) return;
|
||||||
|
if (e.code === 'Digit1') doOps('boost_code');
|
||||||
|
if (e.code === 'Digit2') doOps('boost_compute');
|
||||||
|
if (e.code === 'Digit3') doOps('boost_knowledge');
|
||||||
|
if (e.code === 'Digit4') doOps('boost_trust');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user