Ignoring that, it seems a fun little thing. I have trouble understanding the faces, but I assume that just takes practice.
It's pretty neat, fast, with the all-important cute animations that trick you into caring about a state machine.
The animations and the aestetic are great though!
>What a neat game, let's see what it does. Nah. Let's kill it.
Humans. So weird.
I agree animations and aesthetic are awesome (much better than the original LCD pixel Tamagotchi's).
What is this called? I'd like to read more about it.
class Resource{
constructor({
min = 0,
max = 1,
count = 0
}={}){
this.min = min;
this.max = max;
this.count = count;
}
}https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
I'm just a developer, but seeing stuff like this really makes me want to learn design.
var ele = document.createElement('div'); ele.setAttribute('id', 'foo'); //$('.stage').append("<div id='foo'>m</div>"); document.getElementsByClassName('stage')[0].appendChild(ele);
var dict = { pain: { energy: 'paddle', waste: 'needs to fart' }, sad: { ideas: 'coffee' }, frustration: { fatigue: 'sleep', energy: 'food' // 'paddle' }, restless: { concentration: 'knit?', waste: 'fart' }, tired: { fatigue: 'needs sleep' } };
// happy concentration // estatic ideas / waste // restless waster
trigger = setInterval(function() { var s = getState(STATE); var msg = s.mood.name + ' ' + s.mood.reason ; if (dict[s.mood.name] && dict[s.mood.name][s.mood.reason]) msg = dict[s.mood.name][s.mood.reason]; var other = ['concentration','energy','fatigue','ideas','waste']; for (var i = 0; i < other.length; ++i) msg += ' ' + other[i] + ':' + (s.creature[other[i]].count).toFixed(1);
document.getElementById('foo').innerHTML = '<small>'+ msg +'</small>';
}, 100)/* i couldnt find the mute button */ function playSound(state, sound){}
Reminds me of my son until he was 1 year old(ish).