From 3356058a9c604b22a1f63f8e0a90e661ee73d653 Mon Sep 17 00:00:00 2001 From: John Mortensen Date: Thu, 9 Nov 2023 18:49:39 -0800 Subject: [PATCH] fix platform --- _posts/2023-11-13-CSSE-tri2-oop.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_posts/2023-11-13-CSSE-tri2-oop.md b/_posts/2023-11-13-CSSE-tri2-oop.md index ceef6be..08dedbd 100644 --- a/_posts/2023-11-13-CSSE-tri2-oop.md +++ b/_posts/2023-11-13-CSSE-tri2-oop.md @@ -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 }