From db5b49ee7f2c7193f7d91856007846a4a58c9646 Mon Sep 17 00:00:00 2001 From: "Kacper Kostka (aider)" Date: Sat, 5 Apr 2025 18:03:10 +0200 Subject: [PATCH] feat: Add player entity with WASD/space controls and spawn functionality --- index.html | 2 + js/entities/entity.js | 6 +- js/entities/player.js | 187 ++++++++++++++++++++++++++++++++++++++++++ js/input.js | 36 ++++++++ js/main.js | 32 ++++++++ styles.css | 12 +++ 6 files changed, 274 insertions(+), 1 deletion(-) create mode 100644 js/entities/player.js diff --git a/index.html b/index.html index 63fa73b..045827c 100644 --- a/index.html +++ b/index.html @@ -25,6 +25,7 @@ +