webtalekit-alpha 0.2.10 → 0.2.13
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/.claude/settings.local.json +12 -0
- package/.clinerules +65 -0
- package/.history/README_20240812174230.md +193 -0
- package/.history/README_20240812175424.md +185 -0
- package/.history/README_20240812191012.md +185 -0
- package/.history/README_20240812191155.md +185 -0
- package/.history/README_20240812191211.md +185 -0
- package/.history/README_20240812192035.md +185 -0
- package/.history/dist/src/core/index_20240815021552.js +474 -0
- package/.history/dist/src/core/index_20240815022042.js +476 -0
- package/.history/dist/src/core/index_20240815022206.js +476 -0
- package/.history/dist/src/core/index_20240815023104.js +478 -0
- package/.history/dist/src/core/index_20240817022019.js +494 -0
- package/.history/dist/src/core/index_20240818013827.js +493 -0
- package/.history/dist/src/core/index_20240820001418.js +502 -0
- package/.history/package_20240812174230.json +45 -0
- package/.history/package_20240825011731.json +45 -0
- package/.history/package_20240825011739.json +44 -0
- package/.history/parser/parser_20240812174230.js +50 -0
- package/.history/parser/parser_20240825012739.js +47 -0
- package/.history/parser/parser_20240825012835.js +52 -0
- package/.history/src/core/drawer_20240813091343.ts +262 -0
- package/.history/src/core/drawer_20240815232345.ts +262 -0
- package/.history/src/core/drawer_20240815232350.ts +262 -0
- package/.history/src/core/drawer_20240816025257.ts +357 -0
- package/.history/src/core/drawer_20240816025358.ts +357 -0
- package/.history/src/core/drawer_20240816030148.ts +365 -0
- package/.history/src/core/drawer_20240816231033.ts +294 -0
- package/.history/src/core/drawer_20240816231107.ts +262 -0
- package/.history/src/core/drawer_20240816231234.ts +268 -0
- package/.history/src/core/drawer_20240817013836.ts +290 -0
- package/.history/src/core/drawer_20240817015150.ts +289 -0
- package/.history/src/core/drawer_20240817015353.ts +290 -0
- package/.history/src/core/drawer_20240817021254.ts +291 -0
- package/.history/src/core/drawer_20240817023440.ts +295 -0
- package/.history/src/core/drawer_20240817023445.ts +295 -0
- package/.history/src/core/drawer_20240818015327.ts +295 -0
- package/.history/src/core/drawer_20240819231006.ts +318 -0
- package/.history/src/core/drawer_20240820002829.ts +317 -0
- package/.history/src/core/drawer_20240820003141.ts +295 -0
- package/.history/src/core/drawer_20240824010043.ts +295 -0
- package/.history/src/core/drawer_20240825013311.ts +293 -0
- package/.history/src/core/drawer_20240902235257.ts +295 -0
- package/.history/src/core/drawer_20240904002038.ts +262 -0
- package/.history/src/core/drawer_20240904004020.ts +262 -0
- package/.history/src/core/drawer_20240904004238.ts +262 -0
- package/.history/src/core/drawer_20240904005648.ts +262 -0
- package/.history/src/core/drawer_20240904005808.ts +262 -0
- package/.history/src/core/drawer_20240904010523.ts +262 -0
- package/.history/src/core/drawer_20240904011611.ts +262 -0
- package/.history/src/core/drawer_20240904011740.ts +262 -0
- package/.history/src/core/index_20240812190102.js +443 -0
- package/.history/src/core/index_20240812190105.js +443 -0
- package/.history/src/core/index_20240812205421.js +452 -0
- package/.history/src/core/index_20240812213441.js +452 -0
- package/.history/src/core/index_20240812214203.js +453 -0
- package/.history/src/core/index_20240813090823.js +453 -0
- package/.history/src/core/index_20240813230449.js +452 -0
- package/.history/src/core/index_20240813230539.js +452 -0
- package/.history/src/core/index_20240813231447.js +453 -0
- package/.history/src/core/index_20240813231449.js +453 -0
- package/.history/src/core/index_20240813231511.js +453 -0
- package/.history/src/core/index_20240813231531.js +453 -0
- package/.history/src/core/index_20240813231913.js +453 -0
- package/.history/src/core/index_20240813232356.js +453 -0
- package/.history/src/core/index_20240813232640.js +453 -0
- package/.history/src/core/index_20240813232900.js +453 -0
- package/.history/src/core/index_20240814221127.js +454 -0
- package/.history/src/core/index_20240814221322.js +454 -0
- package/.history/src/core/index_20240814221526.js +454 -0
- package/.history/src/core/index_20240814222048.js +454 -0
- package/.history/src/core/index_20240814222918.js +459 -0
- package/.history/src/core/index_20240814223136.js +459 -0
- package/.history/src/core/index_20240814223501.js +464 -0
- package/.history/src/core/index_20240814224347.js +468 -0
- package/.history/src/core/index_20240815013712.js +474 -0
- package/.history/src/core/index_20240815021534.js +474 -0
- package/.history/src/core/index_20240815023143.js +477 -0
- package/.history/src/core/index_20240815023207.js +479 -0
- package/.history/src/core/index_20240815023344.js +481 -0
- package/.history/src/core/index_20240815035600.js +479 -0
- package/.history/src/core/index_20240815041549.js +480 -0
- package/.history/src/core/index_20240815185515.js +481 -0
- package/.history/src/core/index_20240815192158.js +481 -0
- package/.history/src/core/index_20240815222912.js +482 -0
- package/.history/src/core/index_20240815224052.js +483 -0
- package/.history/src/core/index_20240815224843.js +484 -0
- package/.history/src/core/index_20240815224850.js +483 -0
- package/.history/src/core/index_20240815231706.js +479 -0
- package/.history/src/core/index_20240816025748.js +483 -0
- package/.history/src/core/index_20240816030102.js +484 -0
- package/.history/src/core/index_20240817013329.js +485 -0
- package/.history/src/core/index_20240817013526.js +485 -0
- package/.history/src/core/index_20240817013819.js +488 -0
- package/.history/src/core/index_20240817013829.js +488 -0
- package/.history/src/core/index_20240817014921.js +494 -0
- package/.history/src/core/index_20240817022057.js +494 -0
- package/.history/src/core/index_20240817023316.js +493 -0
- package/.history/src/core/index_20240818005637.js +493 -0
- package/.history/src/core/index_20240818005721.js +493 -0
- package/.history/src/core/index_20240818011804.js +493 -0
- package/.history/src/core/index_20240818013835.js +493 -0
- package/.history/src/core/index_20240818014310.js +493 -0
- package/.history/src/core/index_20240818014323.js +493 -0
- package/.history/src/core/index_20240818014333.js +493 -0
- package/.history/src/core/index_20240818020725.js +496 -0
- package/.history/src/core/index_20240819195504.js +497 -0
- package/.history/src/core/index_20240819202012.js +495 -0
- package/.history/src/core/index_20240819231228.js +501 -0
- package/.history/src/core/index_20240819232555.js +502 -0
- package/.history/src/core/index_20240819233404.js +502 -0
- package/.history/src/core/index_20240820003114.js +495 -0
- package/.history/src/core/index_20240820003120.js +495 -0
- package/.history/src/core/index_20240820003331.js +495 -0
- package/.history/src/core/index_20240820004126.js +498 -0
- package/.history/src/core/index_20240820004357.js +497 -0
- package/.history/src/core/index_20240820005103.js +498 -0
- package/.history/src/core/index_20240820005110.js +499 -0
- package/.history/src/core/index_20240820005206.js +497 -0
- package/.history/src/core/index_20240820005352.js +497 -0
- package/{src/core/index.js → .history/src/core/index_20240823224904.ts} +75 -224
- package/.history/src/core/index_20240823224905.js +505 -0
- package/.history/src/core/index_20240823231631.ts +530 -0
- package/.history/src/core/index_20240823231735.ts +530 -0
- package/.history/src/core/index_20240823232123.ts +539 -0
- package/.history/src/core/index_20240823232329.ts +539 -0
- package/.history/src/core/index_20240823233058.ts +539 -0
- package/.history/src/core/index_20240823234946.ts +539 -0
- package/.history/src/core/index_20240824005956.ts +534 -0
- package/.history/src/core/index_20240824010113.ts +534 -0
- package/.history/src/core/index_20240824010124.ts +534 -0
- package/.history/src/core/index_20240824010212.ts +534 -0
- package/.history/src/core/index_20240824010218.ts +534 -0
- package/.history/src/core/index_20240824010407.ts +534 -0
- package/.history/src/core/index_20240824010611.ts +534 -0
- package/.history/src/core/index_20240824010623.ts +534 -0
- package/.history/src/core/index_20240824010652.ts +534 -0
- package/.history/src/core/index_20240824011007.ts +534 -0
- package/.history/src/core/index_20240824210450.ts +534 -0
- package/.history/src/core/index_20240824210703.ts +534 -0
- package/.history/src/core/index_20240824210708.ts +534 -0
- package/.history/src/core/index_20240824211001.ts +537 -0
- package/.history/src/core/index_20240824211258.ts +537 -0
- package/.history/src/core/index_20240824211654.ts +537 -0
- package/.history/src/core/index_20240824211723.ts +537 -0
- package/.history/src/core/index_20240824211808.ts +538 -0
- package/.history/src/core/index_20240824214041.js +538 -0
- package/.history/src/core/index_20240824215312.ts +538 -0
- package/.history/src/core/index_20240824215341.ts +538 -0
- package/.history/src/core/index_20240824220703.ts +538 -0
- package/.history/src/core/index_20240824220709.ts +538 -0
- package/.history/src/core/index_20240825012244.ts +536 -0
- package/.history/src/core/index_20240825012435.ts +539 -0
- package/.history/src/core/index_20240825012440.ts +539 -0
- package/.history/src/core/index_20240826005054.ts +539 -0
- package/.history/src/core/index_20240826005321.ts +540 -0
- package/.history/src/core/index_20240826005410.ts +539 -0
- package/.history/src/core/index_20240826005418.ts +539 -0
- package/.history/src/core/index_20240830231825.ts +539 -0
- package/.history/src/core/index_20240831022416.ts +539 -0
- package/.history/src/core/index_20240901222314.js +459 -0
- package/.history/src/core/index_20240901222951.js +459 -0
- package/.history/src/core/index_20240901223824.js +471 -0
- package/.history/src/core/index_20240901223833.js +468 -0
- package/.history/src/core/index_20240902223954.js +447 -0
- package/.history/src/core/index_20240902224000.js +446 -0
- package/.history/src/core/index_20240902230345.js +448 -0
- package/.history/src/core/index_20240902231130.js +449 -0
- package/.history/src/core/index_20240902231559.js +449 -0
- package/.history/src/core/index_20240902232135.js +449 -0
- package/.history/src/core/index_20240902232809.js +452 -0
- package/.history/src/core/index_20240902232815.js +452 -0
- package/.history/src/core/index_20240903000104.js +467 -0
- package/.history/src/core/index_20240904001731.js +444 -0
- package/.history/src/core/index_20240904002038.ts +539 -0
- package/.history/src/core/index_20240904011848.js +444 -0
- package/.history/src/core/index_20240904012138.js +444 -0
- package/.history/src/core/index_20240904012743.js +444 -0
- package/.history/src/core/index_20240904013051.js +444 -0
- package/.history/src/core/resourceManager_20240403231531.ts +16 -0
- package/.history/src/core/resourceManager_20240823232627.ts +17 -0
- package/.history/src/core/resourceManager_20240824214014.js +16 -0
- package/.history/src/core/resourceManager_20240824214620.js +17 -0
- package/.history/src/core/scenarioManager_20240812203410.ts +86 -0
- package/.history/src/core/scenarioManager_20240812203839.ts +94 -0
- package/.history/src/core/scenarioManager_20240812213437.ts +85 -0
- package/.history/src/core/scenarioManager_20240813225852.ts +85 -0
- package/.history/src/core/scenarioManager_20240823235010.ts +85 -0
- package/.history/src/core/scenarioManager_20240904002038.ts +94 -0
- package/.history/src/core/scenarioManager_20240904012411.ts +94 -0
- package/.history/src/core/scenarioManager_20240904012519.ts +94 -0
- package/.history/src/index_20240403231531.js +6 -0
- package/.history/src/index_20240429233436.js +8 -0
- package/.history/src/index_20240429233926.js +8 -0
- package/.history/src/index_20240429234401.js +7 -0
- package/.history/src/index_20240429234404.js +6 -0
- package/.history/src/resource/soundObject_20240419004314.ts +71 -0
- package/.history/src/resource/soundObject_20240815034420.ts +66 -0
- package/.history/src/resource/soundObject_20240815034836.ts +79 -0
- package/.history/src/resource/soundObject_20240815034919.ts +87 -0
- package/.history/src/resource/soundObject_20240815040724.ts +81 -0
- package/.history/src/resource/soundObject_20240815041022.ts +87 -0
- package/.history/src/resource/soundObject_20240815042103.ts +87 -0
- package/.history/src/resource/soundObject_20240823235929.ts +91 -0
- package/.history/src/resource/soundObject_20240824213129.ts +99 -0
- package/.history/src/resource/soundObject_20240824213611.ts +101 -0
- package/.history/src/resource/soundObject_20240824215734.ts +101 -0
- package/.history/src/resource/soundObject_20240825004926.ts +101 -0
- package/.history/src/resource/soundObject_20240825004947.ts +101 -0
- package/.history/src/utils/logger_20240812174230.ts +13 -0
- package/.history/src/utils/logger_20240823232736.ts +14 -0
- package/.history/src/utils/logger_20240824214930.js +14 -0
- package/.history/src/utils/store_20240812174230.ts +17 -0
- package/.history/src/utils/store_20240823232948.ts +29 -0
- package/.history/src/utils/store_20240824214020.js +17 -0
- package/.history/src/utils/store_20240824214955.js +29 -0
- package/.history/src/utils/waitUtil_20240812174230.ts +4 -0
- package/.history/src/utils/waitUtil_20240823232739.ts +4 -0
- package/.history/src/utils/waitUtil_20240824214024.js +4 -0
- package/.history/src/utils/waitUtil_20240824215009.js +4 -0
- package/.history/test/js/title_20240428215305.js +254 -0
- package/.history/test/js/title_20240429221911.js +227 -0
- package/.history/test/js/title_20240429222806.js +243 -0
- package/.history/test/js/title_20240429222854.js +263 -0
- package/.history/test/js/title_20240429222906.js +263 -0
- package/.history/test/js/title_20240429235639.js +263 -0
- package/.history/test/js/title_20240429235840.js +263 -0
- package/.history/test/js/title_20240430014721.js +262 -0
- package/.history/test/js/title_20240430014759.js +254 -0
- package/.history/test/js/title_20240430134612.js +285 -0
- package/.history/test/js/title_20240430141051.js +285 -0
- package/.history/test/js/title_20240430173745.js +245 -0
- package/.history/tsconfig_20240812174230.json +22 -0
- package/.history/tsconfig_20240824010157.json +19 -0
- package/.history/tsconfig_20240824220700.json +20 -0
- package/.history/tsconfig_20240825011301.json +20 -0
- package/.history/webpack.config_20240423002825.js +37 -0
- package/.history/webpack.config_20240430001157.js +38 -0
- package/.history/webpack.config_20240430001309.js +37 -0
- package/.history/webpack.config_20240430002112.js +37 -0
- package/CLAUDE.md +96 -0
- package/LICENSE +21 -0
- package/README.md +149 -48
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/core/drawer.ts.html +1264 -0
- package/coverage/lcov-report/core/index.html +146 -0
- package/coverage/lcov-report/core/resourceManager.ts.html +136 -0
- package/coverage/lcov-report/core/scenarioManager.ts.html +373 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +146 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/resource/ImageObject.ts.html +433 -0
- package/coverage/lcov-report/resource/index.html +131 -0
- package/coverage/lcov-report/resource/soundObject.ts.html +346 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/utils/TextMeasurer.ts.html +520 -0
- package/coverage/lcov-report/utils/index.html +161 -0
- package/coverage/lcov-report/utils/logger.ts.html +142 -0
- package/coverage/lcov-report/utils/store.ts.html +151 -0
- package/coverage/lcov-report/utils/waitUtil.ts.html +97 -0
- package/coverage/lcov.info +882 -0
- package/dist/README.md +294 -0
- package/dist/engineConfig.json +10 -0
- package/dist/package.json +51 -0
- package/dist/parser/cli.js +61 -0
- package/dist/parser/parser.js +53 -0
- package/{src → dist/src}/core/drawer.js +2 -11
- package/dist/src/core/drawer.js.map +1 -0
- package/dist/src/core/index.js +969 -0
- package/{src → dist/src}/core/scenarioManager.js +5 -6
- package/dist/src/core/scenarioManager.js.map +1 -0
- package/{src → dist/src}/resource/ImageObject.js +2 -2
- package/{src → dist/src}/resource/soundObject.js +6 -4
- package/dist/src/resource/soundObject.js.map +1 -0
- package/dist/src/utils/fallbackTemplate.js +13 -0
- package/dist/src/utils/fallbackTemplate.js.map +1 -0
- package/{src → dist/src}/utils/logger.js +4 -3
- package/dist/src/utils/logger.js.map +1 -0
- package/{src → dist/src}/utils/waitUtil.js +4 -3
- package/dist/src/utils/waitUtil.js.map +1 -0
- package/dist/webtalekit-alpha-0.2.13.tgz +0 -0
- package/docs/event-system-specification.md +493 -0
- package/docs/glossary.html +833 -0
- package/docs/index.html +296 -0
- package/docs/tag-reference.html +1317 -0
- package/docs/ui-template-guide.html +1068 -0
- package/example/README.md +29 -0
- package/example/engineConfig.json +10 -0
- package/example/package-lock.json +5145 -0
- package/example/package.json +26 -0
- package/example/src/index.js +13 -0
- 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 +28 -0
- package/example/src/scene/background.scene +29 -0
- package/example/src/scene/character.scene +26 -0
- package/example/src/scene/choice.scene +97 -0
- package/example/src/scene/dialog.scene +105 -0
- package/example/src/scene/effects.scene +38 -0
- package/example/src/scene/en/animation.scene +28 -0
- package/example/src/scene/en/background.scene +26 -0
- package/example/src/scene/en/character.scene +26 -0
- package/example/src/scene/en/choice.scene +32 -0
- package/example/src/scene/en/effects.scene +37 -0
- package/example/src/scene/en/sound.scene +26 -0
- package/example/src/scene/en/text.scene +26 -0
- package/example/src/scene/en/title.scene +39 -0
- package/example/src/scene/if_test.scene +37 -0
- package/example/src/scene/resource-error-test.scene +15 -0
- package/example/src/scene/save-load-test.scene +48 -0
- package/example/src/scene/sound.scene +26 -0
- package/example/src/scene/test_error.scene +21 -0
- package/example/src/scene/text.scene +34 -0
- package/example/src/scene/title.scene +51 -0
- package/example/src/screen/incoming.html +474 -0
- package/example/src/screen/title.html +135 -0
- package/example/src/template.html +16 -0
- package/example/test-results/.last-run.json +4 -0
- package/example/webpack.config.js +69 -0
- package/image.png +0 -0
- package/package.json +3 -1
- package/playwright-report/index.html +71 -0
- package/s-plan1-5Light-s-1.jpg +0 -0
- package/test-results/.last-run.json +6 -0
- package/tests/e2e/if-global-attribute.spec.js +90 -0
- package/tests/e2e/resource-error-handling.spec.js +58 -0
- 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/src/core/drawer.js.map +0 -1
- package/src/core/scenarioManager.js.map +0 -1
- package/src/resource/soundObject.js.map +0 -1
- package/src/utils/logger.js.map +0 -1
- package/src/utils/waitUtil.js.map +0 -1
- /package/{src → dist/src}/core/resourceManager.js +0 -0
- /package/{src → dist/src}/core/resourceManager.js.map +0 -0
- /package/{src → dist/src}/resource/ImageObject.js.map +0 -0
- /package/{src → dist/src}/utils/store.js +0 -0
- /package/{src → dist/src}/utils/store.js.map +0 -0
package/.clinerules
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# CLINE RULES
|
|
2
|
+
|
|
3
|
+
## 役割
|
|
4
|
+
|
|
5
|
+
あなたは、 TypeScript のエキスパートであるエンジニアです。
|
|
6
|
+
日本語で応答しつつ、タスクの進め方を元に効率的にコーディングを進めてください。
|
|
7
|
+
調査結果は、.clinerules ファイルに追記してください。
|
|
8
|
+
|
|
9
|
+
## タスクの進め方
|
|
10
|
+
|
|
11
|
+
1. ブランチを切る
|
|
12
|
+
2. タスクを実装する
|
|
13
|
+
1. webTaleKitをビルドする
|
|
14
|
+
2. サンプルゲームをビルドして動作確認を行う
|
|
15
|
+
3. PlayWrightでテストを書く
|
|
16
|
+
4. テストを通す
|
|
17
|
+
5. プルリクエストを作成する
|
|
18
|
+
|
|
19
|
+
## プロジェクト概要
|
|
20
|
+
|
|
21
|
+
WebTaleKitはブラウザで動作するビジュアルノベルゲームエンジンです。
|
|
22
|
+
ゲームはsceneファイルと呼ばれるXMLとJavaScriptの組み合わせで記述されます。
|
|
23
|
+
ここで記述されるXMLはwebTaleScriptと呼ばれる独自のスクリプト言語で、ゲームの進行制御を記述します。
|
|
24
|
+
|
|
25
|
+
sceneファイルは以下の要素を持ちます。
|
|
26
|
+
- scenario: シナリオを記述します。テキスト、選択肢、遷移先などを記述します。
|
|
27
|
+
- script: シーンの設定を記述します。背景画像、BGM、テンプレートファイルなどを指定します。(webTaleScriptから呼び出すJavaScriptもここで記述します。)
|
|
28
|
+
|
|
29
|
+
主要なディレクトリ構成は以下の通りです。
|
|
30
|
+
- src
|
|
31
|
+
- core: ゲームエンジンのコア部分です。
|
|
32
|
+
- resource: ゲームで使用するリソースを管理するモジュールです。
|
|
33
|
+
- utils: ゲームで使用するユーティリティ関数(ロガーや待機、値共有用のStore)を管理するモジュールです。
|
|
34
|
+
- example: サンプルゲームが配置されています。動作確認もここで行います。
|
|
35
|
+
|
|
36
|
+
## メッセージウィンドウの改善点
|
|
37
|
+
|
|
38
|
+
### 現在の実装状況
|
|
39
|
+
- メッセージウィンドウは `example/src/screen/title.html` で定義されています
|
|
40
|
+
- メッセージウィンドウ(#messageWindow)は画面下部に配置され、幅100%、高さは画面の1/4(calc(720px / 4))
|
|
41
|
+
- メッセージテキスト(#messageView)はpタグとして実装され、パディングのみ設定されています
|
|
42
|
+
- テキスト表示処理は `src/core/drawer.ts` の `drawText` メソッドで行われ、1文字ずつテキストを追加しています
|
|
43
|
+
|
|
44
|
+
### 問題点
|
|
45
|
+
1. **テキスト表示領域の制限がない**:
|
|
46
|
+
- `#messageView` に幅と高さの制限が設定されていないため、テキストが長くなるとメッセージウィンドウの表示領域を超えてしまう
|
|
47
|
+
|
|
48
|
+
2. **テキスト折り返しの設定不足**:
|
|
49
|
+
- テキストの折り返しに関する設定(word-wrap, word-breakなど)が不足しています
|
|
50
|
+
|
|
51
|
+
3. **自動スクロール処理の欠如**:
|
|
52
|
+
- `overflow-y: auto` が設定されているため、テキストが長くなるとスクロールバーは表示されますが、自動的にスクロールする処理は実装されていません
|
|
53
|
+
|
|
54
|
+
### 修正案
|
|
55
|
+
1. **CSSの改善**:
|
|
56
|
+
- `#messageView` に幅と高さの制限を追加
|
|
57
|
+
- テキスト折り返しの設定を追加(overflow-wrap, word-break)
|
|
58
|
+
|
|
59
|
+
2. **drawTextメソッドの改善**:
|
|
60
|
+
- テキスト追加時にメッセージウィンドウの表示領域を超えないかチェック
|
|
61
|
+
- 必要に応じて自動スクロール処理を追加
|
|
62
|
+
|
|
63
|
+
### 修正対象ファイル
|
|
64
|
+
- `example/src/screen/title.html`: CSSスタイルの修正
|
|
65
|
+
- `src/core/drawer.ts`: drawTextメソッドの改善
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
# webTaleKit
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
## 目次
|
|
6
|
+
|
|
7
|
+
- 概要
|
|
8
|
+
- デモ
|
|
9
|
+
- 環境構築手順
|
|
10
|
+
- 動作確認手順
|
|
11
|
+
- Quick Start(デモゲームを弄ってみよう)
|
|
12
|
+
- できること
|
|
13
|
+
- できないこと
|
|
14
|
+
- フィードバックフォームのご案内
|
|
15
|
+
|
|
16
|
+
## 概要
|
|
17
|
+
|
|
18
|
+
TypeScript(JavaScript) ベースのビジュアルノベルゲームエンジンです。
|
|
19
|
+
UIをHTML・CSS・JavaScriptで柔軟に作成でき、シナリオをマークアップ言語とJavaScriptで制御できます。
|
|
20
|
+
自動スケーリング機能で、様々なウインドウで遊ぶことができます。
|
|
21
|
+
VS Codeの拡張機能を用いたGUIエディタやREST API呼び出しによる生成AI連携の追加を提供予定です。
|
|
22
|
+
|
|
23
|
+
## デモ
|
|
24
|
+
|
|
25
|
+
Firefoxでも、Chromeでも、Edgeでも、好きなブラウザを使いたまえ・・・!
|
|
26
|
+
<https://test-game-chi.vercel.app/>
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+
## 環境構築手順
|
|
30
|
+
|
|
31
|
+
1. Node.js(20以降)が必要です。(nvm等お好みの方法がある場合は、そちらでも構いません)
|
|
32
|
+
- Windowsの場合は、Node.js公式サイト (<https://nodejs.org/>) からインストールしてください。
|
|
33
|
+
- Macの場合は、`brew install node` を実行してインストールしてください。
|
|
34
|
+
- Linuxの場合は、以下のコマンドを実行して、インストールしてください。
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
|
|
38
|
+
sudo apt-get install -y nodejs
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
2. 以下のコマンドを実行してください
|
|
42
|
+
|
|
43
|
+
``` bash
|
|
44
|
+
npm create tale-game your-game-title
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
プロジェクトに移動して、`npm run play`を実行して、デモゲームが起動すれば、構築は完了です。
|
|
48
|
+
|
|
49
|
+
## 動作確認手順
|
|
50
|
+
|
|
51
|
+
以下のコマンドを実行してください。
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
git clone https://github.com/EndoHizumi/testGame.git
|
|
55
|
+
npm install
|
|
56
|
+
npm run play
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Quick Start(デモゲームを弄ってみよう
|
|
60
|
+
|
|
61
|
+
### 画像を差し替える
|
|
62
|
+
|
|
63
|
+
- キャラを変える場合
|
|
64
|
+
- src/resource/chara/guide.png に上書きしてください。
|
|
65
|
+
- 背景画像を変える
|
|
66
|
+
- src/resource/background/title_bg.png に上書きしてください。
|
|
67
|
+
- BGMを変える
|
|
68
|
+
- src/resource/bgm/title_theme.mp3 に上書きしてください。
|
|
69
|
+
|
|
70
|
+
- 選択肢の画像を変える
|
|
71
|
+
- src\resource\system\systemPicture\02_button\button.png に上書きしてください。
|
|
72
|
+
- 選択肢(マウスオーバー時)の画像を変える
|
|
73
|
+
- src\resource\system\systemPicture\02_button\button2.png に上書きしてください。
|
|
74
|
+
- 選択肢(クリック時)の画像を変える
|
|
75
|
+
- src\resource\system\systemPicture\02_button\button3.png に上書きしてください。
|
|
76
|
+
|
|
77
|
+
- キャラを増やす
|
|
78
|
+
- src\resource\character 以下に表示したい画像を置きます。
|
|
79
|
+
- 登場させたい行数で、`<show src="表示したい画像のパス"></show>` を記述する
|
|
80
|
+
- セリフを増やす
|
|
81
|
+
- セリフを表示させたい行数で、`<say name="キャラの名前">セリフをここに入れる</say>` を記述する
|
|
82
|
+
- 地の文を増やす
|
|
83
|
+
- 地の文を表示させたい行数で、`<text>セリフをここに入れる</text>` を記述する
|
|
84
|
+
|
|
85
|
+
- 選択肢を増やす
|
|
86
|
+
- 43行目のchoiceタグの中(44行-50行)で、以下のように記述すると、選択されたときに、地の文を表示する
|
|
87
|
+
|
|
88
|
+
``` html
|
|
89
|
+
<item label='選択肢の文言'>
|
|
90
|
+
<text>セリフをここに入れる</text>
|
|
91
|
+
</item>
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
実装例
|
|
95
|
+
|
|
96
|
+
``` html
|
|
97
|
+
<choice prompt="ゲームを始めますか?">
|
|
98
|
+
<item label="はい">
|
|
99
|
+
<jump index="5" />
|
|
100
|
+
</item>
|
|
101
|
+
<item label="いいえ">
|
|
102
|
+
<jump index="16" />
|
|
103
|
+
</item>
|
|
104
|
+
<item label='ちょっと待ってくれ'>
|
|
105
|
+
<text>承知しました。</text>
|
|
106
|
+
<jump index="1" />
|
|
107
|
+
</item>
|
|
108
|
+
</choice>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## 現在の状況
|
|
112
|
+
|
|
113
|
+
webTaleKitは、現在アルファ版です。
|
|
114
|
+
|
|
115
|
+
開発進捗は、[@endo_hizumi](https://x.com/endo_hizumi) で行っております。
|
|
116
|
+
実装予定の項目については、こちらの[Trello](https://trello.com/b/qYNGh7MY)からも確認できます。
|
|
117
|
+
|
|
118
|
+
デモをプレイした感想・WebTaleKitを使って気になったことなど、意見・感想はこちらで受け付けています!
|
|
119
|
+
[https://forms.gle/uejQwvwAb99wcJht7](https://forms.gle/uejQwvwAb99wcJht7)
|
|
120
|
+
|
|
121
|
+
検索Hashtag: #webTalekit
|
|
122
|
+
|
|
123
|
+
## アルファ版で、できること
|
|
124
|
+
|
|
125
|
+
- 地の文の表示
|
|
126
|
+
- キャラクターのセリフの表示・ボイスの再生
|
|
127
|
+
- キャラクターの画像の表示・位置変更・アニメーション
|
|
128
|
+
- その他の画像の画像の表示・位置変更・アニメーション
|
|
129
|
+
- キャラクターの複数表示・位置変更・アニメーション
|
|
130
|
+
- CGの表示・変更
|
|
131
|
+
- 背景画像の表示・変更
|
|
132
|
+
- 画像のフィルター操作
|
|
133
|
+
- モノクロ化
|
|
134
|
+
- セピア化
|
|
135
|
+
- 透明度の変更
|
|
136
|
+
- サイズの変更
|
|
137
|
+
- REST API呼び出し(レスポンスの表示)
|
|
138
|
+
- 定義した変数の表示
|
|
139
|
+
- 表示する文章・画像の条件分岐
|
|
140
|
+
- 選択肢の表示
|
|
141
|
+
- 選択肢の画像の変更
|
|
142
|
+
- 通常時
|
|
143
|
+
- マウスオーバー
|
|
144
|
+
- 選択時
|
|
145
|
+
- セリフのジャンプ
|
|
146
|
+
- Ctrlキーでの強制スキップ
|
|
147
|
+
- Enterキーで全文表示
|
|
148
|
+
- シナリオ(シーン)の切り替え
|
|
149
|
+
- BGMの再生・停止
|
|
150
|
+
- SEの再生・停止
|
|
151
|
+
- HTMLで作った画面の表示
|
|
152
|
+
- 解像度の設定変更
|
|
153
|
+
- JavaScript連携
|
|
154
|
+
- メソッドの呼び出し
|
|
155
|
+
- 式の実行
|
|
156
|
+
- 変数の定義・値の変更
|
|
157
|
+
|
|
158
|
+
## アルファ版(0.2.x-0.1.x)で出来ないこと
|
|
159
|
+
|
|
160
|
+
- Desktopアプリケーションへのビルド
|
|
161
|
+
- Android(iOS)向けのビルド
|
|
162
|
+
- 画面各種のボタン
|
|
163
|
+
- sayタグの以下の機能
|
|
164
|
+
- キャラが表示されていないときは、表示する
|
|
165
|
+
- セーブ&ロード機能
|
|
166
|
+
- showタグ / hideタグの以下の機能
|
|
167
|
+
- 子要素でフィルター指定
|
|
168
|
+
- 子要素でアニメーション指定
|
|
169
|
+
- スラッシュで区切ってリソース種類を指定
|
|
170
|
+
- JavaScript側での背景画像の変更
|
|
171
|
+
- soundタグの以下の機能
|
|
172
|
+
- pause
|
|
173
|
+
- setVolume
|
|
174
|
+
- getVolume
|
|
175
|
+
- bgmエイリアス
|
|
176
|
+
- voiceエイリアス
|
|
177
|
+
- seエイリアス
|
|
178
|
+
- quakeタグ(画面を揺らす)
|
|
179
|
+
- maskタグ(画面の暗転)
|
|
180
|
+
- JavaScriptでのリソースの動的定義
|
|
181
|
+
- セーブファイルの一覧の取得
|
|
182
|
+
- ゲーム設定ファイルの反映
|
|
183
|
+
- 画面用HTMLのcss・jsのインライン化・minify化
|
|
184
|
+
|
|
185
|
+
## アイコン素材
|
|
186
|
+
|
|
187
|
+
- <https://www.silhouette-illust.com/>
|
|
188
|
+
|
|
189
|
+
## カラーコード
|
|
190
|
+
|
|
191
|
+
青: #3178C6 (TypeScript BLue)
|
|
192
|
+
緑: #02a889 (WebTaleKit Green)
|
|
193
|
+
白: #f8f8f8 (White Smoke)
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# webTaleKit
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
## 目次
|
|
6
|
+
|
|
7
|
+
- 概要
|
|
8
|
+
- デモ
|
|
9
|
+
- 環境構築手順
|
|
10
|
+
- 動作確認手順
|
|
11
|
+
- Quick Start(デモゲームを弄ってみよう)
|
|
12
|
+
- できること
|
|
13
|
+
- できないこと
|
|
14
|
+
- フィードバックフォームのご案内
|
|
15
|
+
|
|
16
|
+
## 概要
|
|
17
|
+
|
|
18
|
+
TypeScript(JavaScript) ベースのビジュアルノベルゲームエンジンです。
|
|
19
|
+
UIをHTML・CSS・JavaScriptで柔軟に作成でき、シナリオをマークアップ言語とJavaScriptで制御できます。
|
|
20
|
+
自動スケーリング機能で、様々なウインドウで遊ぶことができます。
|
|
21
|
+
VS Codeの拡張機能を用いたGUIエディタやREST API呼び出しによる生成AI連携の追加を提供予定です。
|
|
22
|
+
|
|
23
|
+
## デモ
|
|
24
|
+
|
|
25
|
+
Firefoxでも、Chromeでも、Edgeでも、好きなブラウザを使いたまえ・・・!
|
|
26
|
+
<https://test-game-chi.vercel.app/>
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+
## 環境構築手順
|
|
30
|
+
|
|
31
|
+
1. Node.js(20以降)が必要です。(nvm等お好みの方法がある場合は、そちらでも構いません)
|
|
32
|
+
- Windowsの場合は、Node.js公式サイト (<https://nodejs.org/>) からインストールしてください。
|
|
33
|
+
- Macの場合は、`brew install node` を実行してインストールしてください。
|
|
34
|
+
- Linuxの場合は、以下のコマンドを実行して、インストールしてください。
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
|
|
38
|
+
sudo apt-get install -y nodejs
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
2. 以下のコマンドを実行してください
|
|
42
|
+
|
|
43
|
+
``` bash
|
|
44
|
+
npm create tale-game your-game-title
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
プロジェクトに移動して、`npm run play`を実行して、デモゲームが起動すれば、構築は完了です。
|
|
48
|
+
|
|
49
|
+
## Quick Start(デモゲームを弄ってみよう
|
|
50
|
+
|
|
51
|
+
### 画像を差し替える
|
|
52
|
+
|
|
53
|
+
- キャラを変える場合
|
|
54
|
+
- src/resource/chara/guide.png に上書きしてください。
|
|
55
|
+
- 背景画像を変える
|
|
56
|
+
- src/resource/background/title_bg.png に上書きしてください。
|
|
57
|
+
- BGMを変える
|
|
58
|
+
- src/resource/bgm/title_theme.mp3 に上書きしてください。
|
|
59
|
+
|
|
60
|
+
- 選択肢の画像を変える
|
|
61
|
+
- src\resource\system\systemPicture\02_button\button.png に上書きしてください。
|
|
62
|
+
- 選択肢(マウスオーバー時)の画像を変える
|
|
63
|
+
- src\resource\system\systemPicture\02_button\button2.png に上書きしてください。
|
|
64
|
+
- 選択肢(クリック時)の画像を変える
|
|
65
|
+
- src\resource\system\systemPicture\02_button\button3.png に上書きしてください。
|
|
66
|
+
|
|
67
|
+
### 要素を増やす
|
|
68
|
+
|
|
69
|
+
- キャラを増やす
|
|
70
|
+
- src\resource\character 以下に表示したい画像を置きます。
|
|
71
|
+
- 登場させたい行数で、`<show src="表示したい画像のパス"></show>` を記述する
|
|
72
|
+
- セリフを増やす
|
|
73
|
+
- セリフを表示させたい行数で、`<say name="キャラの名前">セリフをここに入れる</say>` を記述する
|
|
74
|
+
- 地の文を増やす
|
|
75
|
+
- 地の文を表示させたい行数で、`<text>セリフをここに入れる</text>` を記述する
|
|
76
|
+
|
|
77
|
+
- 選択肢を増やす
|
|
78
|
+
- src\scene\title.sceneの43行目のchoiceタグの中(44行-50行)で、以下のように記述すると、選択されたときに、地の文を表示する
|
|
79
|
+
|
|
80
|
+
``` html
|
|
81
|
+
<item label='選択肢の文言'>
|
|
82
|
+
<text>セリフをここに入れる</text>
|
|
83
|
+
</item>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
実装例
|
|
87
|
+
|
|
88
|
+
``` html
|
|
89
|
+
<choice prompt="ゲームを始めますか?">
|
|
90
|
+
<item label="はい">
|
|
91
|
+
<jump index="5" />
|
|
92
|
+
</item>
|
|
93
|
+
<item label="いいえ">
|
|
94
|
+
<jump index="16" />
|
|
95
|
+
</item>
|
|
96
|
+
<item label='ちょっと待ってくれ'>
|
|
97
|
+
<text>承知しました。</text>
|
|
98
|
+
<jump index="1" />
|
|
99
|
+
</item>
|
|
100
|
+
</choice>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 現在の状況
|
|
104
|
+
|
|
105
|
+
webTaleKitは、現在アルファ版です。
|
|
106
|
+
|
|
107
|
+
開発進捗は、[@endo_hizumi](https://x.com/endo_hizumi) で行っております。
|
|
108
|
+
実装予定の項目については、こちらの[Trello](https://trello.com/b/qYNGh7MY)からも確認できます。
|
|
109
|
+
|
|
110
|
+
デモをプレイした感想・WebTaleKitを使って気になったことなど、意見・感想はこちらで受け付けています!
|
|
111
|
+
[https://forms.gle/uejQwvwAb99wcJht7](https://forms.gle/uejQwvwAb99wcJht7)
|
|
112
|
+
|
|
113
|
+
検索Hashtag: #webTalekit
|
|
114
|
+
|
|
115
|
+
## アルファ版で、できること
|
|
116
|
+
|
|
117
|
+
- 地の文の表示
|
|
118
|
+
- キャラクターのセリフの表示・ボイスの再生
|
|
119
|
+
- キャラクターの画像の表示・位置変更・アニメーション
|
|
120
|
+
- その他の画像の画像の表示・位置変更・アニメーション
|
|
121
|
+
- キャラクターの複数表示・位置変更・アニメーション
|
|
122
|
+
- CGの表示・変更
|
|
123
|
+
- 背景画像の表示・変更
|
|
124
|
+
- 画像のフィルター操作
|
|
125
|
+
- モノクロ化
|
|
126
|
+
- セピア化
|
|
127
|
+
- 透明度の変更
|
|
128
|
+
- サイズの変更
|
|
129
|
+
- REST API呼び出し(レスポンスの表示)
|
|
130
|
+
- 定義した変数の表示
|
|
131
|
+
- 表示する文章・画像の条件分岐
|
|
132
|
+
- 選択肢の表示
|
|
133
|
+
- 選択肢の画像の変更
|
|
134
|
+
- 通常時
|
|
135
|
+
- マウスオーバー
|
|
136
|
+
- 選択時
|
|
137
|
+
- セリフのジャンプ
|
|
138
|
+
- Ctrlキーでの強制スキップ
|
|
139
|
+
- Enterキーで全文表示
|
|
140
|
+
- シナリオ(シーン)の切り替え
|
|
141
|
+
- BGMの再生・停止
|
|
142
|
+
- SEの再生・停止
|
|
143
|
+
- HTMLで作った画面の表示
|
|
144
|
+
- 解像度の設定変更
|
|
145
|
+
- JavaScript連携
|
|
146
|
+
- メソッドの呼び出し
|
|
147
|
+
- 式の実行
|
|
148
|
+
- 変数の定義・値の変更
|
|
149
|
+
|
|
150
|
+
## アルファ版(0.2.x-0.1.x)で出来ないこと
|
|
151
|
+
|
|
152
|
+
- Desktopアプリケーションへのビルド
|
|
153
|
+
- Android(iOS)向けのビルド
|
|
154
|
+
- 画面各種のボタン
|
|
155
|
+
- sayタグの以下の機能
|
|
156
|
+
- キャラが表示されていないときは、表示する
|
|
157
|
+
- セーブ&ロード機能
|
|
158
|
+
- showタグ / hideタグの以下の機能
|
|
159
|
+
- 子要素でフィルター指定
|
|
160
|
+
- 子要素でアニメーション指定
|
|
161
|
+
- スラッシュで区切ってリソース種類を指定
|
|
162
|
+
- JavaScript側での背景画像の変更
|
|
163
|
+
- soundタグの以下の機能
|
|
164
|
+
- pause
|
|
165
|
+
- setVolume
|
|
166
|
+
- getVolume
|
|
167
|
+
- bgmエイリアス
|
|
168
|
+
- voiceエイリアス
|
|
169
|
+
- seエイリアス
|
|
170
|
+
- quakeタグ(画面を揺らす)
|
|
171
|
+
- maskタグ(画面の暗転)
|
|
172
|
+
- JavaScriptでのリソースの動的定義
|
|
173
|
+
- セーブファイルの一覧の取得
|
|
174
|
+
- ゲーム設定ファイルの反映
|
|
175
|
+
- 画面用HTMLのcss・jsのインライン化・minify化
|
|
176
|
+
|
|
177
|
+
## アイコン素材
|
|
178
|
+
|
|
179
|
+
- <https://www.silhouette-illust.com/>
|
|
180
|
+
|
|
181
|
+
## カラーコード
|
|
182
|
+
|
|
183
|
+
青: #3178C6 (TypeScript BLue)
|
|
184
|
+
緑: #02a889 (WebTaleKit Green)
|
|
185
|
+
白: #f8f8f8 (White Smoke)
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# webTaleKit
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
## 目次
|
|
6
|
+
|
|
7
|
+
- 概要
|
|
8
|
+
- デモ
|
|
9
|
+
- 環境構築手順
|
|
10
|
+
- 動作確認手順
|
|
11
|
+
- Quick Start(デモゲームを弄ってみよう)
|
|
12
|
+
- できること
|
|
13
|
+
- できないこと
|
|
14
|
+
- フィードバックフォームのご案内
|
|
15
|
+
|
|
16
|
+
## 概要
|
|
17
|
+
|
|
18
|
+
TypeScript(JavaScript) ベースのビジュアルノベルゲームエンジンです。
|
|
19
|
+
UIをHTML・CSS・JavaScriptで柔軟に作成でき、シナリオをマークアップ言語とJavaScriptで制御できます。
|
|
20
|
+
自動スケーリング機能で、様々なウインドウで遊ぶことができます。
|
|
21
|
+
VS Codeの拡張機能を用いたGUIエディタやREST API呼び出しによる生成AI連携の追加を提供予定です。
|
|
22
|
+
|
|
23
|
+
## デモ
|
|
24
|
+
|
|
25
|
+
Firefoxでも、Chromeでも、Edgeでも、好きなブラウザを使いたまえ・・・!
|
|
26
|
+
<https://test-game-chi.vercel.app/>
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+
## 環境構築手順
|
|
30
|
+
|
|
31
|
+
1. Node.js(20以降)が必要です。(nvm等お好みの方法がある場合は、そちらでも構いません)
|
|
32
|
+
- Windowsの場合は、Node.js公式サイト (<https://nodejs.org/>) からインストールしてください。
|
|
33
|
+
- Macの場合は、`brew install node` を実行してインストールしてください。
|
|
34
|
+
- Linuxの場合は、以下のコマンドを実行して、インストールしてください。
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
|
|
38
|
+
sudo apt-get install -y nodejs
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
2. 以下のコマンドを実行してください
|
|
42
|
+
|
|
43
|
+
``` bash
|
|
44
|
+
npm create tale-game your-game-title
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
プロジェクトに移動して、`npm run play`を実行して、デモゲームが起動すれば、構築は完了です。
|
|
48
|
+
|
|
49
|
+
## Quick Start(デモゲームを弄ってみよう
|
|
50
|
+
|
|
51
|
+
### 画像を差し替える
|
|
52
|
+
|
|
53
|
+
- キャラを変える場合
|
|
54
|
+
- src/resource/chara/guide.png に上書きしてください。
|
|
55
|
+
- 背景画像を変える
|
|
56
|
+
- src/resource/background/title_bg.png に上書きしてください。
|
|
57
|
+
- BGMを変える
|
|
58
|
+
- src/resource/bgm/title_theme.mp3 に上書きしてください。
|
|
59
|
+
|
|
60
|
+
- 選択肢の画像を変える
|
|
61
|
+
- src\resource\system\systemPicture\02_button\button.png に上書きしてください。
|
|
62
|
+
- 選択肢(マウスオーバー時)の画像を変える
|
|
63
|
+
- src\resource\system\systemPicture\02_button\button2.png に上書きしてください。
|
|
64
|
+
- 選択肢(クリック時)の画像を変える
|
|
65
|
+
- src\resource\system\systemPicture\02_button\button3.png に上書きしてください。
|
|
66
|
+
|
|
67
|
+
### 要素を増やす
|
|
68
|
+
|
|
69
|
+
- キャラを増やす
|
|
70
|
+
- src\resource\character 以下に表示したい画像を置きます。
|
|
71
|
+
- 登場させたい行数で、`<show src="表示したい画像のパス"></show>` を記述する
|
|
72
|
+
- セリフを増やす
|
|
73
|
+
- セリフを表示させたい行数で、`<say name="キャラの名前">セリフをここに入れる</say>` を記述する
|
|
74
|
+
- 地の文を増やす
|
|
75
|
+
- 地の文を表示させたい行数で、`<text>セリフをここに入れる</text>` を記述する
|
|
76
|
+
|
|
77
|
+
- 選択肢を増やす
|
|
78
|
+
- src\scene\title.sceneの43行目のchoiceタグの中(44行-50行)で、以下のように記述すると、選択されたときに、地の文を表示する
|
|
79
|
+
|
|
80
|
+
``` html
|
|
81
|
+
<item label='選択肢の文言'>
|
|
82
|
+
<text>セリフをここに入れる</text>
|
|
83
|
+
</item>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
実装例
|
|
87
|
+
|
|
88
|
+
``` html
|
|
89
|
+
<choice prompt="ゲームを始めますか?">
|
|
90
|
+
<item label="はい">
|
|
91
|
+
<jump index="5" />
|
|
92
|
+
</item>
|
|
93
|
+
<item label="いいえ">
|
|
94
|
+
<jump index="16" />
|
|
95
|
+
</item>
|
|
96
|
+
<item label='ちょっと待ってくれ'>
|
|
97
|
+
<text>承知しました。</text>
|
|
98
|
+
<jump index="1" />
|
|
99
|
+
</item>
|
|
100
|
+
</choice>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 現在の状況
|
|
104
|
+
|
|
105
|
+
webTaleKitは、現在アルファ版です。
|
|
106
|
+
|
|
107
|
+
開発進捗は、[@endo_hizumi](https://x.com/endo_hizumi) で行っております。
|
|
108
|
+
※上記アカウントは、日常的なツイートも含まれているので、WebTaleKitの情報だけ見たい場合は、検索Hashtag: #webTaleKit で検索をお願いします。
|
|
109
|
+
|
|
110
|
+
実装予定の項目については、こちらの[Trello](https://trello.com/b/qYNGh7MY)からも確認できます。
|
|
111
|
+
|
|
112
|
+
デモをプレイした感想・WebTaleKitを使って気になったことなど、意見・感想はこちらで受け付けています!
|
|
113
|
+
[https://forms.gle/uejQwvwAb99wcJht7](https://forms.gle/uejQwvwAb99wcJht7)
|
|
114
|
+
|
|
115
|
+
## アルファ版で、できること
|
|
116
|
+
|
|
117
|
+
- 地の文の表示
|
|
118
|
+
- キャラクターのセリフの表示・ボイスの再生
|
|
119
|
+
- キャラクターの画像の表示・位置変更・アニメーション
|
|
120
|
+
- その他の画像の画像の表示・位置変更・アニメーション
|
|
121
|
+
- キャラクターの複数表示・位置変更・アニメーション
|
|
122
|
+
- CGの表示・変更
|
|
123
|
+
- 背景画像の表示・変更
|
|
124
|
+
- 画像のフィルター操作
|
|
125
|
+
- モノクロ化
|
|
126
|
+
- セピア化
|
|
127
|
+
- 透明度の変更
|
|
128
|
+
- サイズの変更
|
|
129
|
+
- REST API呼び出し(レスポンスの表示)
|
|
130
|
+
- 定義した変数の表示
|
|
131
|
+
- 表示する文章・画像の条件分岐
|
|
132
|
+
- 選択肢の表示
|
|
133
|
+
- 選択肢の画像の変更
|
|
134
|
+
- 通常時
|
|
135
|
+
- マウスオーバー
|
|
136
|
+
- 選択時
|
|
137
|
+
- セリフのジャンプ
|
|
138
|
+
- Ctrlキーでの強制スキップ
|
|
139
|
+
- Enterキーで全文表示
|
|
140
|
+
- シナリオ(シーン)の切り替え
|
|
141
|
+
- BGMの再生・停止
|
|
142
|
+
- SEの再生・停止
|
|
143
|
+
- HTMLで作った画面の表示
|
|
144
|
+
- 解像度の設定変更
|
|
145
|
+
- JavaScript連携
|
|
146
|
+
- メソッドの呼び出し
|
|
147
|
+
- 式の実行
|
|
148
|
+
- 変数の定義・値の変更
|
|
149
|
+
|
|
150
|
+
## アルファ版(0.2.x-0.1.x)で出来ないこと
|
|
151
|
+
|
|
152
|
+
- Desktopアプリケーションへのビルド
|
|
153
|
+
- Android(iOS)向けのビルド
|
|
154
|
+
- 画面各種のボタン
|
|
155
|
+
- sayタグの以下の機能
|
|
156
|
+
- キャラが表示されていないときは、表示する
|
|
157
|
+
- セーブ&ロード機能
|
|
158
|
+
- showタグ / hideタグの以下の機能
|
|
159
|
+
- 子要素でフィルター指定
|
|
160
|
+
- 子要素でアニメーション指定
|
|
161
|
+
- スラッシュで区切ってリソース種類を指定
|
|
162
|
+
- JavaScript側での背景画像の変更
|
|
163
|
+
- soundタグの以下の機能
|
|
164
|
+
- pause
|
|
165
|
+
- setVolume
|
|
166
|
+
- getVolume
|
|
167
|
+
- bgmエイリアス
|
|
168
|
+
- voiceエイリアス
|
|
169
|
+
- seエイリアス
|
|
170
|
+
- quakeタグ(画面を揺らす)
|
|
171
|
+
- maskタグ(画面の暗転)
|
|
172
|
+
- JavaScriptでのリソースの動的定義
|
|
173
|
+
- セーブファイルの一覧の取得
|
|
174
|
+
- ゲーム設定ファイルの反映
|
|
175
|
+
- 画面用HTMLのcss・jsのインライン化・minify化
|
|
176
|
+
|
|
177
|
+
## アイコン素材
|
|
178
|
+
|
|
179
|
+
- <https://www.silhouette-illust.com/>
|
|
180
|
+
|
|
181
|
+
## カラーコード
|
|
182
|
+
|
|
183
|
+
青: #3178C6 (TypeScript BLue)
|
|
184
|
+
緑: #02a889 (WebTaleKit Green)
|
|
185
|
+
白: #f8f8f8 (White Smoke)
|