网页小游戏辅助,价格好商量
预算:¥1000 - ¥3000
插件开发
min1
发布于:2022-01-15
网址:https://miniroyale.io/
网页吃鸡小游戏做个外挂,自瞄,武器加倍伤害,我有一段代码,也可以帮忙完善
const onMovementUpdateAnimation = Movement.prototype.updateAnimation;
const HEAD_OFFSET = 0.4;
const RENDER_LINE_STEP = 0.001;
const RENDER_LINE_WIDTH = 0.03;
const RED_COLOR = new pc.Color(1, 0, 0);
function renderLine(application, from, to, color) {
for (let i = 0; i < RENDER_LINE_WIDTH; i += RENDER_LINE_STEP) {
const fromOffset = new pc.Vec3(from.x + i, from.y, from.z + i);
const toOffset = new pc.Vec3(to.x + i, (to.y - HEAD_OFFSET), to.z + i);
application.renderLine(fromOffset, toOffset, color);
}
}
Movement.prototype.updateAnimation = function () {
onMovementUpdateAnimation.apply(this, arguments);
const position = this.entity.getPosition().clone();
const enemies = this.playerManager.script.playerManager.players;
for (const enemy of enemies) {
renderLine(this.app, enemy.localPosition, position, RED_COLOR);
}
}
const onEnemyDamage = Enemy.prototype.damage;
const DAMAGE_X = 5;
Enemy.prototype.damage = function () {
for (let i = 0; i <= DAMAGE_X; i++) {
onEnemyDamage.apply(this, arguments);
}
};
雇主联系方式 |
微信 |
********(投标后可见)
|
QQ |
********(投标后可见)
|
投标并联系雇主
投标的服务商(3)
免责声明:BCCN仅提供信息发布服务,暂未提供担保交易服务,请交易时在线下自行签订合同,以保障双方权益。
在线客服
微信扫码咨询