


Firebase saved us! And now I hope this tutorial will help anybody else that may want to use it with a WebGL build like us! Enough chit-chat, let’s get to the point! Installing Firebase and Hosting the WebGL Build

So, our machine was super slow and it became impossible to host the game there. We were previously hosting our own server in our university’s machine… But here in Brazil we don’t get much funding nowadays, specially when researching on games. So, to get as many people as possible to play the game, it’s very important for me to host it as a web game (people tend to get lazy when it comes to downloading simple games, specially if they have to answer some questionnaires later). I’m using this specific WebGL setup to conduct anonymous experiments with players for my PhD using Artificial Intelligence to generate procedural contents for my game prototype. However, we will also learn how to collect this data to Firestore even for desktop or mobile builds (as it’s much easier and the project will be ready for it anyway). We will host our WebGL build and collect some gameplay data, saving in a Firestore database. This is about setting things up for every Unity build type and testing with a simple Hosting and Firestore usage. And there are some awesome tutorials over the internet, like this one for Analytics events usage. But, Firebase’s Youtube has some nice videos about it. There are many cloud database products, the analytics side, the server… This isn’t a full guide to Firebase applications in Unity (at least not yet… Maybe in some months…). Salutations! If you are here, you’re probably interested in adding some Firebase functionalities to your Unity project, right? That was what I wanted!įirebase is HUGE and its free tier is enough for many indie and research projects. I fear, I can't provide you any help for this.īe careful though, developing/using a bot is most certainly against the terms and conditions of the game and may result in a ban if it is detected by the developers.Photo by Element5 Digital on Unsplash Introduction There is a tutorial in Python for this process here: Īnother option is finding the values in the computers memory. the players and the enemies health points). You will also need a similar process for other relevant information that is needed by the bot (e.G. With this database you will have to check every place on the screen where a card could be played (assuming cards are always placed in the same location) and check the pixels to find the played card. Depending on how many cards there are and how different each card is, you will need more or less pixels. For example you could take the color value of a few pixels on every card and map the combination to the card. Reading the data from screenshots is possible but you will need to recognise every single card.
