()
| 33 | } |
| 34 | |
| 35 | show() { |
| 36 | const pos = this.body.position; |
| 37 | const angle = this.body.angle; |
| 38 | push(); |
| 39 | translate(pos.x, pos.y); |
| 40 | rotate(angle); |
| 41 | fill(255); |
| 42 | rectMode(CENTER); |
| 43 | imageMode(CENTER); |
| 44 | image(boxImg, 0, 0, this.w, this.h); |
| 45 | pop(); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | class Ground extends Box { |
no test coverage detected