mirror of
https://github.com/sigmasternchen/DrunkenMan
synced 2025-03-16 00:19:08 +00:00
19 lines
367 B
JavaScript
Executable file
19 lines
367 B
JavaScript
Executable file
Debug.log("Bar", "module loaded");
|
|
|
|
/*
|
|
* class for the bar
|
|
*/
|
|
function Bar () {
|
|
Debug.log("Bar", "instance created");
|
|
this.position = new Position();
|
|
this.rotation = 0;
|
|
this.image = new Image();
|
|
this.image.src = "images/bar.png";
|
|
}
|
|
|
|
// image for graphics
|
|
Bar.prototype.image;
|
|
// rotaion for graphics
|
|
Bar.prototype.rotation;
|
|
// position
|
|
Bar.prototype.position;
|