CREATIVE NOTES / CODING & PLAYFUL LEARNING
Why Does the Floor Open Before You Step on the Gap? Three Triggers in Trapdoor Trials
The floor opens while your feet are still short of the gap. In another room, you can wait on the bank and watch a platform slide by. Both changes happen near your feet, and each begins under a different condition. This editorial observation looks at the rooms and rules of Trapdoor Trials, the version of Level Devil featured in Monica Arcade.
First step opens a gap at a position threshold
The first room is called First step. The program places a trigger line to the left of the gap. At each check, it looks at the right edge of the character. The gap stays closed while that edge is short of the line. Once the edge reaches the line, the floor opens, even if the character is in the air. The gap stays open for that attempt, so you will still see it if you go back.
Keep moving starts a timer on the first landing
In room twelve, Keep moving, the platform waits for the first landing. The program records the room time at that moment, then checks how much time has passed. After about a quarter of a second, the platform stops supporting the character. Imagine waiting on the bank first. The platform timer has yet to start because the first landing is still ahead. Once you land, the timer keeps running even if you jump away immediately.
Drifting ledge moves as soon as the room runs
In room fourteen, Drifting ledge, the platform moves back and forth with elapsed room time. It keeps moving while the character stands on the bank. Once the character is supported by the platform, the program moves the character sideways by the same amount as the platform for that step. Look at the platform at two different moments to see how arriving a little earlier or later changes where you can land.
The same wait can start at different moments
Put the three rooms side by side and imagine the character standing still on each bank. The first room waits for the character to reach a line. Room twelve waits for a landing. In room fourteen, movement is already underway with the room. Now picture the character crossing the first room’s line in the air. The gap opens in that case as well. By changing one condition at a time, you can connect what changes on screen to what the program checks. A retry restores the room’s starting conditions so you can watch again.
Predict what happens next with three small drawings
Try a paper exercise. In the first drawing, sketch the floor, put a dashed line before the gap and mark the character’s right edge. In the second, draw a platform and write “start the timer” at the first landing. In the third, show the same moving platform at two different times. Let the character wait in each drawing. Then try crossing the line or landing, and circle the event that changes the surface. You can compare your predictions with the rooms in the game.
Two more questions
Do I have to step on the gap for the floor to open?
The program checks whether the character’s right edge has reached a line before the gap. Reaching that line in the air opens the gap as well.
Does jumping off the platform restart the timer in Keep moving?
The timer starts on the first landing of that attempt. It keeps running after you jump away. Retrying the room restores the state before the first landing.
Explore the project
Prepared by the portfolio editorial team from the project rules and existing code, with AI assistance on the Chinese and English editions. The play exercises and rule analysis are editorial.