JSFiddle - React, Tailwind, and code Playground
by Manawe
JavaScript
var smeltClay = function () {
touch_hold_i = 1;
touch_hold_j = 0;
touch_hold = true;
setTimeout(function () {
touch_hold = false;
selected_chest = "2";
Chest.deposit(20);
setTimeout(function () {
selected_chest = "1";
Chest.withdraw(40);
}, 1000);
setTimeout(function () {
touch_hold_i = -1;
touch_hold_j = 0;
touch_hold = true;
setTimeout(function () {
touch_hold = false;
}, 2000);
}, 2000);
}, 2000);
};
smeltClay();
setInterval(function () {
smeltClay();
}, 32000);