From fc24028ed9d14e2eb51929811079048ecc815a10 Mon Sep 17 00:00:00 2001 From: Juan Sebastian Montoya Date: Tue, 25 Nov 2025 14:32:48 -0500 Subject: [PATCH] Refactor to ES6 classes with GameObject inheritance pattern - Convert from function-based to class-based architecture - Create GameObject base class with common functionality (position, collision, scene management) - Implement Player, Coin, and Obstacle classes extending GameObject - Add Game class to manage game lifecycle and state - Fix shadow rendering by configuring directional light shadow camera bounds - Fix player collision to prevent sinking below ground (horizontal push only) - Improve code organization and maintainability with OOP principles --- index.html | 648 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 388 insertions(+), 260 deletions(-) diff --git a/index.html b/index.html index 9055eb7..f1c3950 100644 --- a/index.html +++ b/index.html @@ -92,313 +92,441 @@ \ No newline at end of file