sveltekit-jokenpo

Sveltekit Jokenpo

Online minigame to practice sveltekit and socketIO

Svelte Jokenpo 🀜 πŸ’₯ 🫲

 

Rock, Paper, and Scissors online multiplayer minigame project to put into practice some SvelteKit and socket.io knowledge 😁

β¬†οΈβž‘οΈβ¬‡οΈβ¬…οΈ - Move

 
 SPACE 
 
- Change char

πŸ–±οΈ - Challenge players

πŸŽ™οΈ - Record messages

 
 ESC 
 
- Close modals

You can open two tabs to see it in action if nobody is there. Use arrow keys to walk, press space to change char and esc to close modals.

The chat/recording system uses Web Speech API.

Works better on Chrome (to see the API in action using Firefox, you have to change some flags under about:config) πŸ˜‘

It is possible to give some commands using that API, but I did not go too deep in that. You can test it by saying "alerta".

/blob/master/src/lib/components/Chat.svelte #46

  let isCommand = (text: string) => {
    if (text === "alerta") {
      alert("Exemplo de comando")
      return true
    }
    return false
  }

Deploy:

 

 

Top categories

Loading Svelte Themes