42 lines
2.1 KiB
Markdown
42 lines
2.1 KiB
Markdown
# Room 098: Transitional Room
|
|
|
|
This is a simple transitional room that automatically moves the player to room 698 after a brief delay. The player enters from the left side and walks across the screen while a timer counts down. This appears to be a bridge or cutscene transition between areas.
|
|
|
|
## Look Description
|
|
|
|
This room has no interactive elements or distinct look description. It serves purely as a transitional space where the player character automatically walks across the screen before the game advances to the next room (698). The lack of a handleEvent method means no player interactions are possible in this room.
|
|
|
|
## Interactions
|
|
|
|
This room has no interactions defined. The player cannot look at, get, or interact with anything in this room.
|
|
|
|
## Scripts
|
|
|
|
| Status | Behavior Type | Name | Trigger | Behavior |
|
|
|--------|--------------|------|---------|----------|
|
|
| TODO | Background | AutoWalk | Room initialization | Player enters at position (20, 99) and automatically walks to (300, 100) using MoveTo motion and Fwd cycle |
|
|
| TODO | Background | TimerTransition | After global222 > local0 | Tracks frames elapsed (global222), adjusts game speed (global223), and transitions to room 698 when timer expires |
|
|
|
|
## Technical Notes
|
|
|
|
- **Room Number**: 98
|
|
- **Picture**: 991
|
|
- **Style**: $0006 (fade effect)
|
|
- **Exits**: Automatic transition to room 698 after timer expires
|
|
|
|
### State Variables
|
|
|
|
| Variable | Values | Description |
|
|
|----------|--------|-------------|
|
|
| `global222` | incrementing counter | Tracks number of frames since entering the room |
|
|
| `local0` | computed value (60 + initial time) | Threshold value for timer; set on first frame |
|
|
| `global223` | 0, 1, 2 | Controls game speed during transition: 0 (fast) for first 30 frames, 1 (medium) for frames 30-60, 2 (normal) after 60 frames |
|
|
|
|
### Timing Logic
|
|
|
|
The transition timing works as follows:
|
|
1. On first frame (global222 = 1): local0 is set to current time + 60
|
|
2. Each subsequent frame: global222 increments
|
|
3. When current time exceeds local0: transition to room 698
|
|
4. During transition: game speed changes based on how much time has passed (affects animation smoothness)
|