mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Intelligent graphic sets implemented
This commit is contained in:
@@ -3,10 +3,12 @@ import TilorswiftFieldEnteredEvent from "./events/TilorswiftFieldEnteredEvent.js
|
||||
|
||||
export default class Field
|
||||
{
|
||||
constructor(tileset, index = -1)
|
||||
constructor(tileset, x = 0, y = 0, index = -1)
|
||||
{
|
||||
this.tileset = tileset;
|
||||
this.index = index;
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.isEntrancePoint = false;
|
||||
this.isTargetPoint = false;
|
||||
this.initHtml();
|
||||
@@ -91,4 +93,4 @@ export default class Field
|
||||
{
|
||||
return this.htmlElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user