Refactored everything into modules.

This commit is contained in:
2025-04-01 23:38:35 +00:00
parent 53f9eb9265
commit 2f7cda4b6d
8 changed files with 107 additions and 105 deletions
+1 -4
View File
@@ -2,7 +2,7 @@
* Input Handler Module
* Manages the multi-line text input field with a custom cursor.
*/
class InputHandler {
export class InputHandler {
constructor(inputId = 'player_input', cursorId = 'cursor') {
this.playerInput = document.getElementById(inputId);
this.cursor = document.getElementById(cursorId);
@@ -288,6 +288,3 @@ class InputHandler {
*/
}
}
// Export the class if using modules (optional, depends on build setup)
// export default InputHandler;