webtalekit-alpha 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +145 -70
- package/package.json +10 -2
- package/parser/checker.js +184 -0
- package/parser/checker.test.ts +491 -0
- package/parser/cli.js +34 -2
- package/parser/parser.js +25 -18
- package/src/core/defaultUIHandler.js +309 -0
- package/src/core/defaultUIHandler.js.map +1 -0
- package/{dist/src → src}/core/drawer.js +65 -40
- package/src/core/drawer.js.map +1 -0
- package/{dist/src → src}/core/index.js +188 -257
- package/{dist/src → src}/core/scenarioManager.js +29 -7
- package/src/core/scenarioManager.js.map +1 -0
- package/src/utils/eventBus.js +88 -0
- package/src/utils/eventBus.js.map +1 -0
- package/{dist/src → src}/utils/logger.js +45 -1
- package/src/utils/logger.js.map +1 -0
- package/{dist/src → src}/utils/store.js +5 -0
- package/src/utils/store.js.map +1 -0
- package/.claude/settings.local.json +0 -12
- package/.clinerules +0 -65
- package/.history/README_20240812174230.md +0 -193
- package/.history/README_20240812175424.md +0 -185
- package/.history/README_20240812191012.md +0 -185
- package/.history/README_20240812191155.md +0 -185
- package/.history/README_20240812191211.md +0 -185
- package/.history/README_20240812192035.md +0 -185
- package/.history/dist/src/core/index_20240815021552.js +0 -474
- package/.history/dist/src/core/index_20240815022042.js +0 -476
- package/.history/dist/src/core/index_20240815022206.js +0 -476
- package/.history/dist/src/core/index_20240815023104.js +0 -478
- package/.history/dist/src/core/index_20240817022019.js +0 -494
- package/.history/dist/src/core/index_20240818013827.js +0 -493
- package/.history/dist/src/core/index_20240820001418.js +0 -502
- package/.history/package_20240812174230.json +0 -45
- package/.history/package_20240825011731.json +0 -45
- package/.history/package_20240825011739.json +0 -44
- package/.history/parser/parser_20240812174230.js +0 -50
- package/.history/parser/parser_20240825012739.js +0 -47
- package/.history/parser/parser_20240825012835.js +0 -52
- package/.history/src/core/drawer_20240813091343.ts +0 -262
- package/.history/src/core/drawer_20240815232345.ts +0 -262
- package/.history/src/core/drawer_20240815232350.ts +0 -262
- package/.history/src/core/drawer_20240816025257.ts +0 -357
- package/.history/src/core/drawer_20240816025358.ts +0 -357
- package/.history/src/core/drawer_20240816030148.ts +0 -365
- package/.history/src/core/drawer_20240816231033.ts +0 -294
- package/.history/src/core/drawer_20240816231107.ts +0 -262
- package/.history/src/core/drawer_20240816231234.ts +0 -268
- package/.history/src/core/drawer_20240817013836.ts +0 -290
- package/.history/src/core/drawer_20240817015150.ts +0 -289
- package/.history/src/core/drawer_20240817015353.ts +0 -290
- package/.history/src/core/drawer_20240817021254.ts +0 -291
- package/.history/src/core/drawer_20240817023440.ts +0 -295
- package/.history/src/core/drawer_20240817023445.ts +0 -295
- package/.history/src/core/drawer_20240818015327.ts +0 -295
- package/.history/src/core/drawer_20240819231006.ts +0 -318
- package/.history/src/core/drawer_20240820002829.ts +0 -317
- package/.history/src/core/drawer_20240820003141.ts +0 -295
- package/.history/src/core/drawer_20240824010043.ts +0 -295
- package/.history/src/core/drawer_20240825013311.ts +0 -293
- package/.history/src/core/drawer_20240902235257.ts +0 -295
- package/.history/src/core/drawer_20240904002038.ts +0 -262
- package/.history/src/core/drawer_20240904004020.ts +0 -262
- package/.history/src/core/drawer_20240904004238.ts +0 -262
- package/.history/src/core/drawer_20240904005648.ts +0 -262
- package/.history/src/core/drawer_20240904005808.ts +0 -262
- package/.history/src/core/drawer_20240904010523.ts +0 -262
- package/.history/src/core/drawer_20240904011611.ts +0 -262
- package/.history/src/core/drawer_20240904011740.ts +0 -262
- package/.history/src/core/index_20240812190102.js +0 -443
- package/.history/src/core/index_20240812190105.js +0 -443
- package/.history/src/core/index_20240812205421.js +0 -452
- package/.history/src/core/index_20240812213441.js +0 -452
- package/.history/src/core/index_20240812214203.js +0 -453
- package/.history/src/core/index_20240813090823.js +0 -453
- package/.history/src/core/index_20240813230449.js +0 -452
- package/.history/src/core/index_20240813230539.js +0 -452
- package/.history/src/core/index_20240813231447.js +0 -453
- package/.history/src/core/index_20240813231449.js +0 -453
- package/.history/src/core/index_20240813231511.js +0 -453
- package/.history/src/core/index_20240813231531.js +0 -453
- package/.history/src/core/index_20240813231913.js +0 -453
- package/.history/src/core/index_20240813232356.js +0 -453
- package/.history/src/core/index_20240813232640.js +0 -453
- package/.history/src/core/index_20240813232900.js +0 -453
- package/.history/src/core/index_20240814221127.js +0 -454
- package/.history/src/core/index_20240814221322.js +0 -454
- package/.history/src/core/index_20240814221526.js +0 -454
- package/.history/src/core/index_20240814222048.js +0 -454
- package/.history/src/core/index_20240814222918.js +0 -459
- package/.history/src/core/index_20240814223136.js +0 -459
- package/.history/src/core/index_20240814223501.js +0 -464
- package/.history/src/core/index_20240814224347.js +0 -468
- package/.history/src/core/index_20240815013712.js +0 -474
- package/.history/src/core/index_20240815021534.js +0 -474
- package/.history/src/core/index_20240815023143.js +0 -477
- package/.history/src/core/index_20240815023207.js +0 -479
- package/.history/src/core/index_20240815023344.js +0 -481
- package/.history/src/core/index_20240815035600.js +0 -479
- package/.history/src/core/index_20240815041549.js +0 -480
- package/.history/src/core/index_20240815185515.js +0 -481
- package/.history/src/core/index_20240815192158.js +0 -481
- package/.history/src/core/index_20240815222912.js +0 -482
- package/.history/src/core/index_20240815224052.js +0 -483
- package/.history/src/core/index_20240815224843.js +0 -484
- package/.history/src/core/index_20240815224850.js +0 -483
- package/.history/src/core/index_20240815231706.js +0 -479
- package/.history/src/core/index_20240816025748.js +0 -483
- package/.history/src/core/index_20240816030102.js +0 -484
- package/.history/src/core/index_20240817013329.js +0 -485
- package/.history/src/core/index_20240817013526.js +0 -485
- package/.history/src/core/index_20240817013819.js +0 -488
- package/.history/src/core/index_20240817013829.js +0 -488
- package/.history/src/core/index_20240817014921.js +0 -494
- package/.history/src/core/index_20240817022057.js +0 -494
- package/.history/src/core/index_20240817023316.js +0 -493
- package/.history/src/core/index_20240818005637.js +0 -493
- package/.history/src/core/index_20240818005721.js +0 -493
- package/.history/src/core/index_20240818011804.js +0 -493
- package/.history/src/core/index_20240818013835.js +0 -493
- package/.history/src/core/index_20240818014310.js +0 -493
- package/.history/src/core/index_20240818014323.js +0 -493
- package/.history/src/core/index_20240818014333.js +0 -493
- package/.history/src/core/index_20240818020725.js +0 -496
- package/.history/src/core/index_20240819195504.js +0 -497
- package/.history/src/core/index_20240819202012.js +0 -495
- package/.history/src/core/index_20240819231228.js +0 -501
- package/.history/src/core/index_20240819232555.js +0 -502
- package/.history/src/core/index_20240819233404.js +0 -502
- package/.history/src/core/index_20240820003114.js +0 -495
- package/.history/src/core/index_20240820003120.js +0 -495
- package/.history/src/core/index_20240820003331.js +0 -495
- package/.history/src/core/index_20240820004126.js +0 -498
- package/.history/src/core/index_20240820004357.js +0 -497
- package/.history/src/core/index_20240820005103.js +0 -498
- package/.history/src/core/index_20240820005110.js +0 -499
- package/.history/src/core/index_20240820005206.js +0 -497
- package/.history/src/core/index_20240820005352.js +0 -497
- package/.history/src/core/index_20240823224904.ts +0 -505
- package/.history/src/core/index_20240823224905.js +0 -505
- package/.history/src/core/index_20240823231631.ts +0 -530
- package/.history/src/core/index_20240823231735.ts +0 -530
- package/.history/src/core/index_20240823232123.ts +0 -539
- package/.history/src/core/index_20240823232329.ts +0 -539
- package/.history/src/core/index_20240823233058.ts +0 -539
- package/.history/src/core/index_20240823234946.ts +0 -539
- package/.history/src/core/index_20240824005956.ts +0 -534
- package/.history/src/core/index_20240824010113.ts +0 -534
- package/.history/src/core/index_20240824010124.ts +0 -534
- package/.history/src/core/index_20240824010212.ts +0 -534
- package/.history/src/core/index_20240824010218.ts +0 -534
- package/.history/src/core/index_20240824010407.ts +0 -534
- package/.history/src/core/index_20240824010611.ts +0 -534
- package/.history/src/core/index_20240824010623.ts +0 -534
- package/.history/src/core/index_20240824010652.ts +0 -534
- package/.history/src/core/index_20240824011007.ts +0 -534
- package/.history/src/core/index_20240824210450.ts +0 -534
- package/.history/src/core/index_20240824210703.ts +0 -534
- package/.history/src/core/index_20240824210708.ts +0 -534
- package/.history/src/core/index_20240824211001.ts +0 -537
- package/.history/src/core/index_20240824211258.ts +0 -537
- package/.history/src/core/index_20240824211654.ts +0 -537
- package/.history/src/core/index_20240824211723.ts +0 -537
- package/.history/src/core/index_20240824211808.ts +0 -538
- package/.history/src/core/index_20240824214041.js +0 -538
- package/.history/src/core/index_20240824215312.ts +0 -538
- package/.history/src/core/index_20240824215341.ts +0 -538
- package/.history/src/core/index_20240824220703.ts +0 -538
- package/.history/src/core/index_20240824220709.ts +0 -538
- package/.history/src/core/index_20240825012244.ts +0 -536
- package/.history/src/core/index_20240825012435.ts +0 -539
- package/.history/src/core/index_20240825012440.ts +0 -539
- package/.history/src/core/index_20240826005054.ts +0 -539
- package/.history/src/core/index_20240826005321.ts +0 -540
- package/.history/src/core/index_20240826005410.ts +0 -539
- package/.history/src/core/index_20240826005418.ts +0 -539
- package/.history/src/core/index_20240830231825.ts +0 -539
- package/.history/src/core/index_20240831022416.ts +0 -539
- package/.history/src/core/index_20240901222314.js +0 -459
- package/.history/src/core/index_20240901222951.js +0 -459
- package/.history/src/core/index_20240901223824.js +0 -471
- package/.history/src/core/index_20240901223833.js +0 -468
- package/.history/src/core/index_20240902223954.js +0 -447
- package/.history/src/core/index_20240902224000.js +0 -446
- package/.history/src/core/index_20240902230345.js +0 -448
- package/.history/src/core/index_20240902231130.js +0 -449
- package/.history/src/core/index_20240902231559.js +0 -449
- package/.history/src/core/index_20240902232135.js +0 -449
- package/.history/src/core/index_20240902232809.js +0 -452
- package/.history/src/core/index_20240902232815.js +0 -452
- package/.history/src/core/index_20240903000104.js +0 -467
- package/.history/src/core/index_20240904001731.js +0 -444
- package/.history/src/core/index_20240904002038.ts +0 -539
- package/.history/src/core/index_20240904011848.js +0 -444
- package/.history/src/core/index_20240904012138.js +0 -444
- package/.history/src/core/index_20240904012743.js +0 -444
- package/.history/src/core/index_20240904013051.js +0 -444
- package/.history/src/core/resourceManager_20240403231531.ts +0 -16
- package/.history/src/core/resourceManager_20240823232627.ts +0 -17
- package/.history/src/core/resourceManager_20240824214014.js +0 -16
- package/.history/src/core/resourceManager_20240824214620.js +0 -17
- package/.history/src/core/scenarioManager_20240812203410.ts +0 -86
- package/.history/src/core/scenarioManager_20240812203839.ts +0 -94
- package/.history/src/core/scenarioManager_20240812213437.ts +0 -85
- package/.history/src/core/scenarioManager_20240813225852.ts +0 -85
- package/.history/src/core/scenarioManager_20240823235010.ts +0 -85
- package/.history/src/core/scenarioManager_20240904002038.ts +0 -94
- package/.history/src/core/scenarioManager_20240904012411.ts +0 -94
- package/.history/src/core/scenarioManager_20240904012519.ts +0 -94
- package/.history/src/index_20240403231531.js +0 -6
- package/.history/src/index_20240429233436.js +0 -8
- package/.history/src/index_20240429233926.js +0 -8
- package/.history/src/index_20240429234401.js +0 -7
- package/.history/src/index_20240429234404.js +0 -6
- package/.history/src/resource/soundObject_20240419004314.ts +0 -71
- package/.history/src/resource/soundObject_20240815034420.ts +0 -66
- package/.history/src/resource/soundObject_20240815034836.ts +0 -79
- package/.history/src/resource/soundObject_20240815034919.ts +0 -87
- package/.history/src/resource/soundObject_20240815040724.ts +0 -81
- package/.history/src/resource/soundObject_20240815041022.ts +0 -87
- package/.history/src/resource/soundObject_20240815042103.ts +0 -87
- package/.history/src/resource/soundObject_20240823235929.ts +0 -91
- package/.history/src/resource/soundObject_20240824213129.ts +0 -99
- package/.history/src/resource/soundObject_20240824213611.ts +0 -101
- package/.history/src/resource/soundObject_20240824215734.ts +0 -101
- package/.history/src/resource/soundObject_20240825004926.ts +0 -101
- package/.history/src/resource/soundObject_20240825004947.ts +0 -101
- package/.history/src/utils/logger_20240812174230.ts +0 -13
- package/.history/src/utils/logger_20240823232736.ts +0 -14
- package/.history/src/utils/logger_20240824214930.js +0 -14
- package/.history/src/utils/store_20240812174230.ts +0 -17
- package/.history/src/utils/store_20240823232948.ts +0 -29
- package/.history/src/utils/store_20240824214020.js +0 -17
- package/.history/src/utils/store_20240824214955.js +0 -29
- package/.history/src/utils/waitUtil_20240812174230.ts +0 -4
- package/.history/src/utils/waitUtil_20240823232739.ts +0 -4
- package/.history/src/utils/waitUtil_20240824214024.js +0 -4
- package/.history/src/utils/waitUtil_20240824215009.js +0 -4
- package/.history/test/js/title_20240428215305.js +0 -254
- package/.history/test/js/title_20240429221911.js +0 -227
- package/.history/test/js/title_20240429222806.js +0 -243
- package/.history/test/js/title_20240429222854.js +0 -263
- package/.history/test/js/title_20240429222906.js +0 -263
- package/.history/test/js/title_20240429235639.js +0 -263
- package/.history/test/js/title_20240429235840.js +0 -263
- package/.history/test/js/title_20240430014721.js +0 -262
- package/.history/test/js/title_20240430014759.js +0 -254
- package/.history/test/js/title_20240430134612.js +0 -285
- package/.history/test/js/title_20240430141051.js +0 -285
- package/.history/test/js/title_20240430173745.js +0 -245
- package/.history/tsconfig_20240812174230.json +0 -22
- package/.history/tsconfig_20240824010157.json +0 -19
- package/.history/tsconfig_20240824220700.json +0 -20
- package/.history/tsconfig_20240825011301.json +0 -20
- package/.history/webpack.config_20240423002825.js +0 -37
- package/.history/webpack.config_20240430001157.js +0 -38
- package/.history/webpack.config_20240430001309.js +0 -37
- package/.history/webpack.config_20240430002112.js +0 -37
- package/CLAUDE.md +0 -96
- package/LICENSE +0 -21
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/core/drawer.ts.html +0 -1264
- package/coverage/lcov-report/core/index.html +0 -146
- package/coverage/lcov-report/core/resourceManager.ts.html +0 -136
- package/coverage/lcov-report/core/scenarioManager.ts.html +0 -373
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -146
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/resource/ImageObject.ts.html +0 -433
- package/coverage/lcov-report/resource/index.html +0 -131
- package/coverage/lcov-report/resource/soundObject.ts.html +0 -346
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/utils/TextMeasurer.ts.html +0 -520
- package/coverage/lcov-report/utils/index.html +0 -161
- package/coverage/lcov-report/utils/logger.ts.html +0 -142
- package/coverage/lcov-report/utils/store.ts.html +0 -151
- package/coverage/lcov-report/utils/waitUtil.ts.html +0 -97
- package/coverage/lcov.info +0 -882
- package/dist/README.md +0 -294
- package/dist/engineConfig.json +0 -10
- package/dist/package.json +0 -51
- package/dist/parser/cli.js +0 -61
- package/dist/parser/parser.js +0 -53
- package/dist/src/core/drawer.js.map +0 -1
- package/dist/src/core/scenarioManager.js.map +0 -1
- package/dist/src/utils/logger.js.map +0 -1
- package/dist/src/utils/store.js.map +0 -1
- package/dist/webtalekit-alpha-0.2.13.tgz +0 -0
- package/docs/event-system-specification.md +0 -493
- package/docs/glossary.html +0 -833
- package/docs/index.html +0 -296
- package/docs/tag-reference.html +0 -1317
- package/docs/ui-template-guide.html +0 -1068
- package/example/README.md +0 -29
- package/example/engineConfig.json +0 -10
- package/example/package-lock.json +0 -5145
- package/example/package.json +0 -26
- package/example/src/index.js +0 -13
- package/example/src/resource/background/beach.jpg +0 -0
- package/example/src/resource/background/city.jpg +0 -0
- package/example/src/resource/background/crossroad.jpg +0 -0
- package/example/src/resource/background/forest.jpg +0 -0
- package/example/src/resource/background/laboratory.jpg +0 -0
- package/example/src/resource/background/library.jpg +0 -0
- package/example/src/resource/background/living_room.jpg +0 -0
- package/example/src/resource/background/music_room.jpg +0 -0
- package/example/src/resource/background/stage.jpg +0 -0
- package/example/src/resource/background/sunset.jpg +0 -0
- package/example/src/resource/background/title_bg.png +0 -0
- package/example/src/resource/bgm/calm_music.wav +0 -0
- package/example/src/resource/bgm/doorbell.mp3 +0 -0
- package/example/src/resource/bgm/nc366476_Virtual_Voyage.mp3 +0 -0
- package/example/src/resource/bgm/title_theme.mp3 +0 -0
- package/example/src/resource/chara/dancer.png +0 -0
- package/example/src/resource/chara/guest.png +0 -0
- package/example/src/resource/chara/guide.png +0 -0
- package/example/src/resource/chara/scientist.png +0 -0
- package/example/src/resource/config.js +0 -0
- package/example/src/resource/se/doorbell.mp3 +0 -0
- package/example/src/resource/system/systemPicture/01_message/message.png +0 -0
- package/example/src/resource/system/systemPicture/02_button/button.png +0 -0
- package/example/src/resource/system/systemPicture/02_button/button2.png +0 -0
- package/example/src/resource/system/systemPicture/02_button/button3.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/auto.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/auto2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/close.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/close2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/config.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/config2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/load.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/load2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/log.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/log2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/menu.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/menu2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/qload.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/qload2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/qsave.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/qsave2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/save.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/save2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/screen.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/screen2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/skip.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/skip2.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/title.png +0 -0
- package/example/src/resource/system/systemPicture/03_system_button/title2.png +0 -0
- package/example/src/resource/system/systemPicture//345/210/251/347/224/250/350/246/217/347/264/204.txt +0 -0
- package/example/src/resource/system/wait.gif +0 -0
- package/example/src/scene/animation.scene +0 -28
- package/example/src/scene/background.scene +0 -29
- package/example/src/scene/character.scene +0 -26
- package/example/src/scene/choice.scene +0 -97
- package/example/src/scene/dialog.scene +0 -105
- package/example/src/scene/effects.scene +0 -38
- package/example/src/scene/en/animation.scene +0 -28
- package/example/src/scene/en/background.scene +0 -26
- package/example/src/scene/en/character.scene +0 -26
- package/example/src/scene/en/choice.scene +0 -32
- package/example/src/scene/en/effects.scene +0 -37
- package/example/src/scene/en/sound.scene +0 -26
- package/example/src/scene/en/text.scene +0 -26
- package/example/src/scene/en/title.scene +0 -39
- package/example/src/scene/if_test.scene +0 -37
- package/example/src/scene/resource-error-test.scene +0 -15
- package/example/src/scene/save-load-test.scene +0 -48
- package/example/src/scene/sound.scene +0 -26
- package/example/src/scene/test_error.scene +0 -21
- package/example/src/scene/text.scene +0 -34
- package/example/src/scene/title.scene +0 -51
- package/example/src/screen/incoming.html +0 -474
- package/example/src/screen/title.html +0 -135
- package/example/src/template.html +0 -16
- package/example/test-results/.last-run.json +0 -4
- package/example/webpack.config.js +0 -69
- package/image.png +0 -0
- package/playwright-report/index.html +0 -71
- package/s-plan1-5Light-s-1.jpg +0 -0
- package/test-results/.last-run.json +0 -6
- package/tests/e2e/if-global-attribute.spec.js +0 -90
- package/tests/e2e/resource-error-handling.spec.js +0 -58
- package/tests/e2e/screenshots/before-error-check.png +0 -0
- package/tests/e2e/screenshots/choices.png +0 -0
- package/tests/e2e/screenshots/message-window-click-wait.png +0 -0
- /package/{dist/src → src}/core/resourceManager.js +0 -0
- /package/{dist/src → src}/core/resourceManager.js.map +0 -0
- /package/{dist/src → src}/resource/ImageObject.js +0 -0
- /package/{dist/src → src}/resource/ImageObject.js.map +0 -0
- /package/{dist/src → src}/resource/soundObject.js +0 -0
- /package/{dist/src → src}/resource/soundObject.js.map +0 -0
- /package/{dist/src → src}/utils/fallbackTemplate.js +0 -0
- /package/{dist/src → src}/utils/fallbackTemplate.js.map +0 -0
- /package/{dist/src → src}/utils/waitUtil.js +0 -0
- /package/{dist/src → src}/utils/waitUtil.js.map +0 -0
package/example/package.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "example",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "A WebTaleKit game project",
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"play": "rimraf dist && npx wtc ./src/scene/ ./src/js/ && npx webpack serve --open --mode development",
|
|
9
|
-
"dev": "rimraf dist && npx wtc ./src/scene/ ./src/js/ && npx webpack serve --mode development",
|
|
10
|
-
"build": "rimraf dist && npx wtc ./src/scene/ ./src/js/ && webpack --mode production"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"console-browserify": "^1.2.0",
|
|
14
|
-
"html-webpack-plugin": "^5.6.0",
|
|
15
|
-
"storejs": "^2.1.0"
|
|
16
|
-
},
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"filemanager-webpack-plugin": "^8.0.0",
|
|
19
|
-
"rimraf": "^5.0.7",
|
|
20
|
-
"ts-loader": "^9.5.1",
|
|
21
|
-
"typescript": "^5.5.2",
|
|
22
|
-
"webpack": "^5.75.0",
|
|
23
|
-
"webpack-cli": "^5.1.4",
|
|
24
|
-
"webpack-dev-server": "^4.11.1"
|
|
25
|
-
}
|
|
26
|
-
}
|
package/example/src/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Core } from 'webtalekit-alpha/src/core/'
|
|
2
|
-
import engineConfig from '../engineConfig.json'
|
|
3
|
-
|
|
4
|
-
const game = new Core()
|
|
5
|
-
|
|
6
|
-
// URLからクエリパラメータを取得
|
|
7
|
-
const urlParams = new URLSearchParams(window.location.search)
|
|
8
|
-
const sceneParam = urlParams.get('scene')
|
|
9
|
-
|
|
10
|
-
// 指定されたシーンがある場合はそのシーンを、なければタイトルシーンを開始
|
|
11
|
-
const initialScene = sceneParam || 'title'
|
|
12
|
-
game.setConfig(engineConfig)
|
|
13
|
-
game.start(initialScene)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<scene>
|
|
2
|
-
<scenario>
|
|
3
|
-
<say name="ナレーター">このシーンでは様々なアニメーションをお見せします。</say>
|
|
4
|
-
<show src="./src/resource/chara/dancer.png" name="ダンサー" pos="center:middle" />
|
|
5
|
-
<say name="ダンサー">ステージ上を動き回るのをご覧ください!</say>
|
|
6
|
-
<moveTo name="ダンサー" x="100" y="360" duration="3" />
|
|
7
|
-
<moveTo name="ダンサー" x="-280" y="-360" duration="3" />
|
|
8
|
-
<moveTo name="ダンサー" x="100" y="0" duration="2" />
|
|
9
|
-
<say name="ダンサー">フェードイン、フェードアウトもできますよ。</say>
|
|
10
|
-
<hide name="ダンサー" />
|
|
11
|
-
<show src="./src/resource/chara/dancer.png" name="ダンサー" pos="center:middle" opacity="0" />
|
|
12
|
-
<show src="./src/resource/chara/dancer.png" name="ダンサー" pos="center:middle" opacity="1" duration="3" />
|
|
13
|
-
<say name="ダンサー">アニメーションを使えば、ストーリーをより動的に演出できます!</say>
|
|
14
|
-
<choice>
|
|
15
|
-
<item label="タイトルに戻る" onSelect="title">
|
|
16
|
-
<route scene="title" />
|
|
17
|
-
</item>
|
|
18
|
-
</choice>
|
|
19
|
-
</scenario>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
export const sceneConfig = {
|
|
23
|
-
name: 'animation',
|
|
24
|
-
background: './src/resource/background/stage.jpg',
|
|
25
|
-
template: './src/screen/title.html'
|
|
26
|
-
}
|
|
27
|
-
</script>
|
|
28
|
-
</scene>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<scene>
|
|
2
|
-
<scenario>
|
|
3
|
-
<say name="ナレーター">このシーンでは、背景の変更方法をお見せします。</say>
|
|
4
|
-
<say name="ナレーター">現在、私たちは森の中にいます。静かで緑豊かな環境ですね。</say>
|
|
5
|
-
<show mode="bg" src="./src/resource/background/beach.jpg" />
|
|
6
|
-
<say name="ナレーター">そして今、場面が変わって海辺に来ました!波の音が聞こえてきそうです。</say>
|
|
7
|
-
<show mode="bg" src="./src/resource/background/city.jpg" />
|
|
8
|
-
<say name="ナレーター">さらに場面が変わり、今度は都会の街中です。高層ビルが立ち並んでいますね。</say>
|
|
9
|
-
<say name="ナレーター">このように、背景は瞬時に切り替えることができます。</say>
|
|
10
|
-
<show mode="bg" src="./src/resource/background/beach.jpg" />
|
|
11
|
-
<say name="ナレーター">また、ゆっくりとフェードさせて背景を変更することもできます。</say>
|
|
12
|
-
<show mode="bg" src="./src/resource/background/sunset.jpg" transition="fade" duration="2000" />
|
|
13
|
-
<say name="ナレーター">夕暮れの空が広がっていきましたね。</say>
|
|
14
|
-
<say name="ナレーター">背景の変更は、ゲームの雰囲気や場面の転換を表現するのに非常に効果的です。</say>
|
|
15
|
-
<choice>
|
|
16
|
-
<item label="タイトルに戻る" onSelect="title">
|
|
17
|
-
<route to="title" />
|
|
18
|
-
</item>
|
|
19
|
-
</choice>
|
|
20
|
-
</scenario>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
export const sceneConfig = {
|
|
24
|
-
name: 'background',
|
|
25
|
-
background: './src/resource/background/forest.jpg',
|
|
26
|
-
template: './src/screen/title.html'
|
|
27
|
-
}
|
|
28
|
-
</script>
|
|
29
|
-
</scene>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<scene>
|
|
2
|
-
<scenario>
|
|
3
|
-
<say name="ナレーター">このシーンではキャラクターの表示と配置をデモンストレーションします。</say>
|
|
4
|
-
<show src="./src/resource/chara/guide.png" name="ガイド" pos="left:middle" />
|
|
5
|
-
<say name="ガイド">こんにちは、私がガイドです。キャラクターは画面上に配置できるんですよ。</say>
|
|
6
|
-
<show src="./src/resource/chara/guest.png" name="ゲスト" pos="right:middle" transition="fade" />
|
|
7
|
-
<say name="ゲスト">そうですね。複数のキャラクターを同時に表示することもできます!</say>
|
|
8
|
-
<moveTo name="ガイド" x="500" y="400" duration="2" />
|
|
9
|
-
<say name="ガイド">このように、滑らかに動くこともできます。</say>
|
|
10
|
-
<hide name="ゲスト" transition="fade" />
|
|
11
|
-
<say name="ガイド">必要がなくなったキャラクターは非表示にすることもできますね。</say>
|
|
12
|
-
<choice>
|
|
13
|
-
<item label="タイトルに戻る" onSelect="title">
|
|
14
|
-
<route scene="title" />
|
|
15
|
-
</item>
|
|
16
|
-
</choice>
|
|
17
|
-
</scenario>
|
|
18
|
-
|
|
19
|
-
<script>
|
|
20
|
-
export const sceneConfig = {
|
|
21
|
-
name: 'character',
|
|
22
|
-
background: './src/resource/background/living_room.jpg',
|
|
23
|
-
template: './src/screen/title.html'
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
26
|
-
</scene>
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<scene>
|
|
2
|
-
<scenario>
|
|
3
|
-
<say name="ナレーター">このシーンでは選択肢と分岐するストーリーをデモンストレーションします。</say>
|
|
4
|
-
<say name="ナレーター">まず、シンプルな二択から始めましょう。</say>
|
|
5
|
-
<choice prompt="どちらの道を選びますか?">
|
|
6
|
-
<item label="左の道" onSelect="leftPath">
|
|
7
|
-
<say name="ナレーター">左の道を選びました。森に続く道のようです。</say>
|
|
8
|
-
<show src="./src/resource/background/forest.jpg" />
|
|
9
|
-
</item>
|
|
10
|
-
<item label="右の道" onSelect="rightPath">
|
|
11
|
-
<say name="ナレーター">右の道を選びました。海に続く道のようです。</say>
|
|
12
|
-
<show src="./src/resource/background/beach.jpg" />
|
|
13
|
-
</item>
|
|
14
|
-
</choice>
|
|
15
|
-
<say name="ナレーター">次に、3つ以上の選択肢を試してみましょう。</say>
|
|
16
|
-
<choice prompt="どの乗り物で旅をしますか?">
|
|
17
|
-
<item label="車" onSelect="car">
|
|
18
|
-
<say name="ナレーター">車を選びました。快適なドライブ旅行が始まります。</say>
|
|
19
|
-
</item>
|
|
20
|
-
<item label="電車" onSelect="train">
|
|
21
|
-
<say name="ナレーター">電車を選びました。窓の外の景色を楽しみながらの旅です。</say>
|
|
22
|
-
</item>
|
|
23
|
-
<item label="飛行機" onSelect="plane">
|
|
24
|
-
<say name="ナレーター">飛行機を選びました。空の上から地上を見下ろす旅が始まります。</say>
|
|
25
|
-
</item>
|
|
26
|
-
<item label="船" onSelect="ship">
|
|
27
|
-
<say name="ナレーター">船を選びました。波の音を聞きながらのクルーズ旅行です。</say>
|
|
28
|
-
</item>
|
|
29
|
-
</choice>
|
|
30
|
-
<say name="ナレーター">最後に、選択肢の結果に基づいて条件分岐するテストを行います。</say>
|
|
31
|
-
<choice prompt="あなたの好きな色は?">
|
|
32
|
-
<item label="赤" onSelect="red">
|
|
33
|
-
<say name="ナレーター">赤を選びました。情熱的な色ですね。</say>
|
|
34
|
-
<call func="setFavoriteColor('red')" />
|
|
35
|
-
</item>
|
|
36
|
-
<item label="青" onSelect="blue">
|
|
37
|
-
<say name="ナレーター">青を選びました。落ち着いた色ですね。</say>
|
|
38
|
-
<call func="setFavoriteColor('blue')" />
|
|
39
|
-
</item>
|
|
40
|
-
<item label="緑" onSelect="green">
|
|
41
|
-
<say name="ナレーター">緑を選びました。自然を感じる色ですね。</say>
|
|
42
|
-
<call func="setFavoriteColor('green')" />
|
|
43
|
-
</item>
|
|
44
|
-
</choice>
|
|
45
|
-
<if condition="getFavoriteColor() === 'red'">
|
|
46
|
-
<then>
|
|
47
|
-
<say name="ナレーター">赤が好きなあなたは、活動的な性格かもしれませんね。</say>
|
|
48
|
-
</then>
|
|
49
|
-
<else>
|
|
50
|
-
<if condition="getFavoriteColor() === 'blue'">
|
|
51
|
-
<then>
|
|
52
|
-
<say name="ナレーター">青が好きなあなたは、冷静な性格かもしれませんね。</say>
|
|
53
|
-
</then>
|
|
54
|
-
<else>
|
|
55
|
-
<say name="ナレーター">緑が好きなあなたは、穏やかな性格かもしれませんね。</say>
|
|
56
|
-
</else>
|
|
57
|
-
</if>
|
|
58
|
-
</else>
|
|
59
|
-
</if>
|
|
60
|
-
<say name="ナレーター">このように、選択肢によって異なる結果やストーリーの分岐を作ることができます。</say>
|
|
61
|
-
<choice prompt="">
|
|
62
|
-
<item label="タイトルに戻る" onSelect="end">
|
|
63
|
-
<route to="title" />
|
|
64
|
-
</item>
|
|
65
|
-
<item label="1つ目の質問に戻る" onSelect="replay">
|
|
66
|
-
<say name="ナレーター">デモをもう一度実行します。</say>
|
|
67
|
-
<jump index="1" />
|
|
68
|
-
</item>
|
|
69
|
-
<item label="2つ目の質問に戻る" onSelect="replay">
|
|
70
|
-
<say name="ナレーター">デモをもう一度実行します。</say>
|
|
71
|
-
<jump index="4" />
|
|
72
|
-
</item>
|
|
73
|
-
<item label="3つ目の質問に戻る" onSelect="replay">
|
|
74
|
-
<say name="ナレーター">デモをもう一度実行します。</say>
|
|
75
|
-
<jump index="6" />
|
|
76
|
-
</item>
|
|
77
|
-
</choice>
|
|
78
|
-
</scenario>
|
|
79
|
-
|
|
80
|
-
<script>
|
|
81
|
-
export const sceneConfig = {
|
|
82
|
-
name: 'choice_demo',
|
|
83
|
-
background: './src/resource/background/crossroad.jpg',
|
|
84
|
-
template: './src/screen/title.html'
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
let favoriteColor = '';
|
|
88
|
-
|
|
89
|
-
export function setFavoriteColor(color) {
|
|
90
|
-
favoriteColor = color;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function getFavoriteColor() {
|
|
94
|
-
return favoriteColor;
|
|
95
|
-
}
|
|
96
|
-
</script>
|
|
97
|
-
</scene>
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
<scene>
|
|
2
|
-
<scenario>
|
|
3
|
-
<text>ダイアログのテスト</text>
|
|
4
|
-
<say name="ナレーター">このシーンでは、ダイアログの基本的な使い方をデモンストレーションします。</say>
|
|
5
|
-
<say name="ナレーター">まずは、シンプルなダイアログから始めましょう。</say>
|
|
6
|
-
<!-- デフォルトテンプレート使用 -->
|
|
7
|
-
<say name="ナレーター">ダイアログを表示します。</say>
|
|
8
|
-
<dialog id="simple">
|
|
9
|
-
<prompt>犬は好きですか</prompt>
|
|
10
|
-
<actions>
|
|
11
|
-
<action value="yes" id="ok" label="はい">
|
|
12
|
-
<text>いいですね、私も大好きです。</text>
|
|
13
|
-
</action>
|
|
14
|
-
<action value="no" id="cancel" label="いいえ">
|
|
15
|
-
<text>よろしい、ならば、戦争だ。</text>
|
|
16
|
-
</action>
|
|
17
|
-
</actions>
|
|
18
|
-
</dialog>
|
|
19
|
-
<say name="ナレーター">2つ目は、確認ダイアログを表示します。</say>
|
|
20
|
-
<!-- 確認ダイアログ -->
|
|
21
|
-
<dialog id="confirm">
|
|
22
|
-
<prompt>本当に続けますか?</prompt>
|
|
23
|
-
<actions>
|
|
24
|
-
<action value="yes" id="ok" label="OK">
|
|
25
|
-
<text>続行します。</text>
|
|
26
|
-
</action>
|
|
27
|
-
<action value="no" id="cancel" label="キャンセル">
|
|
28
|
-
<text>中止します。</text>
|
|
29
|
-
</action>
|
|
30
|
-
</actions>
|
|
31
|
-
</dialog>
|
|
32
|
-
<say name="ナレーター">3つ目は、選択肢を提供するダイアログです。</say>
|
|
33
|
-
<!-- 選択肢ダイアログ -->
|
|
34
|
-
<dialog id="choice">
|
|
35
|
-
<prompt>どの色が好きですか?</prompt>
|
|
36
|
-
<actions>
|
|
37
|
-
<action value="red" id="red" label="赤">
|
|
38
|
-
<text>赤は情熱的な色ですね。</text>
|
|
39
|
-
</action>
|
|
40
|
-
<action value="blue" id="blue" label="青">
|
|
41
|
-
<text>青は落ち着いた色です。</text>
|
|
42
|
-
</action>
|
|
43
|
-
<action value="green" id="green" label="緑">
|
|
44
|
-
<text>緑は自然を感じさせます。</text>
|
|
45
|
-
</action>
|
|
46
|
-
</actions>
|
|
47
|
-
</dialog>
|
|
48
|
-
|
|
49
|
-
<say name="ナレーター">4つ目に、ユーザーへの問いかけを行うダイアログです。</say>
|
|
50
|
-
<!-- ユーザーへの問いかけダイアログ -->
|
|
51
|
-
<dialog id="question">
|
|
52
|
-
<prompt>あなたの好きな食べ物は何ですか?</prompt>
|
|
53
|
-
<actions>
|
|
54
|
-
<action value="pizza" id="pizza" label="ピザ">
|
|
55
|
-
<text>ピザは美味しいですね!</text>
|
|
56
|
-
</action>
|
|
57
|
-
<action value="sushi" id="sushi" label="寿司">
|
|
58
|
-
<text>寿司も最高です!</text>
|
|
59
|
-
</action>
|
|
60
|
-
<action value="ramen" id="ramen" label="ラーメン">
|
|
61
|
-
<text>ラーメンは心を温めます。</text>
|
|
62
|
-
</action>
|
|
63
|
-
</actions>
|
|
64
|
-
</dialog>
|
|
65
|
-
<say name="ナレーター">最後に、ユーザーカスタムダイアログを表示します。</say>
|
|
66
|
-
<!-- ユーザーカスタムダイアログ -->
|
|
67
|
-
<dialog id="custom" template="./src/screen/incoming.html">
|
|
68
|
-
<prompt>カスタムダイアログのテスト</prompt>
|
|
69
|
-
<actions>
|
|
70
|
-
<action value="yes" id="answer" label="">
|
|
71
|
-
<text>はい、もしもし。</text>
|
|
72
|
-
</action>
|
|
73
|
-
<action value="no" id="decline" label="">
|
|
74
|
-
<text>ツー…ツー…</text>
|
|
75
|
-
</action>
|
|
76
|
-
<action value="no" id="message" label="">
|
|
77
|
-
<say name="自動音声">ただ今、留守にしています・・・ピーっとなったら、メッセージをどうぞ</say>
|
|
78
|
-
</action>
|
|
79
|
-
<action value="no" id="contact" label="">
|
|
80
|
-
<dialog id="contact">
|
|
81
|
-
<prompt>連絡先を選択してください</prompt>
|
|
82
|
-
<actions>
|
|
83
|
-
<action value="friend" id="friend" label="友達">
|
|
84
|
-
<text>友達に連絡します。</text>
|
|
85
|
-
</action>
|
|
86
|
-
<action value="family" id="family" label="家族">
|
|
87
|
-
<text>家族に連絡します。</text>
|
|
88
|
-
</action>
|
|
89
|
-
<action value="colleague" id="colleague" label="同僚">
|
|
90
|
-
<text>同僚に連絡します。</text>
|
|
91
|
-
</action>
|
|
92
|
-
</actions>
|
|
93
|
-
</action>
|
|
94
|
-
</actions>
|
|
95
|
-
</dialog>
|
|
96
|
-
|
|
97
|
-
<say name="ナレーター">このようにユーザーへの問いかけを行うことができます。</say>
|
|
98
|
-
<choice>
|
|
99
|
-
<item label="タイトルに戻る" onSelect="title">
|
|
100
|
-
<route to="title" />
|
|
101
|
-
</item>
|
|
102
|
-
</choice>
|
|
103
|
-
</scenario>
|
|
104
|
-
<script></script>
|
|
105
|
-
</scene>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<scene>
|
|
2
|
-
<scenario>
|
|
3
|
-
<say name="ナレーター">このシーンでは特殊効果やフィルターをデモンストレーションします。</say>
|
|
4
|
-
<show src="./src/resource/chara/scientist.png" name="科学者" pos="center:middle" />
|
|
5
|
-
<say name="科学者">視覚効果の実験をしてみましょう!</say>
|
|
6
|
-
<say name="科学者">まずはセピア調のフィルターを試してみます。</say>
|
|
7
|
-
<show mode="cg" src="./src/resource/background/laboratory.jpg" sepia="80" />
|
|
8
|
-
<say name="科学者">次は私で試してみます。</say>
|
|
9
|
-
<show mode="cg" src="./src/resource/background/laboratory.jpg" />
|
|
10
|
-
<show src="./src/resource/chara/scientist.png" name="科学者" pos="center:middle" sepia="80" />
|
|
11
|
-
<say name="科学者">次にモノクロ効果に切り替えてみましょう。</say>
|
|
12
|
-
<show mode="cg" src="./src/resource/background/laboratory.jpg" mono="100" />
|
|
13
|
-
<say name="科学者">こちらも、私で試してみます。</say>
|
|
14
|
-
<show mode="cg" src="./src/resource/background/laboratory.jpg" />
|
|
15
|
-
<show src="./src/resource/chara/scientist.png" name="科学者" pos="center:middle" mono="100" />
|
|
16
|
-
<say name="科学者">ぼかし効果も適用できます。</say>
|
|
17
|
-
<show mode="cg" src="./src/resource/background/laboratory.jpg" blur="5" />
|
|
18
|
-
<say name="科学者">では、私で試してみます。</say>
|
|
19
|
-
<show mode="cg" src="./src/resource/background/laboratory.jpg" />
|
|
20
|
-
<show src="./src/resource/chara/scientist.png" name="科学者" pos="center:middle" blur="5" />
|
|
21
|
-
<say name="科学者">これらの効果を使えば、ゲームに様々な雰囲気を演出できますね!</say>
|
|
22
|
-
<show mode="cg" src="./src/resource/background/laboratory.jpg" />
|
|
23
|
-
<show src="./src/resource/chara/scientist.png" name="科学者" pos="center:middle" />
|
|
24
|
-
<choice>
|
|
25
|
-
<item label="タイトルに戻る" onSelect="title">
|
|
26
|
-
<route scene="title" />
|
|
27
|
-
</item>
|
|
28
|
-
</choice>
|
|
29
|
-
</scenario>
|
|
30
|
-
|
|
31
|
-
<script>
|
|
32
|
-
export const sceneConfig = {
|
|
33
|
-
name: 'effects',
|
|
34
|
-
background: './src/resource/background/laboratory.jpg',
|
|
35
|
-
template: './src/screen/title.html'
|
|
36
|
-
}
|
|
37
|
-
</script>
|
|
38
|
-
</scene>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<scene>
|
|
2
|
-
<scenario>
|
|
3
|
-
<say name="Narrator">This scene showcases various animations.</say>
|
|
4
|
-
<show src="./src/resource/chara/dancer.png" name="Dancer" pos="center:middle" />
|
|
5
|
-
<say name="Dancer">Watch me move across the stage!</say>
|
|
6
|
-
<moveTo name="Dancer" x="1000" y="360" duration="3" />
|
|
7
|
-
<moveTo name="Dancer" x="280" y="360" duration="3" />
|
|
8
|
-
<moveTo name="Dancer" x="640" y="360" duration="2" />
|
|
9
|
-
<say name="Dancer">I can also fade in and out.</say>
|
|
10
|
-
<hide name="Dancer" />
|
|
11
|
-
<show src="./src/resource/chara/dancer.png" name="Dancer" pos="center:middle" opacity="0" />
|
|
12
|
-
<show src="./src/resource/chara/dancer.png" name="Dancer" pos="center:middle" opacity="1" duration="3" />
|
|
13
|
-
<say name="Dancer">Animations can make your story more dynamic!</say>
|
|
14
|
-
<choice>
|
|
15
|
-
<item label="Return to Title" onSelect="title">
|
|
16
|
-
<route scene="title" />
|
|
17
|
-
</item>
|
|
18
|
-
</choice>
|
|
19
|
-
</scenario>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
const sceneConfig = {
|
|
23
|
-
name: 'animation',
|
|
24
|
-
background: './src/resource/background/stage.png',
|
|
25
|
-
template: './src/screen/title.html'
|
|
26
|
-
}
|
|
27
|
-
</script>
|
|
28
|
-
</scene>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<scene>
|
|
2
|
-
<scenario>
|
|
3
|
-
<say name="Narrator">This scene shows how backgrounds can be changed.</say>
|
|
4
|
-
<say name="Narrator">We're currently in a forest.</say>
|
|
5
|
-
<show src="./src/resource/background/beach.jpg" />
|
|
6
|
-
<say name="Narrator">Now we've moved to a beach!</say>
|
|
7
|
-
<show src="./src/resource/background/city.jpg" />
|
|
8
|
-
<say name="Narrator">And now we're in a city.</say>
|
|
9
|
-
<say name="Narrator">Backgrounds can be changed instantly or with transitions.</say>
|
|
10
|
-
<show src="./src/resource/background/sunset.jpg" transition="fade" duration="2000" />
|
|
11
|
-
<say name="Narrator">We can also change the background gradually with a fade effect like this. As you can see, the
|
|
12
|
-
twilight sky has spread across the scene.</say>
|
|
13
|
-
<choice>
|
|
14
|
-
<item label="Return to Title" onSelect="title">
|
|
15
|
-
<route scene="title" />
|
|
16
|
-
</item>
|
|
17
|
-
</choice>
|
|
18
|
-
</scenario>
|
|
19
|
-
<script>
|
|
20
|
-
const sceneConfig = {
|
|
21
|
-
name: 'background',
|
|
22
|
-
background: './src/resource/background/forest.jpg',
|
|
23
|
-
template: './src/screen/title.html'
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
26
|
-
</scene>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<scene>
|
|
2
|
-
<scenario>
|
|
3
|
-
<say name="Narrator">This scene demonstrates character display and positioning.</say>
|
|
4
|
-
<show src="./src/resource/chara/guide.png" name="Guide" pos="left:bottom" />
|
|
5
|
-
<say name="Guide">Hello! I'm Guide. Characters can be positioned on the screen.</say>
|
|
6
|
-
<show src="./src/resource/chara/guest.png" name="Guest" pos="right:bottom" transition="fade" />
|
|
7
|
-
<say name="Guest">And multiple characters can appear at once!</say>
|
|
8
|
-
<moveTo name="Guide" x="500" y="400" duration="2" />
|
|
9
|
-
<say name="Guide">We can also move around smoothly.</say>
|
|
10
|
-
<hide name="Guest" transition="fade" />
|
|
11
|
-
<say name="Guide">And characters can be hidden when not needed.</say>
|
|
12
|
-
<choice>
|
|
13
|
-
<item label="Return to Title" onSelect="title">
|
|
14
|
-
<route scene="title" />
|
|
15
|
-
</item>
|
|
16
|
-
</choice>
|
|
17
|
-
</scenario>
|
|
18
|
-
|
|
19
|
-
<script>
|
|
20
|
-
export const sceneConfig = {
|
|
21
|
-
name: 'character',
|
|
22
|
-
background: './src/resource/background/living_room.png',
|
|
23
|
-
template: './src/screen/title.html'
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
26
|
-
</scene>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<scene>
|
|
2
|
-
<scenario>
|
|
3
|
-
<say name="Narrator">This scene demonstrates choices and branching narratives.</say>
|
|
4
|
-
<say name="Narrator">Which path will you choose?</say>
|
|
5
|
-
<choice>
|
|
6
|
-
<item label="Take the left path" onSelect="leftPath">
|
|
7
|
-
<say name="Narrator">You chose the left path.</say>
|
|
8
|
-
<show src="./src/resource/background/forest.png" />
|
|
9
|
-
<say name="Narrator">You find yourself in a dense forest.</say>
|
|
10
|
-
</item>
|
|
11
|
-
<item label="Take the right path" onSelect="rightPath">
|
|
12
|
-
<say name="Narrator">You chose the right path.</say>
|
|
13
|
-
<show src="./src/resource/background/beach.png" />
|
|
14
|
-
<say name="Narrator">You arrive at a beautiful beach.</say>
|
|
15
|
-
</item>
|
|
16
|
-
</choice>
|
|
17
|
-
<say name="Narrator">Choices can lead to different outcomes and story branches.</say>
|
|
18
|
-
<choice>
|
|
19
|
-
<item label="Return to Title" onSelect="title">
|
|
20
|
-
<route scene="title" />
|
|
21
|
-
</item>
|
|
22
|
-
</choice>
|
|
23
|
-
</scenario>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
const sceneConfig = {
|
|
27
|
-
name: 'choice',
|
|
28
|
-
background: './src/resource/background/crossroad.jpg',
|
|
29
|
-
template: './src/screen/title.html'
|
|
30
|
-
}
|
|
31
|
-
</script>
|
|
32
|
-
</scene>
|