Commit e41bec60 authored by Lauma Muižarāja's avatar Lauma Muižarāja
Browse files

initial coml commit

parents
THE_GAME01 @ e4f4067d
Subproject commit e4f4067d4eb16c6272f656c4cb3ba1e72feaf5e8
function myAgency(){
this.mx = 850; // map icon x pos
this.my = 550; // map icon y pos
this.ms = 75; // map icon size
this.show = function(){
textSize(32);
textAlign(CENTER, CENTER);
text("The Real Estate Agency", width/2, height/2);
//drawing the tiny map icon:
image(tinymap, this.mx, this.my, this.ms, this.ms);
}
//Take us to the map:
this.toMap = function(){
if (mouseX > this.mx && mouseX < this.mx + this.ms && mouseY > this.my && mouseY < this.my + this.ms){
return true;
}else{
return false;
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment