Remove main.js
article thumbnail

HTML5 Canvas Resize on Runtime

Cocos

I disabled all the fullscreen code from index.html and main.js. But as soon as I click on the game, it automatically resizes and fills the whole screen again. I don’t want that. How can I prevent this?

Code 52
article thumbnail

Here's a question about Cocos Creator multilingualism

Cocos

47:22 at step (/project/extensions/localization-editor/webpack-dist/electron-main/main.js:32131:23) 32131:23) at Object.next (/project/extensions/localization-editor/webpack-dist/electron-main/main.js:32072:20) 32072:20) at asyncGeneratorStep (/project/extensions/localization-editor/webpack-dist/electron-main/main.js:31917:28)

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Anyone still using 3.17.2 Javascript?

Cocos

we manually don’t have to main.js How and where do can I check? anywhere, in project.json there we put list of js files which are inside src folder. Can you please tell more in specifically ?

66
article thumbnail

Anyone still using 3.17.2 Javascript?

Cocos

check your apk build if it not have file main.js or main.jsc. May be this file is missing (it didn’t copied)

Build 75
article thumbnail

Anyone still using 3.17.2 Javascript?

Cocos

these logs are showing on logcat: cocos2d: fullPathForFilename: No file found at main.js. cocos2d: fullPathForFilename: No file found at main.js. Can any one help please ? Possible missing file. cocos2d: fullPathForFilename: No file found at main.jsc. Possible missing file. Possible missing file.

40
article thumbnail

Help with build,

Cocos

Then use win.loadFile(‘release/index.html’); instead in your main.js Then get started with electron js by following this guide: electronjs.org Quick Start | Electron This guide will step you through the process of creating a barebones Hello World app in Electron, similar to electron/electron-quick-start.

article thumbnail

Broken Android build process

Cocos

, location: (no filename):0:0 02-05 12:52:14.851 28268 28389 E Cocos : STACK: 02-05 12:52:14.851 28268 28389 E Cocos : - [0]anonymous@(no filename):1 02-05 12:52:14.851 28268 28389 E Cocos : - [1]defaultHandler@main.js:13 13 02-05 12:52:14.851 28268 28389 E Cocos : - [2]anonymous@src/system.bundle.js:706

Build 40