Mystery and vagueness
This commit is contained in:
parent
0d224823cc
commit
0f4cc5ec47
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue