HTML5 Game-"Three Kingdoms Front" released

Source: Internet
Author: User

About the game introduction

This game is an alternative tower defense game. This part of the history of the Three Kingdoms as the theme, provided from the Battle of the war to the Guandu War, Guandu War to Yiling War, Yiling War to five feet of the original war and other 15 levels. In each level, you will control the battle of a three-member warlord with the enemy in order to protect your Lord, and you can summon your allies to fight alongside you.
In addition, this work also provides the character dialogue, as well as fire meter, water attack and other tricks, so that the game can play a higher degree.

Operating instructions

In the game, you only need to click on the left and right side of the screen, so that you play the role of moving around, when the enemy enters your range of attack will automatically attack. You can also summon teammates by clicking on the avatar below. Other operations will please the players to explore their own bar ~

Technology-related

As before, the HTML5 and JavaScript are still used as the development language. and used the HTML5 game engine lufylegend.js. Nw.js is used when releasing EXE execution programs. Here are the official addresses for the two libraries, along with the documentation and tutorial addresses:

Lufylegend.js Official Address: Https://lufylegend.com/lufylegend
Lufylegend.js Document Address: http://lufylegend.com/api/zh_CN/out/index.html

Nw.js Official Address: http://nwjs.io/
Nw.js Package Tutorial: http://blog.menglifang.org/2015/04/16/nw-js-package/

The basic interface in game games

The battlefield in the game

Dialogue and strategy

Game Download

Because the file is too large, I saved it to the Sina micro disk.
: Http://vdisk.weibo.com/s/ushEc4hVGHFoZ
中文版 homepage:http://wyh.wjjsoft.com/sanguo_td.html

Postscript

Originally intended to be made for a mobile phone app, I knew that because the canvas rendering efficiency itself is not high, coupled with too many interface elements and the beginning did not pay attention to optimization and other factors, finally only released to the PC end, in order to do a formal point, so use Nw.js to pack the game exe executable files. So you can see that many of the interface designs in the game are being considered on the mobile side. For example, the game's buttons are all very large, to facilitate the mobile phone players click.
This game did roughly 3 months or so, in essence, the main part of the game in the winter holiday (about the spring festival after a few days) has been completed, and then to school, so the progress is slow down. In addition, because the late function needs to expand and the interface needs to be beautified, but also lead to a lot of bugs, so progress is even slower. The last thing to do is level editing and character editing, and editing level scripts and character attacks, physical strength and other data, this workload is very large, and not as much as the expansion of functionality and beautify the interface as interesting. For convenience, I use JSON directly as a script for the game, for example, a script excerpt from a level:

{Name:lang.place.SHOU_CHUN, ID:"Shou_chun", location: {x:520Y:380}, Backgroundmusicindex:2, Background:"SHOU_CHUN_BG", Backgroundoffset: {y:- -}, Backgroundhiddenwidth: Max, characters: {ours: {Lord:"Cao_cao", Player:"Zhang_fei", Friends: ["Guan_yu","Liu_bei","Sun_shang_xiang","Sun_quan","Soldier1"]}, Enemies: {1: ["Soldier1","Soldier1","Soldier1","Soldier1"],2: ["Soldier1","Soldier1","Soldier1","Soldier2","Soldier2"],3: ["Han_jin","Soldier1","Soldier1","Soldier2","Soldier2"], ...}, Rouse: ["Ji_ling"]}, Events: {round: [{value:1, instructions: [{name:"Addtalk", Param:"1"}]}, ...], ...}, and talks: {1: [{speaker:"Cao_cao", Side:"Ours", Content:lang.talk.SHOU_CHUN_1_0}, {speaker:"Liu_bei", Side:"Ours", content:lang.talk.SHOU_CHUN_1_1}, {speaker:"Zhang_fei", Side:"Ours", content:lang.talk.SHOU_CHUN_1_2}], ...}, u Nlocklevellist: ["Xia_pi"], Initialmoney: -,        ......    }

This is just an excerpt, and the entire script may be about a few times longer than this. In addition, there are no tools to create level editing, so it is not comfortable to write it purely by hand. But fortunately, did a character editor, so in the character editor still save a lot of effort.
Speaking here, I can not help but think of "clothing is not good, but make the wish is not violated" this verse, perhaps the game itself may be called "clothes do not stick", but my original intention or did not finish it-and did not as a mobile phone game released, but became a local game-so said also "may be violated." Have to spit again HTML5 efficiency ah, I am more than I solve a series of problems more slowly ...
However, it is gratifying that the game has finally been released ~

Support

If you find a bug in the game or want to participate in the game development and testing, you contact me by the following ways.

Email: [Email protected]
Sina Weibo: @Yorhom

Finally, you are welcome to play my game ~

Reprint Please specify source: Yorhom's Game box
Http://blog.csdn.net/yorhomwang

HTML5 Game-"Three Kingdoms Front" released

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.