/*Plans:1*2* WE SHOULD:3*4* - Initialization system to load in advance to avoid an white space5*6* - Divide some abilities of character to "components" as Unity and Unread do7*8*/910class Square {11constructor(x,y,12width,height13) {14this.x = x;15this.y = y;16this.width = width;17this.height = height;18}1920draw()21{22ctx.beginPath();23ctx.rect(this.x,this.y,this.width,this.height);24ctx.fill();25ctx.closePath();26}27}28var testSq = new Square(0,400,500,200);2930//Main function of the script31function main()32{33ctx.clearRect(0,0,canvas.width,canvas.height);3435testSq.draw();3637cuphead.update();38cuphead.animate();39}404142//THE MOST IMPORTANT FUNCTION WHAT WE HAVE!!!43/*!!!*/ setInterval(main, 1); /*!!!*/44//THE MOST IMPORTANT FUNCTION WHAT WE HAVE!!!454647