Can I build games w/ Construct 2 and compile w/ new VS 2013 Cordova support?

瘦欲@ 提交于 2019-12-25 02:30:05

问题


After noticing the added support for Apache Cordova builds into Update 2 of Visual Studio 2013, I wonder if it could be possible to create a game with Construct 2, export as phonegap app and build using this new VS feature.

Thanks in advance,

Marcelo


回答1:


If the question is whether you should be able to take a PhoneGap project and convert it, then yes. However, they may need to tweak some things around plugins and config.xml depending on how old the project is. (Ex: There are some things in config.xml that are phonegap only)

  1. Basically, copy the contents of what would go into the “www” folder into the root of the project.

  2. On plugins:

    a. If they are using base Cordova plugins, then they can just go click the plugins in the manifest editor

    b. If they used a PhoneGap CLI project, then for plugins they can actually copy the contents of their “plugins” folder to a “plugins” folder in the VS project

    c. If they were referencing custom non-base plugins via feature elements (the old Cordova 2.x way), then they may need to make some adjustments – Mainly because plugins like push and barcode aren’t in plugins.cordova.io yet



来源:https://stackoverflow.com/questions/23621362/can-i-build-games-w-construct-2-and-compile-w-new-vs-2013-cordova-support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!