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