βš™οΈApi

Eap is a module made for your convenience outside the game engine.

Require

You can define modules like this (js)

You can use both link and file

require("https://cdnjs.cloudflare.com/ajax/libs/axios/1.3.4/axios.min.js")
require("https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.min.js")

modulesloaded = function(x){
  if(x == false){//first module downloads (not added later)
    console.log("all modules are installed now I can use the modules")
    //Example: starthammercanvas()
  }else{//added later after the game runs

  }
}
//You can think of it like the function loading screen of the game. Loading modules.

Addstyle

You can define modules like this (css)

You can use both link and file

addstyle("https://cdn.jsdelivr.net/npm/izitoast/dist/css/iziToast.min.css");

Addfont

You can define modules like this (ttf,woff2,woff,eot,otf)

You can use both link and file

addfont("FONTNAME","./file.ttf")

getIp

If you are coding an online system, you may need it.

getIP().then((x)=>{
console.log(x)
})

linkget

quickly retrieve data from the site

linkget("https://api.ipify.org").then((data)=>{
    console.log(data)
})

Monitor hz learning

console.log(Engine_monitorhz)//example: 75

Generate Random number and Generate Random array

console.log(
  generaterandomnumber(
   0,//min number to occur
   100//max number to occur
  )
)//example: 67

console.log(
generaterandomarray([1,2,3,4])//possibilities
)//example: 2

Animator

πŸŒ–Animate

Last updated