πŸŽ‰Component

maybe a character, maybe a box maybe, a menu page

Let's just define an example

circle-exclamation
const player1 = new Component({
  name: "player1",//*Component name
  inscreen: true,//prevents exiting the screen
  physic: {
    status: true//Adds physics
  },
  position: {//*starting position
    x: 0,
    y: 0,
  },
  scale: {//*how big will it be
    x: 100,
    y: 180,
  },
  color:"red",//optional color
  notick:false//Turns off physics and collision rendering optimization
});

πŸŽ‰πŸŽ‰πŸŽ‰ Yes we created a new object

Update

Get

Remove

Last updated