mirror of
https://github.com/sigmasternchen/DrunkenMan
synced 2025-03-16 08:29:03 +00:00
20 lines
367 B
JavaScript
20 lines
367 B
JavaScript
![]() |
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;
|