Commit bd81744e by Alexander Bazo

Fix minor bugs

parent 359f1a2f
...@@ -15,7 +15,7 @@ const schema = require("@colyseus/schema"), ...@@ -15,7 +15,7 @@ const schema = require("@colyseus/schema"),
duration: 15000, duration: 15000,
}, },
{ {
imageUrl: "images/Bruegel-Childrens_Games.jpg.jpg", imageUrl: "images/Bruegel-Childrens_Games.jpg",
taskDescription: "Identifizieren Sie unterschiedliche Spiele.", taskDescription: "Identifizieren Sie unterschiedliche Spiele.",
taskSource: "Pieter Bruegel the Elder, Children's Bruegel-Childrens_Games (Oil on oak wood, 1560), Kunsthistorisches Museum, Vienna", taskSource: "Pieter Bruegel the Elder, Children's Bruegel-Childrens_Games (Oil on oak wood, 1560), Kunsthistorisches Museum, Vienna",
duration: 15000, duration: 15000,
......
This image diff could not be displayed because it is too large. You can view the blob instead.
...@@ -60,6 +60,7 @@ class ImageViewer { ...@@ -60,6 +60,7 @@ class ImageViewer {
image = new Image(); image = new Image();
image.src = imageUrl; image.src = imageUrl;
image.onload = function() { image.onload = function() {
that.backgroundContext.clearRect(0, 0, screen.width, screen.height);
that.backgroundContext.drawImage(image, 0, 0); that.backgroundContext.drawImage(image, 0, 0);
}; };
} }
......
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 sign in to comment