TikTok Live Zombie Spawner

Ethan Gunderson,C#

NOTE:

This project may not work. There is a bug (opens in a new tab) that claims your IP or country is blocked by TikTok, even though it is not. One user mentions a fix in the previous link, but it didn't work for me. I don't have any plans to find a workaround.

Details

This project started after I noticed that many TikTok Live creators were using gift data to spawn things in various videogames. One game I didn't see was Plants vs Zombies. I figured it would be a fun project, and I found two libraries that made development easy.

The first was TikTokLiveSharp (opens in a new tab), which receives gift/like/comment data from a TikTok Live. The second was PVZTools (opens in a new tab), which contains functions for spawning a given zombie. To integrate these, I started by piping data from the TikTokLiveSharpTestApplication to PVZTools. Within PVZTools, the piped data is used to spawn zombies depending on the cost of the gift.

Currently, there are some improvements that can be made. When you start the project, it opens 3 seperate windows, which can be difficult to manage while livestreaming. This could be improved by making a single application that shows the windows as a split-screen.

The demo linked below shows the functionality of the project. The window on the bottom right is to let users know which gifts spawn which zombies. The window in the bottom left shows the interaction feed. Most of the interaction feed is people joining the stream, but there are occassional gifts (colored in blue text) that spawn unique zombies.

Demo (opens in a new tab) (Opens in a new tab)

© Ethan Gunderson.