Statt Table nun canvas zur rendern im Frontend
This commit is contained in:
12
frontend/game/scripts/Game/Elements/Overlay.js
Normal file
12
frontend/game/scripts/Game/Elements/Overlay.js
Normal file
@@ -0,0 +1,12 @@
|
||||
class Overlay{
|
||||
constructor(src = null, deg = 0){
|
||||
this.src = src;
|
||||
this.deg = deg;
|
||||
|
||||
if(!this.src) return;
|
||||
this.image = new Image();
|
||||
this.image.src = src;
|
||||
}
|
||||
}
|
||||
|
||||
export default Overlay
|
||||
Reference in New Issue
Block a user