Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initializeMinimap() {
/* Create a ROT.JS display for the minimap! */
this.minimap = new ROT.Display()
this.minimap.setOptions(this.minimapOptions)
this.drawMiniMap()
},
constructor() {
this.display = new ROT.Display({
fontSize: 14,
fontStyle: 'bold',
font: 'Fixedsys500c',
width: SETTINGS.screen.width,
height: SETTINGS.screen.height
});
this.currentScreen = null;
this.listeners = {};
const bindToScreen = (event) => {
const listener = window.addEventListener(event, (e) => {
if(this.currentScreen === null) return;
this.currentScreen.handleInput(event, e);
});
constructor() {
this.display = new ROT.Display({
fontSize: 14,
fontStyle: 'bold',
font: 'Courier New',
width: SETTINGS.screen.width,
height: SETTINGS.screen.height
});
this.currentScreen = null;
const bindToScreen = (event) => {
window.addEventListener(event, (e) => {
if(this.currentScreen === null) return;
this.currentScreen.handleInput(event, e);
});
};