The yellow room and a door between two rooms

This commit is contained in:
He4eT 2019-11-05 02:35:25 +05:00
commit d87ad915a7
3 changed files with 32 additions and 0 deletions

View file

@ -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"

View file

@ -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
View 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>"
;