Skip to content

Simple game where a ship shoots at players. The player data is gathered in real-time from TikTok live streams using the TikTok-Live-Connector.

Notifications You must be signed in to change notification settings

jontstaz/Tiktok-Live-Asteroids

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Project Banner

Tiktok Live Game

I was inspired to start this project after watching a fascinating game on YouTube, developed by "Franks laboratory." The concept intrigued me, and I decided to take the idea one step further. By combining it with the TikTok-Live-Connector, I aimed to create a unique gaming experience where a ship shoots at players. In this game, people in the TikTok chat can interact with the game in real-time, influencing the gameplay and making it more engaging and dynamic.

Please note that the game is still a work in progress and requires additional development to reach its full potential.

In the future, I may fix some issues and add more features to enhance the gameplay experience.

A special thanks to "Franks laboratory" for his inspiring work.

Installation

Install the project dependencies using npm:

npm install

Running the Project

node server.js

Open http://localhost:3000 in your browser to view the project.

Reloading the page will not close the live connection!!

app.js
// remove this when u done testing
function runTest(){
  const img = './img/asteroid.png'
  const playerData = [
    { name: 'Player 1',img, health: 1,size:40 },
    { name: 'Player 2',img, health: 1,size:40 },
    { name: 'Player 2',img, health: 1,size:40 },
    { name: 'Player 2',img, health: 2,size:40 },
    { name: 'Player 5',img, health: 2000,size:50 },
  ];
  for (let i = 0; i < playerData.length; i++) {
    const data = playerData[i];
    let player = new Players(data.name, data.img, data.health, data.size);
    players.push(player)
  }
} 

runTest()

About

Simple game where a ship shoots at players. The player data is gathered in real-time from TikTok live streams using the TikTok-Live-Connector.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.7%
  • HTML 2.5%
  • CSS 0.8%