八爪鱼拉拉手

news2025/3/3 4:35:45

欢迎来到程序小院

八爪鱼拉拉手

玩法:点击鼠标左键拖动移动八爪鱼,当他的手很忙的时候他会很高兴,
不同关卡不同的八爪鱼的位置摆放,快去闯关吧^^。

开始游戏icon-default.png?t=N7T8https://www.ormcc.com/play/gameStart/248

html

<div id="gameContainer"></div>
<div id="orientation"></div>

css

#orientation {
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../assets/graphics/rotate-phone.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    z-index: 999;
    display: none;
}

@font-face {
    font-family: 'GrilledCheeseBTNToasted';
    font-style: normal;
    font-weight: normal;
    src: local('GrilledCheeseBTNToasted'), 
    url('../assets/fonts/GrilledCheeseBTNToasted.woff') format('woff');
}

js

function onLoad() {
    new game.Main
}
var game; !
function(t) {
    var e = function() {
        function t() {}
        return t.GAME_WIDTH = 640,
        t.GAME_HEIGHT = 832,
        t.HALF_GAME_WIDTH = .5 * t.GAME_WIDTH,
        t.HALF_GAME_HEIGHT = .5 * t.GAME_HEIGHT,
        t.LEVELS_NUM = 60,
        t
    } ();
    t.Config = e
} (game || (game = {}));
var __extends = this.__extends ||
function(t, e) {
    function i() {
        this.constructor = t
    }
    for (var a in e) e.hasOwnProperty(a) && (t[a] = e[a]);
    i.prototype = e.prototype,
    t.prototype = new i
},
game; !
function(t) {
    var e = function(e) {
        function i() {
            e.apply(this, arguments)
        }
        return __extends(i, e),
        i.prototype.init = function() {
            this.game.device.android && !this.game.device.chrome && (
            this.game.canvas.parentElement.style.overflow = "visible");
            var t = {
                font: "10px GrilledCheeseBTNToasted"
            },
            e = this.add.text(0, 0, "0", t);
            e.destroy()
        },
        i.prototype.preload = function() {
            this.load.image("rotate", "assets/graphics/rotate-phone.png"),
            this.load.image("LoadingBar_Outer", "assets/graphics/LoadingBar_Outer.png"),
            this.load.image("LoadingBar_Inner", "assets/graphics/LoadingBar_Inner.png")
        },
        i.prototype.create = function() {
            var e = this.game.scale;
            e.scaleMode = Phaser.ScaleManager.SHOW_ALL,
            e.minWidth = .25 * t.Config.GAME_WIDTH,
            e.minHeight = .25 * t.Config.GAME_HEIGHT,
            e.aspectRatio = t.Config.GAME_WIDTH / t.Config.GAME_HEIGHT,
            e.pageAlignHorizontally = !0,
            e.pageAlignVertically = !0,
            this.game.device.desktop || e.forceOrientation(!1, !0),
            e.enterIncorrectOrientation.add(this.onEnterIncorrectOrientation, this),
            e.leaveIncorrectOrientation.add(this.onLeaveIncorrectOrientation, this),
            e.setScreenSize(!0),
            this.input.maxPointers = 1,
            this.stage.disableVisibilityChange = !0,
            this.stage.backgroundColor = 8179412,
            this.game.state.start("Preloader", !0, !1)
        },
        i.prototype.onEnterIncorrectOrientation = function() {
            document.getElementById("orientation").style.display = "block",
            document.body.style.marginBottom = "0px"
        },
        i.prototype.onLeaveIncorrectOrientation = function() {
            document.getElementById("orientation").style.display = "none",
            document.body.style.marginBottom = "100px",
            this.game.device.android && !this.game.device.chrome && 
            this.game.scale.setScreenSize(!0)
        },
        i
    } (Phaser.State);
    t.Boot = e
} (game || (game = {}));
var game; !
function(t) {
    var e = function(t) {
        function e() {
            t.apply(this, arguments)
        }
        return __extends(e, t),
        e.prototype.create = function() {},
        e.prototype.addSplash = function() {},
        e.prototype.gotoMainMenu = function() {
            this.game.state.start("MainMenu", !0, !1, !0)
        },
        e
    } (Phaser.State);
    t.SplashScreen = e
} (game || (game = {}));
var game; !
function(t) {
    var e = function(e) {
        function i(i, a) {
            e.call(this, i, a),
            this.overlayDuration = 300;
            var n = i.add.bitmapData(t.Config.GAME_WIDTH, t.Config.GAME_HEIGHT, 
            "overlay", !0);
            n.context.fillStyle = "rgba(0, 0, 0, 1)",
            n.context.fillRect(0, 0, t.Config.GAME_WIDTH, t.Config.GAME_HEIGHT),
            this.overlay = new Phaser.Image(i, 0, 0, n),
            this.overlay.visible = !1,
            this.game.stage.addChild(this.overlay)
        }
        return __extends(i, e),
        i.prototype.changeState = function(t, e) {
            this.showOverlay(t, e)
        },
        i.prototype.showOverlay = function(t, e) {
            var i = this;
            this.game.input.disabled = !0,
            this.overlayTween && this.overlayTween.isRunning && this.overlayTween.stop(),
            this.overlay.visible = !0,
            this.overlay.alpha = 0,
            this.overlayTween = this.game.add.tween(this.overlay).to({
                alpha: 1
            },
            this.overlayDuration, Phaser.Easing.Cubic.Out, !0),
            this.overlayTween.onComplete.addOnce(function() {
                i.doChangeState(t, e)
            },
            this)
        },
        i.prototype.doChangeState = function(t, e) {
            var i = this;
            this.game.state.start(t, !0, !1, e),
            setTimeout(function() {
                i.hideOverlay()
            },
            100),
            setTimeout(function() {
                i.overlay.visible && (i.overlay.visible = !1)
            },
            100 + this.overlayDuration)
        },
        i.prototype.hideOverlay = function() {
            this.game.input.disabled = !1,
            this.overlayTween && this.overlayTween.isRunning && this.overlayTween.stop(),
            this.overlayTween = this.game.add.tween(this.overlay).to({
                alpha: 0
            },
            this.overlayDuration, Phaser.Easing.Cubic.Out, !0)
        },
        i
    } (Phaser.Plugin);
    t.StateTransition = e
} (game || (game = {}));
var game; !
function(t) {
    var e = function(e) {
        function i() {
            e.apply(this, arguments)
        }
        return __extends(i, e),
        i.prototype.init = function() {
            this.addLoadingText()
        },
        i.prototype.addLoadingText = function() {
            var e = {
                font: "45px GrilledCheeseBTNToasted",
                fill: "#FFFFFF",
                align: "center"
            },
            i = this.game.add.text(0, 0, "Loading...", e);
            i.anchor.set(.5, .5),
            i.position.set(t.Config.HALF_GAME_WIDTH, t.Config.HALF_GAME_HEIGHT + 100),
            i.setShadow(2, 2, "#249BC8")
        },
        i.prototype.preload = function() {
            this.addPreloadBar(),
            this.loadAssets()
        },
        i.prototype.addPreloadBar = function() {
            if (t.Main.development === !1) {
                var e = this.game.add.sprite(0, 0, "LoadingBar_Inner");
                e.x = t.Config.HALF_GAME_WIDTH - .5 * e.width - .5,
                e.y = t.Config.HALF_GAME_HEIGHT - .5 * e.height - 1.5;
                var i = this.add.image(0, 0, "LoadingBar_Outer");
                i.anchor.set(.5, .5),
                i.x = t.Config.HALF_GAME_WIDTH - .5,
                i.y = t.Config.HALF_GAME_HEIGHT,
                this.load.setPreloadSprite(e)
            }
        },
        i.prototype.loadAssets = function() {
            this.load.audio("main_loop", ["assets/audio/MainLoop.ogg", 
            "assets/audio/MainLoop.m4a"], !0),
            this.game.device.webAudio && (this.load.audio("tap", [
            "assets/audio/TapSound.wav"], !0), this.load.audio("onLevelComplete", [
            "assets/audio/LevelCompleteSound.wav"], !0), this.load.audio("on_down", [
            "assets/audio/OnDown.wav"], !0), this.load.audio("on_up", [
            "assets/audio/OnUp.wav"], !0), this.load.audio("star", [
            "assets/audio/Star.wav"], !0), this.load.audio("star_taken", [
            "assets/audio/StarTaken.wav"], !0)),
            // this.load.image("splash_screen", "assets/graphics/Splash_Image_play68.png"),
            this.load.atlasJSONHash("gui", "assets/graphics/gui.png", 
            "assets/graphics/gui.json"),
            this.load.atlasJSONHash("level_graphics", 
            "assets/graphics/level_graphics.png", "assets/graphics/level_graphics.json"),
            this.load.atlasJSONHash("manta_ray", "assets/graphics/manta_ray.png",
            "assets/graphics/manta_ray.json"),
            this.load.atlasJSONHash("level_complete", "assets/graphics/
            level_complete.png", "assets/graphics/level_complete.json"),
            this.load.atlasJSONHash("tutor_hand", "assets/graphics/tutorial_hand.png", 
            "assets/graphics/tutorial_hand.json"),
            this.load.atlasJSONHash("tutorial", "assets/graphics/tutorial.png", 
            "assets/graphics/tutorial.json"),
            this.load.atlasJSONHash("yellow_fish", "assets/graphics/yellow_fish.png",
            "assets/graphics/yellow_fish.json"),
            this.load.atlasJSONHash("pink_fish", "assets/graphics/pink_fish.png",
            "assets/graphics/pink_fish.json"),
            this.load.json("texts", "assets/texts.json"),
            t.Main.development ? this.load.json("startLevel", "assets/levels/
            StartLevel.json") : this.load.json("levelConfigs", "assets/levels/Levels.json")
        },
        i.prototype.create = function() {
            this.initLanguage(),
            this.prepareTextures(),
            this.game.plugins.add(t.StateTransition),
            this.game.cache.removeImage("LoadingBar_Outer"),
            this.game.cache.removeImage("LoadingBar_Inner"),
            t.Main.development && this.cache.getJSON("startLevel").level,
            this.game.state.start("MainMenu", !0, !1, !0)
        },
        i.prototype.initLanguage = function() {
            var e = this.game.cache.getJSON("texts");
            t.Main.texts = e[t.Main.language]
        },
        i.prototype.prepareTextures = function() {},
        i
    } (Phaser.State);
    t.Preloader = e
} (game || (game = {}));
var game; !
function(t) {
    var e = function(t) {
        function e(e, i, a, n, s) {
            var o = this;
            t.call(this, e, i, a, n, s),
            this._callback = new Phaser.Signal,
            this.anchor.set(.5, .5),
            this.inputEnabled = !0,
            this.game.device.desktop && (this.input.useHandCursor = !0),
            this.inputEnabled && (this.events.onInputDown.add(function() {
                o.game.device.webAudio && o.game.sound.play("tap"),
                o.game.add.tween(o.scale).to({
                    x: .9,
                    y: .9
                },
                200, Phaser.Easing.Cubic.Out, !0)
            }), this.events.onInputUp.add(function() {
                o.game.add.tween(o.scale).to({
                    x: 1,
                    y: 1
                },
                100, Phaser.Easing.Cubic.Out, !0).onComplete.addOnce(o._callback.dispatch, o)
            }))
        }
        return __extends(e, t),
        e.prototype.destroy = function() {
            t.prototype.destroy.call(this),
            this._callback.dispose()
        },
        Object.defineProperty(e.prototype, "callback", {
            get: function() {
                return this._callback
            },
            enumerable: !0,
            configurable: !0
        }),
        e
    } (Phaser.Image);
    t.SimpleButton = e
} (game || (game = {}));
var game; !
function(t) {
    var e = function(t) {
        function e(e, i, a, n, s) {
            t.call(this, e, i, a, "gui", n),
            this.textureKey1 = n,
            this.textureKey2 = s,
            this.activeTextureKey = this.textureKey1,
            this._state = 1,
            this.events.onInputUp.add(this.switchTextures, this, 2)
        }
        return __extends(e, t),
        e.prototype.switchTextures = function() {
            this.activeTextureKey = this.activeTextureKey === this.textureKey1 ? 
            this.textureKey2: this.textureKey1,
            this.loadTexture("gui", this.activeTextureKey),
            this._state = this.activeTextureKey === this.textureKey1 ? 1 : 2
        },
        Object.defineProperty(e.prototype, "state", {
            get: function() {
                return this._state
            },
            enumerable: !0,
            configurable: !0
        }),
        e
    } (game.SimpleButton);
    t.ToggleButton = e
} (game || (game = {}));
var game; !
function(t) {
    var e = function(e) {
        function i() {
            e.apply(this, arguments),
            this.fromPreloader = !1
        }
        return __extends(i, e),
        i.prototype.init = function(t) {
            this.fromPreloader = t
        },
        i.prototype.create = function() {
            this.initImages(),
            this.addCreatures(),
            this.initButtons(),
            this.initLogo(),
            this.initCredits(),
            this.initAnimation(),
            this.fromPreloader && (this.soundButton.input.enabled = !1, 
            this.soundButton.switchTextures(), this.game.input.onTap.addOnce(
            this.startMusic, this), this.stage.disableVisibilityChange = !1, 
            this.game.onBlur.add(this.onFocusLost, this), this.game.onFocus.add(
            this.onFocus, this))
        },
        i.prototype.onFocusLost = function() {
            this.game.tweens.pauseAll(),
            t.Main.wasMuted = this.game.sound.mute,
            this.game.sound.mute = !0
        },
        i.prototype.onFocus = function() {
            this.game.tweens.resumeAll(),
            t.Main.wasMuted === !1 && (this.game.sound.mute = !1)
        },
        i.prototype.initImages = function() {
            this.game.add.image( - 32, 0, "gui", "BG_20000"),
            this.title = this.add.image(0, 0, "gui", "GameTitle0000"),
            this.title.anchor.set(.5, .5),
            this.title.x = t.Config.HALF_GAME_WIDTH - .5,
            this.title.y = 150
        },
        i.prototype.addCreatures = function() {
            this.needlefish = this.game.add.image(t.Config.HALF_GAME_WIDTH + 15, 550,
            "gui", "Needlefish0000"),
            this.needlefish.angle = 120,
            this.octopus = this.game.add.image(t.Config.HALF_GAME_WIDTH + 190, 760, 
            "gui", "Octopus0000"),
            this.jelly = this.game.add.image(t.Config.HALF_GAME_WIDTH - 145, 740, 
            "gui", "Jelly0000"),
            [this.needlefish, this.octopus, this.jelly].forEach(function(t) {
                t.anchor.set(.5, .5)
            })
        },
        i.prototype.initButtons = function() {
            var e = this,
            i = 60;
            this.soundButton = new t.ToggleButton(this.game, t.Config.GAME_WIDTH - i, i,
            "Music_On_Button0000", "Music_Off_Button0000"),
            this.soundButton.callback.add(function() {
                e.game.sound.mute = !e.game.sound.mute
            }),
            this.game.sound.mute && this.soundButton.switchTextures(),
            this.playButton = new t.SimpleButton(this.game, t.Config.HALF_GAME_WIDTH, 
            330, "gui", "Play_Button0000"),
            this.playButton.callback.addOnce(function() {
                e.game.changeState("LevelsMenu")
            },
            this),
            this.creditsButton = new t.SimpleButton(this.game, this.playButton.x + 130, 
            this.playButton.y, "gui", "Credits_Button0000"),
            this.creditsButton.callback.add(this.toggleCredits, this),
            this.moreGamesButton = new t.SimpleButton(this.game, this.playButton.x - 130, 
            this.playButton.y, "gui", "MoreGames_Button0000"),
            this.moreGamesButton.callback.add(this.gotoDeveloperWebsite, this),
            this.buttons = [this.playButton, this.soundButton, this.moreGamesButton, 
            this.creditsButton],
            this.buttons.forEach(function(t) {
                e.world.add(t)
            })
        },
        i.prototype.gotoDeveloperWebsite = function() {
            // Play68.goHome()
        },
        i.prototype.initLogo = function() {},
        i.prototype.initCredits = function() {
            this.credits = this.game.add.image(0, 0, "gui", "CreditsBoard0000"),
            this.credits.position.set(Math.round(.5 * (t.Config.GAME_WIDTH - 
            this.credits.width)), Math.round(.5 * (t.Config.GAME_HEIGHT - 
            this.credits.height))),
            this.credits.visible = !1
        },
        i.prototype.toggleCredits = function() {
            this.credits.visible ? this.hideCredits() : this.showCredits()
        },
        i.prototype.hideCredits = function() {
            var t = this;
            this.game.add.tween(this.credits).to({
                y: this.credits.y + 200,
                alpha: 0
            },
            500, Phaser.Easing.Back.In, !0).onComplete.addOnce(function() {
                t.playButton.input.enabled = !0,
                t.creditsButton.input.enabled = !0,
                t.credits.visible = !1
            },
            this)
        },
        i.prototype.showCredits = function() {
            var e = this;
            this.credits.visible = !0,
            this.credits.alpha = 0,
            this.credits.y = Math.round(.5 * (t.Config.GAME_HEIGHT - 
            this.credits.height)) + 200,
            this.game.add.tween(this.credits).to({
                y: this.credits.y - 200,
                alpha: 1
            },
            500, Phaser.Easing.Back.Out, !0),
            this.playButton.input.enabled = !1,
            this.creditsButton.input.enabled = !1,
            this.game.input.onTap.addOnce(function() {
                e.hideCredits()
            },
            this)
        },
        i.prototype.startMusic = function() {
            this.game.sound.play("main_loop", .33, !1),
            this.soundButton.switchTextures(),
            this.soundButton.input.enabled = !0
        },
        i.prototype.initAnimation = function() {
            var t = this;
            this.title.y -= 280,
            this.game.add.tween(this.title).to({
                y: this.title.y + 280
            },
            600, Phaser.Easing.Back.Out, !0, 300);
            var e = 800;
            this.needlefish.y += 500,
            this.octopus.x += 400,
            this.jelly.x -= 400,
            this.game.add.tween(this.needlefish).to({
                y: this.needlefish.y - 500,
                angle: 354
            },
            700, Phaser.Easing.Back.Out, !0, e),
            this.game.add.tween(this.octopus).to({
                x: this.octopus.x - 400
            },
            600, Phaser.Easing.Back.Out, !0, e + 300),
            this.game.add.tween(this.jelly).to({
                x: this.jelly.x + 400
            },
            600, Phaser.Easing.Back.Out, !0, e + 300);
            var i = 1600;
            this.buttons.forEach(function(e) {
                e.scale.set(0, 0),
                t.game.add.tween(e.scale).to({
                    x: 1,
                    y: 1
                },
                300, Phaser.Easing.Back.Out, !0, i),
                i += 200
            })
        },
        i.prototype.destroy = function() {
            this.buttons = null
        },
        i
    } (Phaser.State);
    t.MainMenu = e
} (game || (game = {}));

源码

需要源码请关注添加好友哦^ ^

转载:欢迎来到本站,转载请注明文章出处https://ormcc.com/

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1382186.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

QuEra 10,000个物理量子位和100个逻辑量子位的量子计算机2026

每周跟踪AI热点新闻动向和震撼发展 想要探索生成式人工智能的前沿进展吗&#xff1f;订阅我们的简报&#xff0c;深入解析最新的技术突破、实际应用案例和未来的趋势。与全球数同行一同&#xff0c;从行业内部的深度分析和实用指南中受益。不要错过这个机会&#xff0c;成为AI领…

Python新年文字烟花简单代码

简单的Python新年烟花代码示例&#xff1a; import random import timedef create_firework():colors [红色, 橙色, 黄色, 绿色, 蓝色, 紫色]flashes [爆裂, 闪光, 旋转, 流星, 喷射]color random.choice(colors)flash random.choice(flashes)print(f"发射一枚{color…

综合评价 | 基于EW、EW-BP、EW-ELM的地区发展水平综合评价(Matlab)

目录 效果一览基本介绍程序设计参考资料 效果一览 基本介绍 综合评价 | 基于EW、EW-BP、EW-ELM的地区发展水平综合评价&#xff08;Matlab&#xff09; 程序设计 完整程序和数据获取方式&#xff1a;私信博主回复基于EW、EW-BP、EW-ELM的地区发展水平综合评价&#xff08;Matl…

最新域名群站开源系统:打造强大网站矩阵,引领SEO优化新潮流!

搭建步骤 第一步&#xff1a;安装PHP和MYSQL服务器环境 对于想要深入了解网站建设的人来说&#xff0c;自己动手安装PHP和MYSQL服务器环境是必不可少的步骤。这将使你能够更好地理解网站的运行机制&#xff0c;同时为后续的网站开发和优化打下坚实基础。 第二步&#xff1a;…

uniapp滑动页面切换和下拉刷新,触底加载更多(swiper + scroll-view)

因为官方文档乱七八糟的&#xff0c;所以自己来总结下 需求&#xff1a; 常见的上方tag标签切换&#xff0c;下方是页面&#xff0c;上面点击切换&#xff0c;下面页面也切换&#xff0c;下方列表有下拉刷新&#xff0c;触底加载更多 因为这两个组件都是固定高度的&#xff0c;…

java swing UI第三方设计器JFormDesiner和FlatLaf UI

安装JFormDesiner 官网&#xff1a;https://www.formdev.com/ 先去IDEA的插件市场安装吧 JFormDesiner是非开源&#xff0c;且付费的插件&#xff0c;可以自己去找找不付费的使用方法。在swing可视化设计UI非常高效快捷&#xff0c;初学者可能需要一定时间探索&#xff0c;熟…

高性能RPC框架解密

专栏集锦&#xff0c;大佬们可以收藏以备不时之需&#xff1a; Spring Cloud 专栏&#xff1a;http://t.csdnimg.cn/WDmJ9 Python 专栏&#xff1a;http://t.csdnimg.cn/hMwPR Redis 专栏&#xff1a;http://t.csdnimg.cn/Qq0Xc TensorFlow 专栏&#xff1a;http://t.csdni…

【数据结构】串,数组,广义表 | 笔记整理 | C/C++实现

文章目录 前言一、串1.1、串的定义1.2、案例引入1.3、串的类型定义和存储结构1.4、串的模式匹配算法1.4.1、BF算法1.4.2、KMP算法 二、数组2.1、数组的定义2.2、数组的抽象数据类型定义2.3、数组的顺序存储2.4、特殊矩阵的压缩存储 三、广义表四、病毒案例 前言 参考视频&…

大模型实战营Day4 作业

基础作业&#xff1a; 构建数据集&#xff0c;使用 XTuner 微调 InternLM-Chat-7B 模型, 让模型学习到它是你的智能小助手&#xff0c;效果如下图所示&#xff0c;本作业训练出来的模型的输出需要将不要葱姜蒜大佬替换成自己名字或昵称&#xff01; 微调前&#xff08;回答比较…

CF1178F1 Short Colorful Strip 题解

Short Colorful Strip 传送门 题面翻译 题目描述 这是F题的第一个子任务。F1和F2的区别仅在对于m和时间的限制上 有n1种颜色标号从0到n&#xff0c;我们有一条全部染成颜色0的长为m的纸带。 Alice拿着刷子通过以下的过程来给纸带染色&#xff1a; 我们按照从1到n的顺序进…

redis夯实之路-主从复制详解

Redis中可以通过执行slaveof命令或者设置slaveof选项&#xff0c;让一个服务器区复制另一个服务器&#xff0c;被复制的为主服务器&#xff0c;复制的为从服务器。 复制 Redis中可以通过执行slaveof命令或者设置slaveof选项&#xff0c;让一个服务器区复制另一个服务器&#…

科大讯飞星火大模型接入API js 部分 接口 安装注意事项

下载以下链接例子运行程序 https://xfyun-doc.xfyun.cn/static%2F16968175055332330%2Fspark_js_demo.zip 官网给的说明 准备 1.在demo中填写APPID、APISecret、APIKey&#xff0c;可到控制台-我的应用-大模型页面获取 2.安装nodejs 本地运行 1.打开cmd&#xff0c;进入dem…

2024三掌柜赠书活动第三期:Rust系统编程

目录 前言 Rust语言概念 关于《Rust系统编程》 Rust系统编程的核心点 Rust系统编程的关键技术和工具 编辑推荐 内容简介 作者简介 图书目录 书中前言/序言 《Rust系统编程》全书速览 结束语 前言 在技术圈&#xff0c;最近的编程语言新秀当属Rust莫属&#xff0c;R…

Center审计策略表安装和策略添加(事务)——(Linux/Windows版本)

本博客主要讲述Center的审计策略表安装和策略添加 使用事务添加 1、开启事务 my->StartTransaction(); 2、编写sql语句 //清除原来数据&#xff0c;防止数据污染my->Query("DROP TABLE IF EXISTS t_strategy");string sql "CREATE TABLE t_strategy (…

虚幻引擎nDisplay教程:如何同步nDisplay节点与Switchboard + Helix Core

对于使用大型LED屏幕进行拍摄的虚拟制作团队来说&#xff0c;虚幻&#xff08;Unreal&#xff09;的nDisplay是一个重要的工具。但是&#xff0c;在nDisplay中将正确版本的文件发送到每个节点会非常耗时。立即阅读本文&#xff0c;您将了解到如何使用Perforce Helix Core版本控…

Jenkins集成Sonar Qube

下载插件 重启Jenkins 容器 sonarqube 使用令牌 Jenkins 配置 重新构建

Flask类视图的基本用法及高级技巧详解

概要 当我们谈论Web开发时&#xff0c;Flask是Python世界中最受欢迎的微框架之一。简洁灵活的设计让它在开发小型到中型的Web应用程序时尤其受欢迎。在Flask中处理URL路由时&#xff0c;我们常常会使用基于函数的视图。尽管这很简单直接&#xff0c;但是随着应用的增长&#x…

Linux驱动学习—I2C总线

1、应用层实现I2C通信 1.1 I2C简介 I2C是很常见的一种总线协议&#xff0c;I2C是NXP公司设计的&#xff0c;I2C使用两条线在主控制器和从机之间进行数据通信。一条是SCL&#xff08;串行时钟线&#xff09;&#xff0c;另外一条是SDA(串行数据线)&#xff0c;因为I2C这两条数…

如何使用创建时间给文件重命名,简单的批量操作教程

在处理大量文件时&#xff0c;有时要按照规则对文件重命名&#xff0c;根据文件的创建时间来重命名。那如何批量操作呢&#xff1f;现在一起来看云炫文件管理器如何用文件的创建时间来批量重命名。 按创建时间重命名文件的前后对比图。 用创建时间批量给文件重命名的步骤&…

定时器问题(vue的问题)

我在a页面写一个定时&#xff0c;让他每秒钟打印一个1&#xff0c;然后跳转到b页面&#xff0c;此时可以看到&#xff0c;定时器依然在执行。这样是非常消耗性能的。如下图所示&#xff1a; 解决方法1 首先我在data函数里面进行定义定时器名称&#xff1a; data() {return {t…