Open austincap opened 8 years ago
I don't have time to help you with these right now, let me get back to you.
Hi guys! I can help to design this little project!
Hey WarenGonzaga, what part of the code should I be looking at if I want to attach metadata to each block that can be input by the user?
You can define additional private variable to each block in blocks.js. Because they are private items you will need to have functions to export and import the text modifications. But this would mean each block of that type would have the same text. A better solution would be to use the XYZ coordinates of each block and assign text to that using chat as command: /msg xxyyzz this is a block message. Then save that to a new location (txt file, sql, whatever you like.) Then write a function to handle hover after x amount of seconds. Otherwise you might bog out the system trying to call hover while you are walking around the world. That is a simple explanation. I'm sure implementing won't be that simple.
You would modify server.js to handle serving data to all clients, player.js for hover functions, and multiplayer.html for chat commands.
I want to give users the ability to enter text that is then displayed when one hovers over a block. What part of the code would I need to change to do that?
I also want to give each block in the shared world a unique unified ID, a single non-unique emoji character ID, and an upvote variable. Would I change the player.js or the block.js?
I'm also trying to make different blocks function as different gun types. I'd mainly have to change something in block.js, right?