A demon changes big watermelon

Article origin: Https://mp.weixin.qq.com/s/Mm-0xBWqmVUtvVDuoRU68w

Everybody is good, I am silent Wang Er.

Saturday, always cannot help wanting to put fly oneself. Try then played little game of big watermelon complex a little while, the result is stupefied is to stop no less than coming, above having a place.

A demon changes big watermelon

This is small game has a characteristic very much, there is Loading only when interfacial first time is opened, do not have advertisement actually, conscience. Spoken parts in an opera, this little game is Russia diamonds, 2048, the combinative put oneself in another's position of the person that the fruit is borne, fall through controlling fruity, two identical fruit collision go to when become bigger fruit with respect to assemble, at the same time spurt is given out splash the effect that shoot.

When synthesizing big watermelon for the first time, interfacial effect shines simply blind my double eye. Say a honest word nevertheless, the likelihood has show not quite perfect still, I died the first times with respect to card, the likelihood notchs too tall!

There is a friend 6 days ago bringing profit this little game, when seeing for the first time, I think, this defeats game what to have amused, do not synthesize a big watermelon namely, distain to be considered to this.

Till yesterday I see piscine skin young man shared " demon changes big watermelon " article, cannot help also thinking him demon changes, eat melon masses to play synthetic big watermelon after all, programmer eating melon should play a source of course, this ability is correct pose.

A demon changes big watermelon

Whole code catalog is not complex, be based on development of Cocos2d game engine.

Index.html, the homepage face Project.js of game, core code, game logic is here face Settings.js, configure file Res catalog, deposit picture and frequency to wait for resource

I feel direct to doubleclick Index.html to be able to move in this locality, as a result card was in on the Loading of 99% .

A demon changes big watermelon

The reason is very simple also, the visit agreement that doubleclicks webpage file is File, is not HTTP, bring about a few resource cannot to load. The solution is this locality builds server of a Web, how be built?

The first pace, install Node.js, can install a bag through the method download below.

Https://nodejs.cn/download/

After installation is finished, examine through Npm -v whether to install a success. The module management that Npm is Node.js implement, function and its are powerful.

The 2nd pace, install Vue CLI, one is based on Vue.js to have the whole system of rapid development, when offerring to move, depend on. Documentation sees way:

Https://cli.vuejs.org/zh/guide/

Vue is passed after installation is finished- - Version is examined whether to install a success.

The 3rd pace, installation Serve serves, can undertake installing through command of Npm I Serve -g, if Npm installs slower word, can be installed through Cnpm. Cnpm is the mirror that cleans out a Npm that treasure offers, the rate that home visits is rapidder.

If appear Error: EACCES: Permission Denied expresses to do not have attributive, need adds Sudo in front of the command, I am in " Shell, the ox forces " there is an explanation in this content.

After installation is finished, examine through Serve -v whether to install a success.

The 4th pace, enter the source bag that synthesizes big watermelon to fall, executive Serve starts service of this locality Web.

A demon changes big watermelon

The 5th pace, this locality is keyed in in browser address column or the address that the network can visit can start Web server. Took the chance to play, comfortable.

A demon changes big watermelon

About the more parameter that demon changes, can consult the article of piscine skin young man:

Https://juejin.cn/post/6923047027475644430

If everybody wants online if playing big watermelon and source, can reply in illicit letter " big watermelon " get

未经允许不得转载:News » A demon changes big watermelon