Commit f2edbe76 authored by wildfirecode13's avatar wildfirecode13

1

parent 06bc45f7
...@@ -24,8 +24,8 @@ class TuiaAutoUpload { ...@@ -24,8 +24,8 @@ class TuiaAutoUpload {
var _this = this; var _this = this;
this.client = new OSS({ this.client = new OSS({
region: 'oss-cn-hangzhou', region: 'oss-cn-hangzhou',
accessKeyId: 'LTAIqO2wblIxQvwc', accessKeyId: 'LTAI4Fw25WcfcGv7FvcHoiHK',
accessKeySecret: '4brsaSRbRpjxw3oDIxJi6bNMcndIR6', accessKeySecret: 'NZk1NtT9J5HFaAolNbtQdzTzLLvLYm',
bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba' bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba'
}); });
this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), { this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), {
......
...@@ -25,7 +25,7 @@ import { degToRad, radToDeg } from "./physics/Const"; ...@@ -25,7 +25,7 @@ import { degToRad, radToDeg } from "./physics/Const";
import { RegTriangle } from "./physics/RegTriangle"; import { RegTriangle } from "./physics/RegTriangle";
import Pool from "./Pool"; import Pool from "./Pool";
import { getBounce, getLadderGap, getLadderHPosition, getLadderPosition, isSpecialBody, isSpecialCircle } from "./utils"; import { getBounce, getLadderGap, getLadderHPosition, getLadderPosition, isSpecialBody, isSpecialCircle } from "./utils";
var _ANGLE=45;
export default class PlayScene extends Scene { export default class PlayScene extends Scene {
initEvents() { initEvents() {
this.stage.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this); this.stage.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this);
...@@ -167,10 +167,10 @@ export default class PlayScene extends Scene { ...@@ -167,10 +167,10 @@ export default class PlayScene extends Scene {
const detaY = e.localY - 0; const detaY = e.localY - 0;
if (detaY != 0) { if (detaY != 0) {
let angle = Math.atan(detaX / detaY); let angle = Math.atan(detaX / detaY);
if (angle > Math.PI / 180 * 75) if (angle > Math.PI / 180 * _ANGLE)
angle = Math.PI / 180 * 75; angle = Math.PI / 180 * _ANGLE;
if (angle < -Math.PI / 180 * 75) if (angle < -Math.PI / 180 * _ANGLE)
angle = -Math.PI / 180 * 75; angle = -Math.PI / 180 * _ANGLE;
this.line.rotation = this.shooter.rotation = -angle * radToDeg; this.line.rotation = this.shooter.rotation = -angle * radToDeg;
this.directionAngle = angle; this.directionAngle = angle;
this.updateLine(); this.updateLine();
...@@ -201,10 +201,10 @@ export default class PlayScene extends Scene { ...@@ -201,10 +201,10 @@ export default class PlayScene extends Scene {
if (detaY != 0) { if (detaY != 0) {
let angle = Math.atan(detaX / detaY); let angle = Math.atan(detaX / detaY);
if (angle > Math.PI / 180 * 75) if (angle > Math.PI / 180 * _ANGLE)
angle = Math.PI / 180 * 75; angle = Math.PI / 180 * _ANGLE;
if (angle < -Math.PI / 180 * 75) if (angle < -Math.PI / 180 * _ANGLE)
angle = -Math.PI / 180 * 75; angle = -Math.PI / 180 * _ANGLE;
this.line.rotation = this.shooter.rotation = -angle * radToDeg; this.line.rotation = this.shooter.rotation = -angle * radToDeg;
this.directionAngle = angle; this.directionAngle = angle;
this.updateLine(); this.updateLine();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment