Sign in to follow this  
Kamal13

How do i create a farmville like game ?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.