Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 651 Bytes

README.md

File metadata and controls

32 lines (29 loc) · 651 Bytes

ErrorSpeech-CCExtension

A Extension for Cocos Creator

  • Translation and speech errors to vietnamese (options)
  • Rewrote cc.error for this feature.
  • MAKE FOR FUN - DO NOT USE IN RELEASE PRODUCTIONS

Installation

  • cd ./error-speech
  • npm install
  • copy error-speech to [CocosCreator Project]/packages
  • Open CocosCreator and test.

Example

HelloWorld.js

....
// After scene loaded
ctor(){
     try{
         // throw new Error("Cảm ơn đã theo dõi")
         // make a misstake.
         // this.labelss.makeLoop = "hello"
     }catch(err){
         cc.error(err)
     }
},
....

Version

  • Cocos Creator 2.4.2
  • Node 12.18.3