diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/PortfolioWebsite.iml b/.idea/PortfolioWebsite.iml new file mode 100644 index 0000000..f40672a --- /dev/null +++ b/.idea/PortfolioWebsite.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..b1460c9 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,38 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..77b05d2 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..e665360 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Spritesheets/Crouch.png b/Spritesheets/Crouch.png new file mode 100644 index 0000000..d3fa730 Binary files /dev/null and b/Spritesheets/Crouch.png differ diff --git a/Spritesheets/Death.png b/Spritesheets/Death.png new file mode 100644 index 0000000..4be4cdc Binary files /dev/null and b/Spritesheets/Death.png differ diff --git a/Spritesheets/Fall.png b/Spritesheets/Fall.png new file mode 100644 index 0000000..a3fcf6b Binary files /dev/null and b/Spritesheets/Fall.png differ diff --git a/Spritesheets/Flap.png b/Spritesheets/Flap.png new file mode 100644 index 0000000..0e146b7 Binary files /dev/null and b/Spritesheets/Flap.png differ diff --git a/Spritesheets/Hurt.png b/Spritesheets/Hurt.png new file mode 100644 index 0000000..d8eb9ce Binary files /dev/null and b/Spritesheets/Hurt.png differ diff --git a/Spritesheets/Idle.png b/Spritesheets/Idle.png new file mode 100644 index 0000000..458d456 Binary files /dev/null and b/Spritesheets/Idle.png differ diff --git a/Spritesheets/Jump.png b/Spritesheets/Jump.png new file mode 100644 index 0000000..e8b3d27 Binary files /dev/null and b/Spritesheets/Jump.png differ diff --git a/Spritesheets/Land.png b/Spritesheets/Land.png new file mode 100644 index 0000000..ae581f7 Binary files /dev/null and b/Spritesheets/Land.png differ diff --git a/Spritesheets/Roll.png b/Spritesheets/Roll.png new file mode 100644 index 0000000..3b57538 Binary files /dev/null and b/Spritesheets/Roll.png differ diff --git a/Spritesheets/Spin Attack.png b/Spritesheets/Spin Attack.png new file mode 100644 index 0000000..25ec68f Binary files /dev/null and b/Spritesheets/Spin Attack.png differ diff --git a/Spritesheets/Turn.png b/Spritesheets/Turn.png new file mode 100644 index 0000000..466d66e Binary files /dev/null and b/Spritesheets/Turn.png differ diff --git a/Spritesheets/Walk.png b/Spritesheets/Walk.png new file mode 100644 index 0000000..8b47407 Binary files /dev/null and b/Spritesheets/Walk.png differ diff --git a/House.png b/img/House.png similarity index 100% rename from House.png rename to img/House.png diff --git a/img/Penguin_Hover.png b/img/Penguin_Hover.png new file mode 100644 index 0000000..67dadd7 Binary files /dev/null and b/img/Penguin_Hover.png differ diff --git a/img/Penguin_Normal.png b/img/Penguin_Normal.png new file mode 100644 index 0000000..69e5ed3 Binary files /dev/null and b/img/Penguin_Normal.png differ diff --git a/Project_TrlStats.png b/img/Project_TrlStats.png similarity index 100% rename from Project_TrlStats.png rename to img/Project_TrlStats.png diff --git a/img/Screenshot 2025-02-17 164939.png b/img/Screenshot 2025-02-17 164939.png new file mode 100644 index 0000000..4495ec7 Binary files /dev/null and b/img/Screenshot 2025-02-17 164939.png differ diff --git a/img/controls.png b/img/controls.png new file mode 100644 index 0000000..47533fd Binary files /dev/null and b/img/controls.png differ diff --git a/img/favicon.ico b/img/favicon.ico new file mode 100644 index 0000000..54323ae Binary files /dev/null and b/img/favicon.ico differ diff --git a/house-interior.png b/img/house-interior.png similarity index 100% rename from house-interior.png rename to img/house-interior.png diff --git a/image-tree-1.png b/img/image-tree-1.png similarity index 100% rename from image-tree-1.png rename to img/image-tree-1.png diff --git a/img.png b/img/img.png similarity index 100% rename from img.png rename to img/img.png diff --git a/info-box-1-active.png b/img/info-box-1-active.png similarity index 100% rename from info-box-1-active.png rename to img/info-box-1-active.png diff --git a/info-box-1-inactive.png b/img/info-box-1-inactive.png similarity index 100% rename from info-box-1-inactive.png rename to img/info-box-1-inactive.png diff --git a/me.png b/img/me.png similarity index 100% rename from me.png rename to img/me.png diff --git a/menu-background-projects-1.png b/img/menu-background-projects-1.png similarity index 100% rename from menu-background-projects-1.png rename to img/menu-background-projects-1.png diff --git a/project-background-1.png b/img/project-background-1.png similarity index 100% rename from project-background-1.png rename to img/project-background-1.png diff --git a/project-background-2.png b/img/project-background-2.png similarity index 100% rename from project-background-2.png rename to img/project-background-2.png diff --git a/project-background-3.png b/img/project-background-3.png similarity index 100% rename from project-background-3.png rename to img/project-background-3.png diff --git a/quest-board-1.png b/img/quest-board-1.png similarity index 100% rename from quest-board-1.png rename to img/quest-board-1.png diff --git a/img/turn-device-sideways.png b/img/turn-device-sideways.png new file mode 100644 index 0000000..49152b3 Binary files /dev/null and b/img/turn-device-sideways.png differ diff --git a/index.html b/index.html index 9cf5802..808980b 100644 --- a/index.html +++ b/index.html @@ -42,7 +42,7 @@

