JaraLowell / OgarServ

Jara's version of Agar.io's private server prodject in Javascript modified from OgarProject using JXCore.
http://ogar.mivabe.nl
Other
28 stars 13 forks source link

how add skin food? #128

Closed mafiakb closed 8 years ago

mafiakb commented 8 years ago

// function Food() { Cell.apply(this, Array.prototype.slice.call(arguments)); this.cellType = 1; this.name = ''; this.skin = '%gas'; this.size = Math.ceil(Math.sqrt(100 * this.mass)); this.squareSize = (100 * this.mass) >> 0; // not being decayed -> calculate one time this.shouldSendUpdate = false; if (this.gameServer.config.foodMassGrow && Math.floor(Math.random() * 201) > this.gameServer.config.foodMassGrowPossiblity && this.gameServer.run) { this.grow(); } //}

no working :(

JaraLowell commented 8 years ago

Food skin i ignored as that is a lot of calls made,. and migh cause lag to the server (if you have 3k food that is 3k name/skin check. If you want to enable that you need edit the UpdateNodes file. But would higly advice against it