mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Gisela and target point added.
This commit is contained in:
@@ -8,6 +8,7 @@ export default class Field
|
||||
this.tileset = tileset;
|
||||
this.index = index;
|
||||
this.isEntrancePoint = false;
|
||||
this.isTargetPoint = false;
|
||||
this.initHtml();
|
||||
this.initEventListeners();
|
||||
}
|
||||
@@ -75,6 +76,17 @@ export default class Field
|
||||
}
|
||||
}
|
||||
|
||||
setTargetPoint(bool)
|
||||
{
|
||||
this.isTargetPoint = bool;
|
||||
|
||||
if (this.isTargetPoint) {
|
||||
this.htmlElement.classList.add('target');
|
||||
} else {
|
||||
this.htmlElement.classList.remove('target');
|
||||
}
|
||||
}
|
||||
|
||||
getElement()
|
||||
{
|
||||
return this.htmlElement;
|
||||
|
||||
Reference in New Issue
Block a user