📤Sendengine and Database

sends data to game engine; your code ==> engine

Sendengine

sendengine({
  fullscreen:true,//goes to full screen
  center:true,//puts the application in the center of the screen
  exit:true,//exit to game
  appresize: {//changing the resolution
    x:1900,
    y:1000
  },
  changestatusbar:"#onlyhexcode",//changes the color of the top of the application
  sendalertbox:"hello world",//warns at the bottom
  changescreenstatus:1,//change the direction of the phone [1,2,3]
  sendvibrate:1000,//You send a vibration to the phone. Enter time in milliseconds
  startpath:"/"//which html file to open index.html example
})
changescreenstatus: 1
changescreenstatus: 2
changescreenstatus: 3

Automatic settings. If the phone is standing sideways, it becomes horizontal, if it is standing upright, it becomes vertical.

Forces the phone to stand in an Portrait

Forces the phone to stand in a Landscape

sendalertbox example
changestatusbar: changes the color of the selected part

Database

console.log(Database("get","test"))
Database("set","test","true")
Database("add","asdas",1)
Database("push","sxcac","hi")
Database("del","asdas",1)//delete remove
Database("del","sxcac")//delete remove
Database("reset")//deleteall
Alternative 1
Alternative 2
Alternative 3

del

delete

remove

reset

deleteall

async function run(){
    var connect = await WaitDatabase();//auto try
    //For example, for 20 seconds: WaitDatabase(20)
    if(connect) console.log("Database connected")
    else console.log("WHERE IS THE DATABASE BRO ????")
}
//OR
console.log(Engine_database.Engine_connected)//true or false

Last updated