How to Code In Wick Editor

I mean like the player stands on like floor or the player get hit by an enemy

You can just make fake gravity. For the enemy thing, simply:

this.lives = 10
this.ticker = 0; // Helpful, so you don't immediately die.
this.onEvent('update', function(){
  this.ticker = this.ticker + (this.ticker + 1) % 31 // counts up to 30, then 0.
  if (this.ticker === 30 && this.hits(enemy)) this.lives -= 1;
})