Kamal13 Posted July 1, 2018 Share Posted July 1, 2018 i am not asking about the code , i want to know about the backend .especially how the time is implemented .For example the crop gets ready in 2 hrs even when the game window isnt open .How is this implemented in server ? also which backend is best for html5 games? Thanks in Advance Quote Link to comment Share on other sites More sharing options...
mattstyles Posted July 3, 2018 Share Posted July 3, 2018 Imagine it like a conversation: Client: Yo, server, whats the time? Server: Yo, fam, its 13:00 Client: Cool, let me just render this seed, and I'll leave a note saying when it was planted. Client: I'm outta here, see you later. Client: Yo, server, I'm back, whats the time? Server: Yo, its 15:00 Client: Cool, lets see, what did that note say? Oh yeah, right, ok, it was planted 2 hours ago, I'll render it as a plant now. And that is, pretty much, it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.