Here's my code (It doesn't work):
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
function Shape(){};
Shape.prototype.Circle = function(){
// Some code here
};
Shape.prototype.Square = function(){
// Some code here
};
MainMenu.prototype = new Shape();
var MainMenu = function(ctx){
this.draw{
this.Circle();
this.Square();
}
}
What I want to do is to call the Circle() and Square() function inside my draw() function.
Is this even possible??
I'm going crazy trying to figure this out!!