GithubHelp home page GithubHelp logo

yunyoujun / cocos-creator-joystick Goto Github PK

View Code? Open in Web Editor NEW
232.0 6.0 88.0 2.61 MB

🕹 Cocos Creator Joystick Demo 虚拟摇杆

Home Page: https://yunyoujun.github.io/cocos-creator-joystick/

License: MIT License

TypeScript 100.00%
cocos-creator joystick demo input-handler

cocos-creator-joystick's People

Contributors

ca39-quincy avatar yunyoujun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cocos-creator-joystick's Issues

报错: getComponent: Type must be non-nil

image

cocos creator 版本 v2.0.9

问题出现的步骤:
git clone 之后 导入项目 然后 demo 场景 浏览器预览, 鼠标点击页面没有反应。
点击 fixed 和 follow 两个按钮 控制台报错 :
CCDebug.js:254 getComponent: Type must be non-nil
27.cc.errorID @ CCDebug.js:254
getConstructor @ base-node.js:45
getComponent @ base-node.js:802
emit @ CCComponentEventHandler.js:147
emitEvents @ CCComponentEventHandler.js:122
_onTouchEnded @ CCButton.js:690
174.CallbacksInvoker.invoke @ callbacks-invoker.js:255
_doDispatchEvent @ CCNode.js:492
dispatchEvent @ CCNode.js:1781
_touchEndHandler @ CCNode.js:342
_onTouchEventCallback @ CCEventManager.js:508
_dispatchEventToListeners @ CCEventManager.js:632
_dispatchTouchEvent @ CCEventManager.js:554
dispatchEvent @ CCEventManager.js:1049
handleTouchesEnd @ CCInputManager.js:174
_mouseEventsOnElement @ CCInputManager.js:467
(anonymous) @ CCInputManager.js:495

請問這能原生發布過android嗎?

請問這能原生發布過android嗎?
我在編譯階段時會報錯。
訊息為:
Error: Compile failed. The log file path [ C:\Users\User.CocosCreator\logs\native.log ]
at ChildProcess. (C:\CocosDashboard_1.0.11\resources.editors\Creator\2.4.4\resources\app.asar\editor\core\native-utils.js:1:24467)
at ChildProcess. (C:\CocosDashboard_1.0.11\resources.editors\Creator\2.4.4\resources\app.asar\editor\core\native-utils.js:1:6527)
at ChildProcess.emit (events.js:194:13)
at ChildProcess.EventEmitter.emit (domain.js:469:20)
at maybeClose (internal/child_process.js:998:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)

要注意锚点的使用

锚点的设置太坑了找了半天不知道为啥不生效,这个要了解的需要注意下,其他的很赞

导入 无法运行

image

是我导入的方式不对吗? 用cocos creater 打开项目 也无法成功跑起来

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.