Cocos Creator official documentation https://www.cocos.com/docs
https://docs.cocos.com/creator/manual/zh/publish/setup-native-development.html
https:// www.oracle.com/technetwork/java/j
Cocos Creator official documentation https://www.cocos.com/docs
https://docs.cocos.com/creator/manual/zh/publish/setup-native-development.html
https:// www.oracle.com/technetwork/java/j
For novices, there are indeed too many pits,
I thought this.string=”abc”; will do. After setting up, you will find the interface No change at all, even direct settings are invalid.
Corr
Introduction to the action system The action system provided by Cocos Creator is derived from Cocos2d-x, API and usage Uniformly inherited. The action system can complete various actions such as di
1: 3 steps and a hole to turn on the physics engine:
(1) Turn on the engine: cc.director.getPhysicsManager().enabled = true
(2) Configure gravity: cc.director.getPhysicsManager().gravit
In the generated cocos2d-js-min.js, search for
Math.min( 2,window.devicePixelRatio||1 ) Change to
window.devicePixelRatio||1 Screen The font and texture become so clear in an instant, please refer to the document:
http://forum.cocos.com/t/android-web/39807/9
Cocos Creator supports exporting scenes and prefabs in the current project for use in another project:
1, select the scene or prefab to be exported;
2, select the target to export to Folder locat
var url=”jk.php”;
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status Actually It is the native js method.
To f
1. Add Chrome Debug configuration
Cocos Creator editor interface development ->VS Code Workflow->Add Chrome Debug Configuration
2.VSCode installs the Debug For Chrome plugin
3. Mo
Project –> Project Settings –> Select the modules that will be packaged into the engine when building and publishing
The modules are as follows:
Core mandatory Canvas is required, canva
index.js stored value:
cc.sys.localStorage.setItem(“wxuser”,id); left .js value:
var wxuser=cc.sys.localStorage.getItem(“wxuser”);
console.log(“wxuser:”+wxuser); That’s it.
index