Escape Room Creator was a side project I did whenever I had free time. This is a place where you can create your own online escape rooms. You have the ability to create blocks, program them, and modify it's properties.
- Program new sprites
- Good way to learn programming
This will provide a short tutorial on how to use Escape Room Creator and the features it has.
One of the core features of Escape Room Creator are blocks.
There are 2 different ways to make a sprite:
- Pressing the
Create Block
button. - Loading a sprite from a
.json
file.
To change the properties of your Block, you need to select it Changing the properties of your Blocks allows you to change the appearance and position. Some of the main properties that are crucial for your Escape Room is:
x
X Coords for the blocky
Y Coords for the blockwidth
Your block's widthheight
Your block's heightimgID
If you want your block to have a custom appearance (You can only get image urls.)
In order to make youe Onclick Script
to work, you need to add a click detector to your Block:
- Select your Block from the explorer
- Press Add Click Detector
- You should have a click detector now
In order to remove a Block from your Escape Room:
- Select your Block from the explorer
- From the top bar, press Delete Block
- Your Block should be Deleted
You can program your blocks to have more customization over your blocks, allowing for a more advanced Escape Room.
There are different types of scripts that have different functionalities:
General Script
General script that fires once whenplay
is pressedForever Script
Forever script that runs 60FPS Max (depends on your browser). This is usually used for movements.Onclick Script
This script is only fired when the block is clicked (Can be used as clues for your escape room)
In order to save your script to make sure it is fired, you need to know how to save your script to your block.
- When your finished with your script, go to explorer (Should be on the left)
- Find the block you want to save to (inside the explorer) and select it
- Once you selected it, below your script, press Save
In order to retrieve your scripts from the block, you need to know how to load it from the block.
- Find the block you want to load from inside the explorer
- Select it
- Once you selected it, find the specific script type in the script editors below
- In your selected script type script editor, press load.
- The script with that code should be loaded into the editor.
- (MAKE SURE YOU SAVED THE CODE TO YOUR SPRITE BEFORE LOADING ANOTHER SCRIPT)
In order to keep your progress, you need to know how to save and load.
To save, you need to do the following:
- In the top bar, press save
- Once your press save, it will prompt you to download a
.json
file - You have saved it
In order to load youe Save File, do the following:
- In the top bar, press load
- Once you press load, it will prompt you to select your
.json
save file - You have successfully loaded your save file
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.
x
y
width
height
anchored
color
mass
imgID
flipHorizontally
flipVertically
- (To program something and change properties of the sprite that your programming into, make sure to use
this
. E.g:this.x
findObjectByName(classNameToFind)
(Used to find and gives the ability to change the properties of another sprite). E.G:let lol = this.findObjectByName('block2'); lol.x += 5
movementDefault()
update()
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")
loadSound(url)
(Used to load a sound)playSound(url, volume = 1.0)
(Used to play a sound)
createParticle(x, y, velocityX, velocityY, lifetime)
Used to create a particle at a location, with a velocitycreateRandomParticle(x, y, lifetime)
Create a random particle at a location with a random velocityupdateParticles()
Used to update the particlesrenderParticles(context, color)
Used to render the particles.
constructor(imageArray)
Provide it with an image array (the animation keyframes)
playOnSprite(targetSprite)
Play on a spritestop()
Stop animsetFrame(frameIndex)
Set Frame
- Ability to Export your game as a .zip file (so that you can play your game on other sites other than the escape room creator)
- File explorer so you can have a proper way to store the images locally