当前位置:网站首页>Wechat games (5)
Wechat games (5)
2022-06-22 07:25:00 【qq_ forty-five million nine hundred and sixty-nine thousand fiv】
This article is right Cocos creator Introduction to learning .
One 、Cocos creator brief introduction
Cocos Based on a larger perspective , It will cocos All development frameworks in the family 、 Tools and editors are integrated .
Cocos One stop solution for game development , Including from new project 、 Game making 、 The whole process from packaging to online . Developers can use cocos Fast code generation 、 Edit resources and animations , The final output is game products suitable for multiple platforms .
Two 、 Development scripts Java script
JavaScript Is a high-level scripting language belonging to the network , Has been widely used Web application development , Used to add various dynamic functions to web pages , Provide users with more smooth and beautiful browsing effect . Usually JavaScript The script is embedded in the HTML To realize its own functions .
3、 ... and 、Cocos creator Use
1. We are cocos creator Create a new one Hello JavaScript project , There will be one assets/Scene/hello world.fire file . Use cocos creator When developing games , A project can have only one .fire file . In a general way , I will rename this folder assets/scene, There is only main.fire file :assets/scene/main.fire.
2. double-click helloworld.fire file , You can see its structure in the hierarchy manager , The root node is a Canvas, Click on Canvas node , In the property panel on the right, you can see Canvas The components are Design Resolution attribute , As the size of the screen .
3.cocos creator Adopt component mode , Each node can mount different components , Including self-developed script components . Create a new one HelloWorld.js, All script classes associated with interface nodes inherit from cc.Component, We can state that Label attribute , Scenarios for associated interfaces num node .cc.Component A series of life cycle methods are defined , In different life cycles of nodes, the .
边栏推荐
- Rviz ROS wiki official website tutorial learning notes (1) - User Guide
- Kinect azure based multi camera data collection (I)
- Developing a contract application with low code
- How to batch copy babies by sales volume in Taoying
- Process engine solves complex business problems
- Find and replace the spaces, Nan and special symbols contained in a column of data in the dataframe
- 校招路上的坑
- Image interpolation (nearest neighbor, bilinear)
- New year's Day mall material Icon
- TypeScript & 详细解释 in、keyof、extends、索引签名、Record、typeof 的含义(不定时更新)
猜你喜欢

Flutter gets the context, and flutter gets the DOM element location

Matlab用深度学习循环神经网络RNN长短期记忆LSTM进行波形时间序列数据预测

Choco usage notes -- how to set the default package installation location of choco

33歲程序員的年中總結

Greek alphabet - system / service name commonly used in development - Collection

matlab 实现中值滤波

Color matching of architecture diagram

Coursera self driving car Part4 motion planning finalproject principle and key code analysis

Realization of median filter with MATLAB

js实现随机生成16位的密钥——基础积累
随机推荐
[usecols parameter of pd.read\u excel ((), list error reason]
Get through version 4.3 mind map
Summary of methods for calculating the number of solutions of indefinite equations
Introduction and use of cookies
Lean production | lean management
Tikz learning notes (III) marking and intersection of graphics
About pointer (notes, for personal use)
Open version - inventory description
Wechat applet service provider sub merchant payment order interface
Use of sessionstorage and localstorage
Flutter uses the for loop
CONDA installation method of deepmd kit and the solution of slow speed
Matlab suddenly fails to open. It disappears after running. There is no solution for the task manager
Realization of median filter with MATLAB
Can Taobao batch copy babies synchronize the original baby inventory
Flutter input field maxlines dynamic change
How to import and upload a CSV generated by a third-party platform to a Taobao store
Open version - order delivery
如何解决‘WebDriver‘ object has no attribute ‘switch_to_window‘
Crmeb mall distribution function