From a01b19d0a544bc98e2f7317439eb865d42131ce0 Mon Sep 17 00:00:00 2001 From: JCGameDev <95277271+jcdevgame@users.noreply.github.com> Date: Thu, 6 Jun 2024 18:05:12 -0400 Subject: [PATCH] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0484f85..7c7b508 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,9 @@ Escape Room Creator was a side project I did whenever I had free time. This is a - Good way to learn programming ## Documentation: +All of these different classes with their methods, properties, will become incredibly useful when you decide to program something using Escape Room Creator, and I will highly recommend doing that. -### Sprite Class +### Sprite Class: #### Properties: - `x` - `y` @@ -24,23 +25,23 @@ Escape Room Creator was a side project I did whenever I had free time. This is a - `movementDefault()` - `update()` -### InputManager +### InputManager: #### Methods: - `isKeyPressed(key)` (Check if a key is pressed, it returns a true/false statement, so it can be used in an if statement: if (this.inputManager.isKeyPressed("w") -### AudioManager +### AudioManager: #### Methods: - `loadSound(url)` (Used to load a sound) - `playSound(url, volume = 1.0)` (Used to play a sound) -### ParticleManager +### ParticleManager: #### Methods: - `createParticle(x, y, velocityX, velocityY, lifetime)` Used to create a particle at a location, with a velocity - `createRandomParticle(x, y, lifetime)` Create a random particle at a location with a random velocity - `updateParticles()` Used to update the particles - `renderParticles(context, color)` Used to render the particles. -### Animation +### Animation: #### Constructor: `constructor(imageArray)` Provide it with an image array (the animation keyframes) #### Methods: