12345678910111213141516171819202122232425262728293031323334353637383940 |
- var poiAlpha = {
- x: 252,
- y: 144,
- id: "Poi01",
- img: null,
- type: "GENERIC",
- pin: function(){
- },
- adapt: function(){
- },
- setIcon: function(filename){
- //small
- // this.img=loadImage(filename,
- // function(img){
- // img.resize(20,20);
- // });
- //big
- // this._img=loadImage(filename,
- // function(img){
- // img.resize(50,50);
- // });
- }
- };
- var pois=[];
- var poi=Object.create(poiAlpha);
- poi.x= 346;
- poi.y= 332;
- poi.id="First One";
- poi.setIcon('icona_testo.png');
- pois.push(poi);
- poi=Object.create(poiAlpha);
- poi.x= 746;
- poi.y= 432;
- poi.id="Two";
- poi.setIcon('icona_testo.png');
- pois.push(poi);
|