mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-05 00:57:22 +00:00
The yellow room and a door between two rooms
This commit is contained in:
parent
da76e65857
commit
d87ad915a7
3 changed files with 32 additions and 0 deletions
|
|
@ -42,5 +42,6 @@ gameMain: GameMainDef
|
||||||
;
|
;
|
||||||
|
|
||||||
#include "src/room/orangeRoom.t"
|
#include "src/room/orangeRoom.t"
|
||||||
|
#include "src/room/yellowRoom.t"
|
||||||
|
|
||||||
#include "src/actor/pc.t"
|
#include "src/actor/pc.t"
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,20 @@ orangeRoom: DarkRoom
|
||||||
The room contains
|
The room contains
|
||||||
an ascetic bed
|
an ascetic bed
|
||||||
and a desk against the east wall."
|
and a desk against the east wall."
|
||||||
|
south = orangeDoor
|
||||||
;
|
;
|
||||||
|
|
||||||
|
/* Doors */
|
||||||
|
|
||||||
|
+ orangeDoor:
|
||||||
|
Door
|
||||||
|
'white sliding door'
|
||||||
|
'sliding door'
|
||||||
|
"White sliding door in south wall.<br>"
|
||||||
|
isListed = true;
|
||||||
|
|
||||||
|
/* Lights */
|
||||||
|
|
||||||
+ OnOffControl, Fixture
|
+ OnOffControl, Fixture
|
||||||
'small luminous switch/light/lights'
|
'small luminous switch/light/lights'
|
||||||
'small luminous switch'
|
'small luminous switch'
|
||||||
|
|
@ -29,6 +41,7 @@ orangeRoom: DarkRoom
|
||||||
makeOn (val) {
|
makeOn (val) {
|
||||||
inherited(val);
|
inherited(val);
|
||||||
location.brightness = val ? 3 : 0;
|
location.brightness = val ? 3 : 0;
|
||||||
|
isListed = val ? nil : true;
|
||||||
|
|
||||||
val
|
val
|
||||||
? "You hear slight hum of neon lamps, followed with bright light."
|
? "You hear slight hum of neon lamps, followed with bright light."
|
||||||
|
|
@ -42,6 +55,8 @@ orangeRoom: DarkRoom
|
||||||
"Ordinary neon lamps emit cold light."
|
"Ordinary neon lamps emit cold light."
|
||||||
;
|
;
|
||||||
|
|
||||||
|
/* Content */
|
||||||
|
|
||||||
+ Decoration
|
+ Decoration
|
||||||
'orange digits/number'
|
'orange digits/number'
|
||||||
'orange number'
|
'orange number'
|
||||||
|
|
|
||||||
16
src/room/yellowRoom.t
Normal file
16
src/room/yellowRoom.t
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
yellowRoom: Room
|
||||||
|
'Yellow room'
|
||||||
|
" This is another room which every surface
|
||||||
|
covered with matte white panels.
|
||||||
|
<.p>
|
||||||
|
There is a door in the north direction."
|
||||||
|
north = orangeDoorOutside
|
||||||
|
;
|
||||||
|
|
||||||
|
/* Doors */
|
||||||
|
|
||||||
|
+ orangeDoorOutside: Door -> orangeDoor
|
||||||
|
'sliding door'
|
||||||
|
'door number <<gameMain.experimentNumber>>'
|
||||||
|
"Door number <<gameMain.experimentNumber>>.<br>"
|
||||||
|
;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue