Skip to content

Commit 85a8797

Browse files
committed
Added 'life' demo
1 parent b9849cc commit 85a8797

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

resources/ecs/main.ecs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
module AboutModule
3131
module PhilosophyModule
3232
module ContactModule
33+
module LifeModule
3334
module CurrentModule
3435
variable Script
3536
variable ButtonStyle
@@ -58,6 +59,7 @@
5859
set style `display` of Body to `block`
5960
send `resume` to CurrentModule
6061
end
62+
else if Message is `life` go to ShowLife
6163
end
6264

6365
BuildPage:
@@ -109,6 +111,8 @@ BuildPage:
109111
run Script with ShowdownModule as PhilosophyModule
110112
rest get Script from `/resources/ecs/contact.ecs`
111113
run Script with ShowdownModule as ContactModule
114+
rest get Script from `/resources/ecs/life.ecs`
115+
run Script with ShowdownModule as LifeModule
112116

113117
alias CurrentModule to HomeModule
114118
send to HomeModule
@@ -249,11 +253,17 @@ RunCodex:
249253
run Script
250254
stop
251255

256+
ShowLife:
257+
gosub to DeselectAllButtons
258+
send `pause` to CurrentModule
259+
alias CurrentModule to LifeModule
260+
send to LifeModule
261+
stop
252262

253263
DeselectAllButtons:
254264
set style `background` of HomeButton to ``
255265
set style `background` of IntroButton to ``
256266
set style `background` of ExamplesButton to ``
257267
set style `background` of AboutButton to ``
258268
set style `background` of PhilosophyButton to ``
259-
return
269+
return

0 commit comments

Comments
 (0)