Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdevgame authored Jun 6, 2024
1 parent 25e7fdd commit a01b19d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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:
Expand Down

0 comments on commit a01b19d

Please sign in to comment.