归档: 2022/11

Creator动态加载拖尾

Creator动态加载拖尾12345678910cc.resources.load(`xxx`, cc.SpriteFrame, (err, sprite: cc.SpriteFrame) => { if(err) return; let MotionStreak = this.motionStrake.getComponent(cc.MotionStreak) Motion

TensorFlow CentOS 安装

TensorFlow CentOS 安装Python 3.7-3.9使用yum从第三方仓库安装Python3.8 12345678910yum install -y centos-release-scl # 仓库注册yum install -y rh-python38 which # 安装python3.8# 创建软连接ln -s /opt/rh/rh-python38/root/usr/bin/

Creator Tween 动画淡入淡出失效

Creator Tween 动画淡入淡出失效当操作的节点包含 cc.Button 时,tween 操作 opacity 会失效。 解决方案1234cc.Tween.stopAllByTarget(item);if(item.getComponent(cc.Button)) item.getComponent(cc.Button).enabled = false;item.opacity = 0;c

Creator 构造函数传参

Creator 构造函数传参123456789101112131415const {ccclass, property} = cc._decorator;@ccclassexport default class Test extends cc.Component { private a:number; private b:number; constr

Creator 计算点到直线的距离

Creator 计算点到直线的距离1cc.Intersection.pointLineDistance(point, start, end, isSegment) 参数列表 point Vec2 The point start Vec2 The start point of line end Vec2 The end point of line isSegment boolean whether

Creator动态加载粒子

Creator动态加载粒子12345678910cc.resources.load("xxxxx", cc.ParticleAsset, (err, asset) => { if (err || !asset) { cc.log(err) return; } let ps:cc.ParticleSyste

阿里云服务器退款操作流程

阿里云服务器退款操作流程退订类型五天无理由退订:在新购5天内,申请无理由退订。 非五天无理由退订:已购买使用5天以上时,申请退订,可退款资源未使用部分的相应费用。 退订未生效续费订单:已续费未到期的实例,即续费订单还未生效的情况下,申请退订该续费订单。 注意:仅退还实付金额,已使用的代金券不退还。 操作步骤 进入费用中心 >> 订单管理 >> 退订管理; 选择”非天无理由

策划对战模拟·基础

策划对战模拟·基础对战模拟器:通过Excel的功能实现人物的属性计算、装备穿戴、技能效果。以及更进一步的实现人物之间的对战。 最终目的就是帮助策划部门缩短数值平衡的用时。 左侧是一个人物的属性,右侧是另一个人物的属性。中间是按照0.5秒间隔推算的对战过程。 按下F9进行重算,可以看到这次李四这次获得了胜利。 模拟器的优势就在于:在程序编写完游戏战斗功能之前,数值策划就可以向团队呈现游戏的战斗过程,