Creating EOS MMORPG part 2, cutting tree, 制造MMORPG第二步,砍树

in #cn6 years ago (edited)


Hello Steemit friends, so this is Creating EOS MMORPG part 2, where I attempt to let the player cutting down the tree, who would have thought cutting down tree would be so hard, basically the algorithm work like below

  1. the game will load the tree coordinate from the server, example tree location (3,5)
  2. the game will instantiate the tree inside the game, and if player click the tree, it will send to server that player clicking location (3,5)
  3. server will check if location(3,5) have tree, then update the player table saying player is now attacking the tree
  4. the game will load the player information from server every seconds and be notified that player is now attacking the tree and therefore update the player animation to attack the tree
  5. the game will load the player location to (3,5) but since (3,5) already been occupied by the tree, the game will have to put the player +1 or -1 just next to the tree
I intent to add life to the tree so player can chop the tree for 1 hour until the player have no energy left and the player should just sleep under the tree

thanks for reading


大家好,这是制造MMORPG第二步,这里我想让玩家砍树,步骤如下
1。游戏会先从服务器那里取的树的位置比如(3,5)
2。然后游戏会创造出树,如果玩家去按树,就会把讯息传送到服务器那里说我按了位置(3,5)
3。服务器会检查(3,5)是不是有树,然后更新玩家的table写玩家现在在砍树
4。游戏每秒会和服务器拿资料,知道玩家现在在砍树后会让玩家做出砍树的动作
5。游戏也会更新玩家的位置因为玩家不能站在(3,5)而是(3,5)的上下左右

其实呢我还想给玩家HP,那么可以砍个1小时,砍到没命后就自动睡觉

谢谢阅读 <br /><center><hr/><em>Posted from my blog with <a href='https://wordpress.org/plugins/steempress/'>SteemPress</a> : http://fundurian.vornix.blog/2018/09/22/creating-eos-mmorpg-part-2-cutting-tree-%e5%88%b6%e9%80%a0mmorpg%e7%ac%ac%e4%ba%8c%e6%ad%a5%ef%bc%8c%e7%a0%8d%e6%a0%91/ </em><hr/></center>

Sort:  

EOS小游戏?

我想让1000人同时一起玩,也可以看到别人的那种

帅哥/美女!请支持中文区的见证人, @abit @bobdos @ety001 @justyy @skenan (首字母顺序),全投,一个都不要漏。如果不想再收到我的留言,请回复“取消”。

前辈你这是越来越厉害了!

You’ve been upvoted by TeamMalaysia community. Do checkout other posts made by other TeamMalaysia authors at http://steemit.com/created/teammalaysia

To support the growth of TeamMalaysia Follow our upvotes by using steemauto.com and follow trail of @myach

Vote TeamMalaysia witness bitrocker2020 using this link vote for witness

Hi @fundurian!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 3.821 which ranks you at #4388 across all Steem accounts.
Your rank has improved 32 places in the last three days (old rank 4420).

In our last Algorithmic Curation Round, consisting of 426 contributions, your post is ranked at #76.

Evaluation of your UA score:
  • You're on the right track, try to gather more followers.
  • The readers appreciate your great work!
  • You have already shown user engagement, try to improve it further.

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.26
TRX 0.12
JST 0.031
BTC 61258.08
ETH 2873.80
USDT 1.00
SBD 3.56