TRLStats

An online javascript & python application that helps calculate damage stats for the Game 'The Red Lake'!

- TRLStats + TRLStats

TRLStats was my first project ever made, a damage calculator for the Roblox Game 'The Red Lake'. The Project is based on a python file, using the python library "Flask" to grab the data from JSON files, and then Javascript to display it.

diff --git a/script1.js b/script1.js index 516e9f8..cd7ba52 100644 --- a/script1.js +++ b/script1.js @@ -16,7 +16,7 @@ const detailsScrollStep = 30; let detailsMaxScroll = 0; let gameState = "outside"; const interiorBackground = new Image(); -interiorBackground.src = "house-interior.png"; +interiorBackground.src = "img/house-interior.png"; let lastInputTime = performance.now(); let isPaused = false; const MAP_WIDTH = 3000; @@ -26,7 +26,7 @@ const dialogOption1 = document.getElementById("dialog-option-1"); const dialogOption2 = document.getElementById("dialog-option-2"); const dialogOption3 = document.getElementById("dialog-option-3"); const menuBackground = new Image(); -menuBackground.src = "menu-background-projects-1.png"; +menuBackground.src = "img/menu-background-projects-1.png"; let menuVisible = false; const message = { x: 0, @@ -137,7 +137,7 @@ let camera = { //Trees const treeImage = new Image(); -treeImage.src = "image-tree-1.png"; +treeImage.src = "./img/image-tree-1.png"; const treeCount = 10; const treeWidth = 200; const treeHeight = 300; @@ -289,15 +289,11 @@ function drawCharacterBig() { function handlePhysics(deltaTime) { character.dy += gravity * (deltaTime / frameDuration); character.y += character.dy * (deltaTime / frameDuration); - - // Handle floor collision if (character.y + character.height > floorHeight) { character.y = floorHeight - character.height; character.dy = 0; isJumping = false; } - - // Update horizontal movement based on keyState if (keyState.ArrowRight) character.dx = character.speed * (deltaTime / frameDuration); if (keyState.ArrowLeft) character.dx = -character.speed * (deltaTime / frameDuration); if (keyState.d) character.dx = character.speed * (deltaTime / frameDuration); @@ -311,10 +307,7 @@ function moveCharacter() { } function updateCamera() { - // Center the camera on the character if you like: camera.x = character.x - camera.width / 2; - - // Clamp the camera so it doesn't go outside the world: if (camera.x < 0) camera.x = 0; if (camera.x + camera.width > MAP_WIDTH) { camera.x = MAP_WIDTH - camera.width; @@ -331,7 +324,6 @@ function handleInteractions() { }); } -//draw trees function drawSections() { trees.forEach((tree) => { ctx.drawImage( @@ -621,18 +613,18 @@ const house = { }; const NPCImage = new Image(); -NPCImage.src = 'me.png'; +NPCImage.src = 'img/me.png'; NPC.texture = NPCImage const houseImage = new Image(); -houseImage.src = 'House.png'; +houseImage.src = 'img/House.png'; house.texture = houseImage; const inactiveImage = new Image(); -inactiveImage.src = 'info-box-1-inactive.png'; +inactiveImage.src = 'img/info-box-1-inactive.png'; const activeImage = new Image(); -activeImage.src = 'info-box-1-active.png'; +activeImage.src = 'img/info-box-1-active.png'; questionBlock.texture = inactiveImage; const questBoardImage = new Image(); -questBoardImage.src = 'quest-board-1.png' +questBoardImage.src = 'img/quest-board-1.png' questBoard.texture = questBoardImage let particles = [];