Jump to content

How do i create a farmville like game ?


Kamal13
 Share

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

Link to comment
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.

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...