Online Evolution Simulator Creature Sharing

Hello everyone, :slight_smile:

I hope this is the correct place to post this question, sorry if it isn’t!

Currently, I’m still learning C# and am currently working on a WebGL evolution simulator where you can design your own creatures using different “cells” (like eyes, mouths, thrusters…).

I was thinking of adding an online feature where users could upload their evolved creatures to a database, where other people can view and download them (and maybe rate them too). I was wondering if the best way to go about this is to setup a mysql database and use a php file to “pass” the info to Unity (sorry if that sentence is not technically correct).

I’m really new to web programming so I’m not sure if my approach is okay; as each creature takes up a somewhat large amount of data - around 81 characters and 100 to 1000+ floats. I’d probably limit up to one creature per user.

Another question (sorry!) is: When a user first opens the game should I make them download the entire database of creatures and then store it in the background or should I have them download each individual creature that they select to download. Initially I was thinking of doing the second option but when I looked on www.000webhost.com, they limit the number of queries you send, not the amount of data you download; so I’m not really sure!

If anyone could give me advice I’d be grateful, sorry for such a long question;

Thanks lots, Jude.

best way would be to have the player send an event to a server “get_random_player_data” and the server search in the database and send back the data instead of having each player directly interacting with database and doing sensible logic on client. this would avoid them to replace call directly to cheat.

you can use service like gamespark, playfab or open source solutions like nakama

Thanks, I’ll look into that :slight_smile: