Mystery and vagueness

This commit is contained in:
arne 2024-03-25 08:02:40 +01:00
commit 0f4cc5ec47

View file

@ -97,6 +97,7 @@ canvas.addEventListener('mousemove', at60fps((e) => {
}
}))
// TODO: Multi-touch does not get sent correctly
canvas.addEventListener('touchmove', at60fps((e) => {
const shouldSpawn = hasSpace.next().value!
const radius = MAX_RADIUS / 3*2
@ -124,7 +125,7 @@ socket.addEventListener('message', at60fps((e) => {
? 'The place is empty and quiet.'
: state.others === 1
? 'Somebody else is also here.'
: `There are ${state.others} others with you.`)
: 'Several people gathered around it.')
} else if (message?.type === 'ripple') {
const data = <Message & { type: 'ripple' }>message
const particle = createParticle(data.position, data.maxRadius)