THIS IS A TWITCH CHAT GAME. YOU WILL NOT BE ABLE TO PLAY IT ON YOUR OWN OR WITHOUT A TWITCH ACCOUNT.

If you're having issues with signing into Twitch through the itch.io page, try playing the game at https://vykri.com/gamedevjs/ .

Instructions:

Click the "Login to Twitch" button to get redirected to a Twitch page to authorize the login. After pressing "Authorize", you'll be redirected to https://vykri.com/gamedevjs/ and the game will automatically start.

While the game is running, anyone can type in your Twitch page's chat to play the game (even if you're offline).

The game starts in overlay mode with a bright magenta background and instructions on how to overlay the game on your stream. You can turn this off by clicking on the options button in the top left and disabling overlay mode.

There is a scrolling How To Play text at the bottom of the screen, but I'll repeat it here.

To set a unit's action and direction, type "[ID] [shoot|reflect] [left|right]" (ex. "2 shoot left") into the chat.

After x seconds are up, all of the shooting units will shoot their guns. Whichever team has more units alive at the end wins the round.

You can optionally type "join [red|blue]" into chat to join a team. This will just change the color of your name when it appears to that team's color. You can still control both team's units even if you've joined a team.

By default, after half of the round time has passed, half of each team's units will become locked. This can be changed in the options menu.

About:

This game was created in 14 days (didn't start until there were 7 days left though) for the gamedev.js jam. The theme was "Mirror" which is incorporated in this game by the units having a "reflect" action which uses a mirror shield to reflect laser beams back at the shooters.

Credits:

Sound effects randomly generated by https://killedbyapixel.github.io/ZzFX/

Music randomly generated by https://pernyblom.github.io/abundant-music/index.html

Everything else by me (Vykri).

Comments

Log in with itch.io to leave a comment.

Hello my friend I also want to create a twitch bot but I don't know how also I wanted to know which language was used to create this amazing game. Loved it

Hey, thanks for trying out the game! The game was made in javascript. You can actually start running the game at https://vykri.com/gamedevjs/ and press f12 then click sources to see the source code. The part you're probably interested in is gamedevjs/js/main.js .

A brief overview is that the "Login to Twitch" button leads to https://id.twitch.tv/oauth2/authorize (which includes the clientId and permissions you want. I only need to read chat for this game, but if you're making a bot, you'll also probably want to include sending messages as well). Then, when they get redirected back to my site from logging in, the url parameters include the access_token which can be used to connect to the irc websocket wss://irc-ws.chat.twitch.tv:443 which will call the onmessage function whenever someone sends a message in chat.

Good luck with your twitch bot!

Thanks dude I also used JavaScript for my bot but I used some npm package called TMI.js As it my first JavaScript project I encountered alot of bugs and issues but managed to solve it. If you're interested to see my bot live in action then come to my stream on Monday 2:30 pm IST. https://twitch.tv/buriuddin0