Is it possible to setup user made levels (like in Mario Maker)? #61
-
Hi, have a Level editor for my game and would like to allow users to upload their levels online for others to see and download them. It looks like I can use Firestore to do this? So do I have this right: Not sure of: Thank you for any help! and thank you for your awesome work on this! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @JustYourAverageJosh First thing first, we will always make reference to the wiki so everything I'm mentioning is not something completely new and you can always check it out by yourself.
While the first method is much easier to implement, since you only have to get all documents in a collection in godot, and eventually just filter those ones with the correct ids, the second one is the most secure one, since unauthenticated users and those users that don't follow Firestore rules will never be able to delete any document they are not allowed to. I hope I helped you a little bit with your project. While I'm not able to help you out with futher suggestions in project logics (since it would require time), we can always help you to understand our addon if anything is missing. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for the info! I will go through and try to get this setup! |
Beta Was this translation helpful? Give feedback.
Hi @JustYourAverageJosh
Of course you can achieve this with our addon. I'll give you some tips to guide you for the process, but it will need to implement some custom logic in your project to manage levels, ids and users.
First thing first, we will always make reference to the wiki so everything I'm mentioning is not something completely new and you can always check it out by yourself.
When you sign-up a new user, Firebase will give it a randomized UUID to identify it, other than simple email. You can retrieve this both in the callback of
signup_successful
andlogin_successful
signals, which will return a dictionary …