Why isn't this working?

Question:
Why isn’t the game working?


Repl link:
https://replit.com/@ChaosSymmetry/BlockyBird?v=1

code snippet

Error? Problem? More information would be helpful. Also is this even your game?

On the client-side, the error io is not defined pops up, I’m guessing you’re using Socket.IO, in that case, you need to add the client-side library to the HTML (I couldn’t find it when I looked). You can use the CDN <script src="https://cdn.socket.io/4.5.4/socket.io.min.js"></script>.

1 Like

I mean, you can’t play the game in singleplayer.

THANK YOU! YOUR ONE OF THE G.O.A.T.S of javascript. one problem was that I was using a school chromebook :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.