Inspiration
I've come across multiple integrations where viewers on Twitch could catch Pokémon, but they all were limited to just chat commands an there was no integration with the stream itself.
What it does
Pokémon and Friends is an interactive game for your chat. Every 7.5 minutes there’s a 1/3 chance a Pokémon will spawn. Your viewers will have the possibility to capture the Pokémon using a Channel Point reward. The reward only appears when there is a Pokémon to catch.
As I've made the game free to download, Andilippi made a video explaining the game and installation process.
How I built it
The game is built in Lioranboard an advanced software based stream deck in which you can script advanced buttons. The Pokemon and Friends is contained in it's own deck and multiple buttons work in conjunction.
To make the animations work inside of OBS itself I'm making use of the Move Transition plugin by Exeldro.
The game runs on a timer that triggers a button every 7.5 minutes, this button has a 1/3 chance to trigger the main game button and thus spawns a Pokémon. When a Pokémon is about to be spawned a random number is generated between 1-151, with this number the corresponding information is retrieved from the PokeAPI. The Catch Pokemon channel point reward is made active and viewers can try and catch the on screen Pokémon.
When a ball is thrown, the redeem will go into cool-down so nobody else can try and catch it and the catch animation is played. Based on the original game's catch rate it is determined if the catch was successful or not. If so the catch is written to a file otherwise the Pokemon escapes the pokeball.
Challenges I ran into
At first I disables the reward in Lioranboard as soon as someone threw a Pokeball, but I did not think of the small window of time this would leave open for people to throw another ball as a round trip to the twitch api needs to be made. So to combat this I opted to let twitch handle the cool-down, to keep this window to a minimum.
Accomplishments that I'm proud of
I've made the game publicly available on StreamUP.tips, and the game is already downloaded over 500 times! And I've seen multiple people that have customised the game to their liking, without it majorly breaking, so the base code is pretty robust.
What I learned
I've learned how to set up complex decks in lioranboard, and how I can create an installer within it so that the sources and scenes in OBS are automatically created for the people who install it.
What's next for Pokémon and Friends
I'm planning on releasing expansions for the game, such as a battle or trade deck.
Built With
- lioranboard
- pokeapi
- twitch




Log in or sign up for Devpost to join the conversation.