Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

detect incomming bullet from socket

// on new bullet from server on event bullet
        this.socket.on("bullet", (bullet: IBulletData) => {
            // add bullet to enemy bullets group    
            this.enemyBullets.fireBullet(this, bullet)
        })
 
PREVIOUS NEXT
Tagged: #detect #incomming #bullet #socket
ADD COMMENT
Topic
Name
3+9 =