在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):play-co/devkit开源软件地址(OpenSource Url):https://github.com/play-co/devkit开源编程语言(OpenSource Language):JavaScript 90.7%开源软件介绍(OpenSource Introduction):The Game Closure DevKitHTML5 JavaScript game development kit. Run in your browser; build to iOS and Android. InstallationOS XDevKit requires that you install few dependencies first: We recommend using brew to install these if you do not have them already. Optional DependenciesBuilding games for iOS or Android requires installing the corresponding SDKs:
NOTE: please ensure the apache build tools and ant are available in your path so DevKit can find them when trying to build! Getting StartedNow, install devkit. You may run into some weird errors if you don't own your
global
LinuxFollow the instructions on the project wiki WindowsWindows platform is supported thanks to WSL. Please follow the official WSL installation guide if you do not have it installed yet, and then our Linux install instructions. Creating your first gameYou need a
Building on DeviceFirst, ensure you have the proper pre-requisites installed and on your path for the target device. See above for more details. DevKit can create builds by specifying a build type (debug or release) and a build target (default options: native-android, native-ios, browser-desktop, browser-mobile). Debug builds include all the logs, do not strictly verify everything, and allow debugging on device via the native inspector. Release builds strip logs and try to verify as much as possible. All your builds will be available in your /build/ folder. AndroidBuilding for native-android will create an apk directly.
Pro-Tip: You can add the --install flag to automatically install the apk on the connected device, or the --open flag to install and open it. iOSBuilding for native-ios will create an xcode project and open it with xcode. Attach your device and click build.
Debugging on DeviceAs of DevKit2, the Native Inspector is no longer packaged with DevKit itself. To debug on device, you need to clone and run the NativeInspector(https://github.com/gameclosure/nativeinspector).
Ensure your device is plugged in, then point your browser to localhost:9220 (or whatever the NativeInspector console suggests). Now, when you run a debug build on a connected device you will be able to use the in browser debugger just like when running the simulator. Migrating a DevKit1 Game to DevKit2Please check docs.gameclosure.com for the latest migration instructions from DevKit1 to DevKit2. If your existing DevKit1 game has no additional dependencies, you can install DevKit2 by navigating to the top of the game directory and running the following command:
This will install the default dependencies and add your game to the DevKit2 simulator. If your app requires additional modules, please see the section about migrating addons and follow the online app migration instructions. Updating the DevKitDevKit consists of two parts: the command-line interface (the CLI, To update the API in your game, run Game ModulesAll dependencies (modules) for your game live in the To install a module:
NOTE: be sure you have an updated version of your module that supports DevKit2 (an easy check is that DevKit2 modules require a package.json file). Migrating DevKit1 modules to support DevKit2 is fairly simple - get the instructions at docs.gameclosure.com to contribute. Inspecting your apps from the command lineThe devkit command can be used to query information about your apps. The
commands Example commands:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论