Skip to content

Commit

Permalink
fix platform
Browse files Browse the repository at this point in the history
  • Loading branch information
jm1021 committed Nov 10, 2023
1 parent b6b5ba2 commit 3356058
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _posts/2023-11-13-CSSE-tri2-oop.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ Platform is a class for platforms that the player can stand on, extending GameOb
```javascript
// Create a class for platforms that the player can stand on.
class Platform extends GameObject {
constructor(x, y, width, height) {
super(x, y, width, height);
constructor(canvas, config) {
super(canvas, config);

}
// Additional platform-specific methods or properties
}
Expand Down

0 comments on commit 3356058

Please sign in to comment.