[{"data":1,"prerenderedAt":64,"buildId":65},["ShallowReactive",2],{"article:\u002Farticles\u002Fmove-camera-godot":3},{"id":4,"title":5,"abbrlink":6,"body":7,"category":52,"createTime":53,"description":13,"extension":54,"meta":55,"navigation":56,"path":57,"seo":58,"stem":59,"tags":60,"wip":56,"__hash__":63},"articles\u002Farticles\u002Fmove-camera-godot.md","Godot 中一些游戏内基础操作的简单实现（一）",null,{"type":8,"value":9,"toc":46},"minimark",[10,14,19,22,33],[11,12,13],"p",{},"这一次的记录有两个部分，第一部分是实现鼠标拖拽地图，第二部分是实现鼠标滚轮对地图进行缩放，这是第一部分。",[15,16,18],"h3",{"id":17},"开始之前-引入需要的第三方库","开始之前 - 引入需要的第三方库",[11,20,21],{},"我们需要一个名为 GodotTouchInputManager 的库帮助我们识别鼠标或触屏输入事件。",[11,23,24,25,32],{},"在作者的 ",[26,27,31],"a",{"href":28,"rel":29},"https:\u002F\u002Fgithub.com\u002FFederico-Ciuffardi\u002FGodot-Touch-Input-Manager",[30],"nofollow","GitHub"," 仓库中有介绍如何安装，柠喵需要翻译成中文记录一下：",[34,35,36,40,43],"ol",{},[37,38,39],"li",{},"将最新的 Release 包下载到本地并解压",[37,41,42],{},"将解压后文件夹中的 CustomInputEvents 文件夹和 InputManager.gd 文件放入工程目录中的 script 文件夹（res:\u002F\u002Fscript\u002F）中",[37,44,45],{},"到项目设置中将 InputManager.gd 添加到自动加载列表中",{"title":47,"searchDepth":48,"depth":48,"links":49},"",2,[50],{"id":17,"depth":51,"text":18},3,"游戏开发",1631681381701,"md",{},true,"\u002Farticles\u002Fmove-camera-godot",{"title":5,"description":13},"articles\u002Fmove-camera-godot",[61,62],"Godot","3D","Kkfr1uplKOKXzZZxhpMbe6AUWfDN9pxRXYQBILx2GTA",1796055840440,"1539a3bc-d3b0-49d5-8cf3-86a9e27cf504"]