Red-Cube-Escape

image-welcome

Intro

This sci-fi room escape game is based on A-Frame, because it can be ”developed from a plain HTML file without having to install anything“.

Aframe version: 1.0.4

Live Red-Cube-Escape Game: Link

Tested on: Safari Google Chrome Safari Mobile Chrome Mobile

Developer:

| [
Xiaoyu Lu](https://github.com/Xiaoyu-Lu)
| | ———————————————————— |

Date : 2020/11/26

Game Design

game-design

Installation

Online editor

N.B.: If you choose to remix on the online code editors, you might have to change some paths.

  1. Scripts. e.g. from <script src="libs/aframe.min.js"></script> to <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>

    Below are the scripts (version included) you might have to change to:

     <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
     <script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v6.1.1/dist/aframe-extras.min.js"></script>
     <script src="https://unpkg.com/aframe-physics-system@1.4.0/dist/aframe-physics-system.min.js"></script>
     <script src="https://unpkg.com/aframe-animation-component@3.2.5/dist/aframe-animation-component.min.js"></script>
     <script src="https://unpkg.com/aframe-extras.ocean@%5E3.5.x/dist/aframe-extras.ocean.min.js"></script>
     <script src="https://unpkg.com/aframe-event-set-component@5/dist/aframe-event-set-component.min.js"></script>
     <script src="https://unpkg.com/aframe-template-component@3.2.1/dist/aframe-template-component.min.js"></script>
     <script src="https://unpkg.com/aframe-proxy-event-component@2.1.0/dist/aframe-proxy-event-component.min.js"></script>
     <script src="https://unpkg.com/aframe-text-geometry-component@^0.5.0/dist/aframe-text-geometry-component.min.js"></script>
     <script src="https://unpkg.com/aframe-particle-system-component@1.0.x/dist/aframe-particle-system-component.min.js"></script>
    
  2. Assets. You might need to change the path of assets. For Glitch, you can upload assets, copy the URL, and use it in the code.

    image-aframe-asset

Walk Through (version 0.0.0)

image-start

The scene is inspired by a science-fiction horror movie called Cube. The mission of the player is to escape from the cube/room.

1. Layout

If you click the big cube in the middle, the room will go red for a second, and the cube rotates itself. Looking around, two giant red rotating spheres and those floating cubes provide a weird atmosphere to the scene. You need to get out of the room!

2. Cursor & mouse

If the object is clickable, the color of the cursor will change from black to yellow.

cursor-color-channge

When the mouse(i.e., a hand icon in PC) hovering over some clickable/unclickable objects, they might disappear or change colors/scale.

floatig-cube-disappear

3. Riddle

Randomly click a floating cube, a hidden riddle might show up. There are three lines; each refers to a clue.

3.1 Riddle Line1: Under the Ocean

On the ocean, a yellow cylinder flows up and down. When your mouse hovers over it, a prompt said: “See through Sea”. Click it. You could see everything “under the ocean”. The first line solved!

prompt-yellowbutton

under-the-sea

Let’s check the second line. It told you to “worship MOONLIGHT”. Considering that the moonlight only exists at night, you probably need the night scene and a moon.

3.2 Riddle Line2: Worship the Moonlight

Let’s find the mystery “under the ocean”!

While investigating those cubes, you find a cube changed its color to blue with a “Night is coming” prompt. It must be something important. Click it. The sky suddenly becomes dark.

change-night-scene

You look around and see the moon swirling. You rush to it to see closer. It becomes larger when you mouse hovering above it.

swirling-moob

There’s no harm to click it, it won’t explode. And a Portal with a text “Space” appears in the sky.

image-moon-click-portal

Let’s go through the portal “Space”!

3.3 Riddle Line3: Fight in the Space

Something is emitting out of the giant celestial object. An alien is approaching. What should you do? Stand still?

space-layout

Again, there’s no harm to click the alien, it won’t kill you.

image-quote-prompt

A revised quote of Oscar Wilde shows up in the middle of nowhere:

“Some of us are looking at the stars, but all of us are all in the gutter.”

” We are all in the gutter, but some of us are looking at the stars.” - Oscar Wilde

Of course, this esoteric clue is not hard for you.

(Look up, nothing!)

Look down, a Portal to another room!

Yes, you did it! Congrats!

Bugs

There’re two identified bugs.

  1. The ocean should be impenetrable.

    (Solved by changing the fly in movement-controls to false)

  2. Some properties of the hidden object should be removed (e.g. the hidden portal shouldn't be functional).

    (Solved in version 0.0.1. Instead of using <a-link> to create a portal, I use an entity with a customized URL-assign function that is aligned with the object’s visibility.)