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.
Files changed (391) hide show
  1. package/.claude/settings.local.json +12 -0
  2. package/.clinerules +65 -0
  3. package/.history/README_20240812174230.md +193 -0
  4. package/.history/README_20240812175424.md +185 -0
  5. package/.history/README_20240812191012.md +185 -0
  6. package/.history/README_20240812191155.md +185 -0
  7. package/.history/README_20240812191211.md +185 -0
  8. package/.history/README_20240812192035.md +185 -0
  9. package/.history/dist/src/core/index_20240815021552.js +474 -0
  10. package/.history/dist/src/core/index_20240815022042.js +476 -0
  11. package/.history/dist/src/core/index_20240815022206.js +476 -0
  12. package/.history/dist/src/core/index_20240815023104.js +478 -0
  13. package/.history/dist/src/core/index_20240817022019.js +494 -0
  14. package/.history/dist/src/core/index_20240818013827.js +493 -0
  15. package/.history/dist/src/core/index_20240820001418.js +502 -0
  16. package/.history/package_20240812174230.json +45 -0
  17. package/.history/package_20240825011731.json +45 -0
  18. package/.history/package_20240825011739.json +44 -0
  19. package/.history/parser/parser_20240812174230.js +50 -0
  20. package/.history/parser/parser_20240825012739.js +47 -0
  21. package/.history/parser/parser_20240825012835.js +52 -0
  22. package/.history/src/core/drawer_20240813091343.ts +262 -0
  23. package/.history/src/core/drawer_20240815232345.ts +262 -0
  24. package/.history/src/core/drawer_20240815232350.ts +262 -0
  25. package/.history/src/core/drawer_20240816025257.ts +357 -0
  26. package/.history/src/core/drawer_20240816025358.ts +357 -0
  27. package/.history/src/core/drawer_20240816030148.ts +365 -0
  28. package/.history/src/core/drawer_20240816231033.ts +294 -0
  29. package/.history/src/core/drawer_20240816231107.ts +262 -0
  30. package/.history/src/core/drawer_20240816231234.ts +268 -0
  31. package/.history/src/core/drawer_20240817013836.ts +290 -0
  32. package/.history/src/core/drawer_20240817015150.ts +289 -0
  33. package/.history/src/core/drawer_20240817015353.ts +290 -0
  34. package/.history/src/core/drawer_20240817021254.ts +291 -0
  35. package/.history/src/core/drawer_20240817023440.ts +295 -0
  36. package/.history/src/core/drawer_20240817023445.ts +295 -0
  37. package/.history/src/core/drawer_20240818015327.ts +295 -0
  38. package/.history/src/core/drawer_20240819231006.ts +318 -0
  39. package/.history/src/core/drawer_20240820002829.ts +317 -0
  40. package/.history/src/core/drawer_20240820003141.ts +295 -0
  41. package/.history/src/core/drawer_20240824010043.ts +295 -0
  42. package/.history/src/core/drawer_20240825013311.ts +293 -0
  43. package/.history/src/core/drawer_20240902235257.ts +295 -0
  44. package/.history/src/core/drawer_20240904002038.ts +262 -0
  45. package/.history/src/core/drawer_20240904004020.ts +262 -0
  46. package/.history/src/core/drawer_20240904004238.ts +262 -0
  47. package/.history/src/core/drawer_20240904005648.ts +262 -0
  48. package/.history/src/core/drawer_20240904005808.ts +262 -0
  49. package/.history/src/core/drawer_20240904010523.ts +262 -0
  50. package/.history/src/core/drawer_20240904011611.ts +262 -0
  51. package/.history/src/core/drawer_20240904011740.ts +262 -0
  52. package/.history/src/core/index_20240812190102.js +443 -0
  53. package/.history/src/core/index_20240812190105.js +443 -0
  54. package/.history/src/core/index_20240812205421.js +452 -0
  55. package/.history/src/core/index_20240812213441.js +452 -0
  56. package/.history/src/core/index_20240812214203.js +453 -0
  57. package/.history/src/core/index_20240813090823.js +453 -0
  58. package/.history/src/core/index_20240813230449.js +452 -0
  59. package/.history/src/core/index_20240813230539.js +452 -0
  60. package/.history/src/core/index_20240813231447.js +453 -0
  61. package/.history/src/core/index_20240813231449.js +453 -0
  62. package/.history/src/core/index_20240813231511.js +453 -0
  63. package/.history/src/core/index_20240813231531.js +453 -0
  64. package/.history/src/core/index_20240813231913.js +453 -0
  65. package/.history/src/core/index_20240813232356.js +453 -0
  66. package/.history/src/core/index_20240813232640.js +453 -0
  67. package/.history/src/core/index_20240813232900.js +453 -0
  68. package/.history/src/core/index_20240814221127.js +454 -0
  69. package/.history/src/core/index_20240814221322.js +454 -0
  70. package/.history/src/core/index_20240814221526.js +454 -0
  71. package/.history/src/core/index_20240814222048.js +454 -0
  72. package/.history/src/core/index_20240814222918.js +459 -0
  73. package/.history/src/core/index_20240814223136.js +459 -0
  74. package/.history/src/core/index_20240814223501.js +464 -0
  75. package/.history/src/core/index_20240814224347.js +468 -0
  76. package/.history/src/core/index_20240815013712.js +474 -0
  77. package/.history/src/core/index_20240815021534.js +474 -0
  78. package/.history/src/core/index_20240815023143.js +477 -0
  79. package/.history/src/core/index_20240815023207.js +479 -0
  80. package/.history/src/core/index_20240815023344.js +481 -0
  81. package/.history/src/core/index_20240815035600.js +479 -0
  82. package/.history/src/core/index_20240815041549.js +480 -0
  83. package/.history/src/core/index_20240815185515.js +481 -0
  84. package/.history/src/core/index_20240815192158.js +481 -0
  85. package/.history/src/core/index_20240815222912.js +482 -0
  86. package/.history/src/core/index_20240815224052.js +483 -0
  87. package/.history/src/core/index_20240815224843.js +484 -0
  88. package/.history/src/core/index_20240815224850.js +483 -0
  89. package/.history/src/core/index_20240815231706.js +479 -0
  90. package/.history/src/core/index_20240816025748.js +483 -0
  91. package/.history/src/core/index_20240816030102.js +484 -0
  92. package/.history/src/core/index_20240817013329.js +485 -0
  93. package/.history/src/core/index_20240817013526.js +485 -0
  94. package/.history/src/core/index_20240817013819.js +488 -0
  95. package/.history/src/core/index_20240817013829.js +488 -0
  96. package/.history/src/core/index_20240817014921.js +494 -0
  97. package/.history/src/core/index_20240817022057.js +494 -0
  98. package/.history/src/core/index_20240817023316.js +493 -0
  99. package/.history/src/core/index_20240818005637.js +493 -0
  100. package/.history/src/core/index_20240818005721.js +493 -0
  101. package/.history/src/core/index_20240818011804.js +493 -0
  102. package/.history/src/core/index_20240818013835.js +493 -0
  103. package/.history/src/core/index_20240818014310.js +493 -0
  104. package/.history/src/core/index_20240818014323.js +493 -0
  105. package/.history/src/core/index_20240818014333.js +493 -0
  106. package/.history/src/core/index_20240818020725.js +496 -0
  107. package/.history/src/core/index_20240819195504.js +497 -0
  108. package/.history/src/core/index_20240819202012.js +495 -0
  109. package/.history/src/core/index_20240819231228.js +501 -0
  110. package/.history/src/core/index_20240819232555.js +502 -0
  111. package/.history/src/core/index_20240819233404.js +502 -0
  112. package/.history/src/core/index_20240820003114.js +495 -0
  113. package/.history/src/core/index_20240820003120.js +495 -0
  114. package/.history/src/core/index_20240820003331.js +495 -0
  115. package/.history/src/core/index_20240820004126.js +498 -0
  116. package/.history/src/core/index_20240820004357.js +497 -0
  117. package/.history/src/core/index_20240820005103.js +498 -0
  118. package/.history/src/core/index_20240820005110.js +499 -0
  119. package/.history/src/core/index_20240820005206.js +497 -0
  120. package/.history/src/core/index_20240820005352.js +497 -0
  121. package/{src/core/index.js → .history/src/core/index_20240823224904.ts} +75 -224
  122. package/.history/src/core/index_20240823224905.js +505 -0
  123. package/.history/src/core/index_20240823231631.ts +530 -0
  124. package/.history/src/core/index_20240823231735.ts +530 -0
  125. package/.history/src/core/index_20240823232123.ts +539 -0
  126. package/.history/src/core/index_20240823232329.ts +539 -0
  127. package/.history/src/core/index_20240823233058.ts +539 -0
  128. package/.history/src/core/index_20240823234946.ts +539 -0
  129. package/.history/src/core/index_20240824005956.ts +534 -0
  130. package/.history/src/core/index_20240824010113.ts +534 -0
  131. package/.history/src/core/index_20240824010124.ts +534 -0
  132. package/.history/src/core/index_20240824010212.ts +534 -0
  133. package/.history/src/core/index_20240824010218.ts +534 -0
  134. package/.history/src/core/index_20240824010407.ts +534 -0
  135. package/.history/src/core/index_20240824010611.ts +534 -0
  136. package/.history/src/core/index_20240824010623.ts +534 -0
  137. package/.history/src/core/index_20240824010652.ts +534 -0
  138. package/.history/src/core/index_20240824011007.ts +534 -0
  139. package/.history/src/core/index_20240824210450.ts +534 -0
  140. package/.history/src/core/index_20240824210703.ts +534 -0
  141. package/.history/src/core/index_20240824210708.ts +534 -0
  142. package/.history/src/core/index_20240824211001.ts +537 -0
  143. package/.history/src/core/index_20240824211258.ts +537 -0
  144. package/.history/src/core/index_20240824211654.ts +537 -0
  145. package/.history/src/core/index_20240824211723.ts +537 -0
  146. package/.history/src/core/index_20240824211808.ts +538 -0
  147. package/.history/src/core/index_20240824214041.js +538 -0
  148. package/.history/src/core/index_20240824215312.ts +538 -0
  149. package/.history/src/core/index_20240824215341.ts +538 -0
  150. package/.history/src/core/index_20240824220703.ts +538 -0
  151. package/.history/src/core/index_20240824220709.ts +538 -0
  152. package/.history/src/core/index_20240825012244.ts +536 -0
  153. package/.history/src/core/index_20240825012435.ts +539 -0
  154. package/.history/src/core/index_20240825012440.ts +539 -0
  155. package/.history/src/core/index_20240826005054.ts +539 -0
  156. package/.history/src/core/index_20240826005321.ts +540 -0
  157. package/.history/src/core/index_20240826005410.ts +539 -0
  158. package/.history/src/core/index_20240826005418.ts +539 -0
  159. package/.history/src/core/index_20240830231825.ts +539 -0
  160. package/.history/src/core/index_20240831022416.ts +539 -0
  161. package/.history/src/core/index_20240901222314.js +459 -0
  162. package/.history/src/core/index_20240901222951.js +459 -0
  163. package/.history/src/core/index_20240901223824.js +471 -0
  164. package/.history/src/core/index_20240901223833.js +468 -0
  165. package/.history/src/core/index_20240902223954.js +447 -0
  166. package/.history/src/core/index_20240902224000.js +446 -0
  167. package/.history/src/core/index_20240902230345.js +448 -0
  168. package/.history/src/core/index_20240902231130.js +449 -0
  169. package/.history/src/core/index_20240902231559.js +449 -0
  170. package/.history/src/core/index_20240902232135.js +449 -0
  171. package/.history/src/core/index_20240902232809.js +452 -0
  172. package/.history/src/core/index_20240902232815.js +452 -0
  173. package/.history/src/core/index_20240903000104.js +467 -0
  174. package/.history/src/core/index_20240904001731.js +444 -0
  175. package/.history/src/core/index_20240904002038.ts +539 -0
  176. package/.history/src/core/index_20240904011848.js +444 -0
  177. package/.history/src/core/index_20240904012138.js +444 -0
  178. package/.history/src/core/index_20240904012743.js +444 -0
  179. package/.history/src/core/index_20240904013051.js +444 -0
  180. package/.history/src/core/resourceManager_20240403231531.ts +16 -0
  181. package/.history/src/core/resourceManager_20240823232627.ts +17 -0
  182. package/.history/src/core/resourceManager_20240824214014.js +16 -0
  183. package/.history/src/core/resourceManager_20240824214620.js +17 -0
  184. package/.history/src/core/scenarioManager_20240812203410.ts +86 -0
  185. package/.history/src/core/scenarioManager_20240812203839.ts +94 -0
  186. package/.history/src/core/scenarioManager_20240812213437.ts +85 -0
  187. package/.history/src/core/scenarioManager_20240813225852.ts +85 -0
  188. package/.history/src/core/scenarioManager_20240823235010.ts +85 -0
  189. package/.history/src/core/scenarioManager_20240904002038.ts +94 -0
  190. package/.history/src/core/scenarioManager_20240904012411.ts +94 -0
  191. package/.history/src/core/scenarioManager_20240904012519.ts +94 -0
  192. package/.history/src/index_20240403231531.js +6 -0
  193. package/.history/src/index_20240429233436.js +8 -0
  194. package/.history/src/index_20240429233926.js +8 -0
  195. package/.history/src/index_20240429234401.js +7 -0
  196. package/.history/src/index_20240429234404.js +6 -0
  197. package/.history/src/resource/soundObject_20240419004314.ts +71 -0
  198. package/.history/src/resource/soundObject_20240815034420.ts +66 -0
  199. package/.history/src/resource/soundObject_20240815034836.ts +79 -0
  200. package/.history/src/resource/soundObject_20240815034919.ts +87 -0
  201. package/.history/src/resource/soundObject_20240815040724.ts +81 -0
  202. package/.history/src/resource/soundObject_20240815041022.ts +87 -0
  203. package/.history/src/resource/soundObject_20240815042103.ts +87 -0
  204. package/.history/src/resource/soundObject_20240823235929.ts +91 -0
  205. package/.history/src/resource/soundObject_20240824213129.ts +99 -0
  206. package/.history/src/resource/soundObject_20240824213611.ts +101 -0
  207. package/.history/src/resource/soundObject_20240824215734.ts +101 -0
  208. package/.history/src/resource/soundObject_20240825004926.ts +101 -0
  209. package/.history/src/resource/soundObject_20240825004947.ts +101 -0
  210. package/.history/src/utils/logger_20240812174230.ts +13 -0
  211. package/.history/src/utils/logger_20240823232736.ts +14 -0
  212. package/.history/src/utils/logger_20240824214930.js +14 -0
  213. package/.history/src/utils/store_20240812174230.ts +17 -0
  214. package/.history/src/utils/store_20240823232948.ts +29 -0
  215. package/.history/src/utils/store_20240824214020.js +17 -0
  216. package/.history/src/utils/store_20240824214955.js +29 -0
  217. package/.history/src/utils/waitUtil_20240812174230.ts +4 -0
  218. package/.history/src/utils/waitUtil_20240823232739.ts +4 -0
  219. package/.history/src/utils/waitUtil_20240824214024.js +4 -0
  220. package/.history/src/utils/waitUtil_20240824215009.js +4 -0
  221. package/.history/test/js/title_20240428215305.js +254 -0
  222. package/.history/test/js/title_20240429221911.js +227 -0
  223. package/.history/test/js/title_20240429222806.js +243 -0
  224. package/.history/test/js/title_20240429222854.js +263 -0
  225. package/.history/test/js/title_20240429222906.js +263 -0
  226. package/.history/test/js/title_20240429235639.js +263 -0
  227. package/.history/test/js/title_20240429235840.js +263 -0
  228. package/.history/test/js/title_20240430014721.js +262 -0
  229. package/.history/test/js/title_20240430014759.js +254 -0
  230. package/.history/test/js/title_20240430134612.js +285 -0
  231. package/.history/test/js/title_20240430141051.js +285 -0
  232. package/.history/test/js/title_20240430173745.js +245 -0
  233. package/.history/tsconfig_20240812174230.json +22 -0
  234. package/.history/tsconfig_20240824010157.json +19 -0
  235. package/.history/tsconfig_20240824220700.json +20 -0
  236. package/.history/tsconfig_20240825011301.json +20 -0
  237. package/.history/webpack.config_20240423002825.js +37 -0
  238. package/.history/webpack.config_20240430001157.js +38 -0
  239. package/.history/webpack.config_20240430001309.js +37 -0
  240. package/.history/webpack.config_20240430002112.js +37 -0
  241. package/CLAUDE.md +96 -0
  242. package/LICENSE +21 -0
  243. package/README.md +149 -48
  244. package/coverage/lcov-report/base.css +224 -0
  245. package/coverage/lcov-report/block-navigation.js +87 -0
  246. package/coverage/lcov-report/core/drawer.ts.html +1264 -0
  247. package/coverage/lcov-report/core/index.html +146 -0
  248. package/coverage/lcov-report/core/resourceManager.ts.html +136 -0
  249. package/coverage/lcov-report/core/scenarioManager.ts.html +373 -0
  250. package/coverage/lcov-report/favicon.png +0 -0
  251. package/coverage/lcov-report/index.html +146 -0
  252. package/coverage/lcov-report/prettify.css +1 -0
  253. package/coverage/lcov-report/prettify.js +2 -0
  254. package/coverage/lcov-report/resource/ImageObject.ts.html +433 -0
  255. package/coverage/lcov-report/resource/index.html +131 -0
  256. package/coverage/lcov-report/resource/soundObject.ts.html +346 -0
  257. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  258. package/coverage/lcov-report/sorter.js +196 -0
  259. package/coverage/lcov-report/utils/TextMeasurer.ts.html +520 -0
  260. package/coverage/lcov-report/utils/index.html +161 -0
  261. package/coverage/lcov-report/utils/logger.ts.html +142 -0
  262. package/coverage/lcov-report/utils/store.ts.html +151 -0
  263. package/coverage/lcov-report/utils/waitUtil.ts.html +97 -0
  264. package/coverage/lcov.info +882 -0
  265. package/dist/README.md +294 -0
  266. package/dist/engineConfig.json +10 -0
  267. package/dist/package.json +51 -0
  268. package/dist/parser/cli.js +61 -0
  269. package/dist/parser/parser.js +53 -0
  270. package/{src → dist/src}/core/drawer.js +2 -11
  271. package/dist/src/core/drawer.js.map +1 -0
  272. package/dist/src/core/index.js +969 -0
  273. package/{src → dist/src}/core/scenarioManager.js +5 -6
  274. package/dist/src/core/scenarioManager.js.map +1 -0
  275. package/{src → dist/src}/resource/ImageObject.js +2 -2
  276. package/{src → dist/src}/resource/soundObject.js +6 -4
  277. package/dist/src/resource/soundObject.js.map +1 -0
  278. package/dist/src/utils/fallbackTemplate.js +13 -0
  279. package/dist/src/utils/fallbackTemplate.js.map +1 -0
  280. package/{src → dist/src}/utils/logger.js +4 -3
  281. package/dist/src/utils/logger.js.map +1 -0
  282. package/{src → dist/src}/utils/waitUtil.js +4 -3
  283. package/dist/src/utils/waitUtil.js.map +1 -0
  284. package/dist/webtalekit-alpha-0.2.13.tgz +0 -0
  285. package/docs/event-system-specification.md +493 -0
  286. package/docs/glossary.html +833 -0
  287. package/docs/index.html +296 -0
  288. package/docs/tag-reference.html +1317 -0
  289. package/docs/ui-template-guide.html +1068 -0
  290. package/example/README.md +29 -0
  291. package/example/engineConfig.json +10 -0
  292. package/example/package-lock.json +5145 -0
  293. package/example/package.json +26 -0
  294. package/example/src/index.js +13 -0
  295. package/example/src/resource/background/beach.jpg +0 -0
  296. package/example/src/resource/background/city.jpg +0 -0
  297. package/example/src/resource/background/crossroad.jpg +0 -0
  298. package/example/src/resource/background/forest.jpg +0 -0
  299. package/example/src/resource/background/laboratory.jpg +0 -0
  300. package/example/src/resource/background/library.jpg +0 -0
  301. package/example/src/resource/background/living_room.jpg +0 -0
  302. package/example/src/resource/background/music_room.jpg +0 -0
  303. package/example/src/resource/background/stage.jpg +0 -0
  304. package/example/src/resource/background/sunset.jpg +0 -0
  305. package/example/src/resource/background/title_bg.png +0 -0
  306. package/example/src/resource/bgm/calm_music.wav +0 -0
  307. package/example/src/resource/bgm/doorbell.mp3 +0 -0
  308. package/example/src/resource/bgm/nc366476_Virtual_Voyage.mp3 +0 -0
  309. package/example/src/resource/bgm/title_theme.mp3 +0 -0
  310. package/example/src/resource/chara/dancer.png +0 -0
  311. package/example/src/resource/chara/guest.png +0 -0
  312. package/example/src/resource/chara/guide.png +0 -0
  313. package/example/src/resource/chara/scientist.png +0 -0
  314. package/example/src/resource/config.js +0 -0
  315. package/example/src/resource/se/doorbell.mp3 +0 -0
  316. package/example/src/resource/system/systemPicture/01_message/message.png +0 -0
  317. package/example/src/resource/system/systemPicture/02_button/button.png +0 -0
  318. package/example/src/resource/system/systemPicture/02_button/button2.png +0 -0
  319. package/example/src/resource/system/systemPicture/02_button/button3.png +0 -0
  320. package/example/src/resource/system/systemPicture/03_system_button/auto.png +0 -0
  321. package/example/src/resource/system/systemPicture/03_system_button/auto2.png +0 -0
  322. package/example/src/resource/system/systemPicture/03_system_button/close.png +0 -0
  323. package/example/src/resource/system/systemPicture/03_system_button/close2.png +0 -0
  324. package/example/src/resource/system/systemPicture/03_system_button/config.png +0 -0
  325. package/example/src/resource/system/systemPicture/03_system_button/config2.png +0 -0
  326. package/example/src/resource/system/systemPicture/03_system_button/load.png +0 -0
  327. package/example/src/resource/system/systemPicture/03_system_button/load2.png +0 -0
  328. package/example/src/resource/system/systemPicture/03_system_button/log.png +0 -0
  329. package/example/src/resource/system/systemPicture/03_system_button/log2.png +0 -0
  330. package/example/src/resource/system/systemPicture/03_system_button/menu.png +0 -0
  331. package/example/src/resource/system/systemPicture/03_system_button/menu2.png +0 -0
  332. package/example/src/resource/system/systemPicture/03_system_button/qload.png +0 -0
  333. package/example/src/resource/system/systemPicture/03_system_button/qload2.png +0 -0
  334. package/example/src/resource/system/systemPicture/03_system_button/qsave.png +0 -0
  335. package/example/src/resource/system/systemPicture/03_system_button/qsave2.png +0 -0
  336. package/example/src/resource/system/systemPicture/03_system_button/save.png +0 -0
  337. package/example/src/resource/system/systemPicture/03_system_button/save2.png +0 -0
  338. package/example/src/resource/system/systemPicture/03_system_button/screen.png +0 -0
  339. package/example/src/resource/system/systemPicture/03_system_button/screen2.png +0 -0
  340. package/example/src/resource/system/systemPicture/03_system_button/skip.png +0 -0
  341. package/example/src/resource/system/systemPicture/03_system_button/skip2.png +0 -0
  342. package/example/src/resource/system/systemPicture/03_system_button/title.png +0 -0
  343. package/example/src/resource/system/systemPicture/03_system_button/title2.png +0 -0
  344. package/example/src/resource/system/systemPicture//345/210/251/347/224/250/350/246/217/347/264/204.txt +0 -0
  345. package/example/src/resource/system/wait.gif +0 -0
  346. package/example/src/scene/animation.scene +28 -0
  347. package/example/src/scene/background.scene +29 -0
  348. package/example/src/scene/character.scene +26 -0
  349. package/example/src/scene/choice.scene +97 -0
  350. package/example/src/scene/dialog.scene +105 -0
  351. package/example/src/scene/effects.scene +38 -0
  352. package/example/src/scene/en/animation.scene +28 -0
  353. package/example/src/scene/en/background.scene +26 -0
  354. package/example/src/scene/en/character.scene +26 -0
  355. package/example/src/scene/en/choice.scene +32 -0
  356. package/example/src/scene/en/effects.scene +37 -0
  357. package/example/src/scene/en/sound.scene +26 -0
  358. package/example/src/scene/en/text.scene +26 -0
  359. package/example/src/scene/en/title.scene +39 -0
  360. package/example/src/scene/if_test.scene +37 -0
  361. package/example/src/scene/resource-error-test.scene +15 -0
  362. package/example/src/scene/save-load-test.scene +48 -0
  363. package/example/src/scene/sound.scene +26 -0
  364. package/example/src/scene/test_error.scene +21 -0
  365. package/example/src/scene/text.scene +34 -0
  366. package/example/src/scene/title.scene +51 -0
  367. package/example/src/screen/incoming.html +474 -0
  368. package/example/src/screen/title.html +135 -0
  369. package/example/src/template.html +16 -0
  370. package/example/test-results/.last-run.json +4 -0
  371. package/example/webpack.config.js +69 -0
  372. package/image.png +0 -0
  373. package/package.json +3 -1
  374. package/playwright-report/index.html +71 -0
  375. package/s-plan1-5Light-s-1.jpg +0 -0
  376. package/test-results/.last-run.json +6 -0
  377. package/tests/e2e/if-global-attribute.spec.js +90 -0
  378. package/tests/e2e/resource-error-handling.spec.js +58 -0
  379. package/tests/e2e/screenshots/before-error-check.png +0 -0
  380. package/tests/e2e/screenshots/choices.png +0 -0
  381. package/tests/e2e/screenshots/message-window-click-wait.png +0 -0
  382. package/src/core/drawer.js.map +0 -1
  383. package/src/core/scenarioManager.js.map +0 -1
  384. package/src/resource/soundObject.js.map +0 -1
  385. package/src/utils/logger.js.map +0 -1
  386. package/src/utils/waitUtil.js.map +0 -1
  387. /package/{src → dist/src}/core/resourceManager.js +0 -0
  388. /package/{src → dist/src}/core/resourceManager.js.map +0 -0
  389. /package/{src → dist/src}/resource/ImageObject.js.map +0 -0
  390. /package/{src → dist/src}/utils/store.js +0 -0
  391. /package/{src → dist/src}/utils/store.js.map +0 -0
@@ -0,0 +1,285 @@
1
+ let index = 0
2
+ export const sceneConfig = {
3
+ name: 'title',
4
+ background: './resource/background/back.jpg',
5
+ template: './screen/title.html',
6
+ bgm: './resource/bgm/maou_game_village05.mp3'
7
+ }
8
+ export const scenario = [
9
+ {
10
+ msg: 'タップでスタート',
11
+ },
12
+ {
13
+ type: 'newpage',
14
+ },
15
+ {
16
+ type:'sound',
17
+ path: './resource/bgm/maou_game_village05.mp3',
18
+ play: null,
19
+ loop: null
20
+ },
21
+ {
22
+ type: 'choice',
23
+ prompt: '誰を呼び出しますか?',
24
+ position: 'auto',
25
+ items: [
26
+ {
27
+ id: 1,
28
+ label: 'ずんだもん',
29
+ onSelect: [
30
+ {
31
+ type: 'show',
32
+ path: './resource/character/01_zundamon/01_zundamon.png',
33
+ pos: {
34
+ x: 1280 / 2 - 350 / 2,
35
+ y: 0,
36
+ },
37
+ size: {
38
+ width: 350,
39
+ height: 700,
40
+ },
41
+ },
42
+ {
43
+ type: 'text',
44
+ msg: 'ずんだもんを呼び出しました。',
45
+ },
46
+ {
47
+ type: 'show',
48
+ name: '01_zundamon.png',
49
+ path: './resource/character/01_zundamon/02_zundamon.png',
50
+ pos: {
51
+ x: 1280 / 2 - 350 / 2,
52
+ y: 0,
53
+ },
54
+ size: {
55
+ width: 350,
56
+ height: 700,
57
+ },
58
+ },
59
+ {
60
+ type: 'say',
61
+ name: 'ずんだもん',
62
+ text:{ msg: 'ずんだもんなのだ!' },
63
+ voice: {
64
+ path: './resource/voice/01_zundamon.wav',
65
+ play: null,
66
+ },
67
+ },
68
+ {
69
+ type: 'choice',
70
+ prompt: 'どっちを言ってほしいのだ?',
71
+ items: [
72
+ {
73
+ id: 1,
74
+ label: 'ずんだもんなのだ!',
75
+ onSelect: [
76
+ {
77
+ type: 'text',
78
+ msg: 'ずんだもんなのだ!',
79
+ },
80
+ ],
81
+ src: {
82
+ default:
83
+ './resource/system/systemPicture/02_button/button.png',
84
+ hover:
85
+ './resource/system/systemPicture/02_button/button2.png',
86
+ select:
87
+ './resource/system/systemPicture/02_button/button3.png',
88
+ },
89
+ },
90
+ {
91
+ id: 2,
92
+ label: 'ずんだもんだよ!',
93
+ onSelect: [
94
+ {
95
+ type: 'text',
96
+ msg: 'ずんだもんだよ!',
97
+ },
98
+ ],
99
+ src: {
100
+ default:
101
+ './resource/system/systemPicture/02_button/button.png',
102
+ hover:
103
+ './resource/system/systemPicture/02_button/button2.png',
104
+ select:
105
+ './resource/system/systemPicture/02_button/button3.png',
106
+ },
107
+ },
108
+ ],
109
+ },
110
+ ],
111
+ src: {
112
+ default: './resource/system/systemPicture/02_button/button.png',
113
+ hover: './resource/system/systemPicture/02_button/button2.png',
114
+ select: './resource/system/systemPicture/02_button/button3.png',
115
+ },
116
+ },
117
+ {
118
+ id: 2,
119
+ label: '春日部つむぎ',
120
+ onSelect: [
121
+ {
122
+ type: 'show',
123
+ path: './resource/character/02_kasukabeTsumugi/01_kasukabeTsumugi.png',
124
+ pos: {
125
+ x: 1280 / 2 - 350 / 2,
126
+ y: 0,
127
+ },
128
+ size: {
129
+ width: 350,
130
+ height: 700,
131
+ },
132
+ },
133
+ {
134
+ type: 'text',
135
+ msg: '春日部つむぎを呼び出しました。',
136
+ },
137
+ {
138
+ type: 'show',
139
+ path: './resource/character/02_kasukabeTsumugi/02_kasukabeTsumugi.png',
140
+ pos: {
141
+ x: 1280 / 2 - 350 / 2,
142
+ y: 0,
143
+ },
144
+ size: {
145
+ width: 350,
146
+ height: 700,
147
+ },
148
+ },
149
+ {
150
+ type: 'text',
151
+ msg: 'こんにちは!あーしは春日部つむぎだよ!',
152
+ },
153
+ ],
154
+ src: {
155
+ default: './resource/system/systemPicture/02_button/button.png',
156
+ hover: './resource/system/systemPicture/02_button/button2.png',
157
+ select: './resource/system/systemPicture/02_button/button3.png',
158
+ },
159
+ },
160
+ ],
161
+ },
162
+ {
163
+ type: 'choice',
164
+ prompt: '誰を消しますか?',
165
+ items: [
166
+ {
167
+ id: 1,
168
+ label: 'ずんだもん',
169
+ onSelect: [
170
+ {
171
+ type: 'hide',
172
+ name: '01_zundamon.png',
173
+ },
174
+ {
175
+ type: 'text',
176
+ msg: 'ずんだもんを消しました。',
177
+ },
178
+ ],
179
+ src: {
180
+ default: './resource/system/systemPicture/02_button/button.png',
181
+ hover: './resource/system/systemPicture/02_button/button2.png',
182
+ select: './resource/system/systemPicture/02_button/button3.png',
183
+ }
184
+ },
185
+ {
186
+ id: 2,
187
+ label: '春日部つむぎ',
188
+ onSelect: [
189
+ {
190
+ type: 'hide',
191
+ name: '01_kasukabeTsumugi.png',
192
+ },
193
+ {
194
+ type: 'hide',
195
+ name: '02_kasukabeTsumugi.png',
196
+ },
197
+ {
198
+ type: 'text',
199
+ msg: '春日部つむぎを消しました。',
200
+ },
201
+ ],
202
+ src: {
203
+ default: './resource/system/systemPicture/02_button/button.png',
204
+ hover: './resource/system/systemPicture/02_button/button2.png',
205
+ select: './resource/system/systemPicture/02_button/button3.png',
206
+ }
207
+ },
208
+ ],
209
+ },
210
+ {
211
+ type: 'for',
212
+ itr: [100, 250,500],
213
+ variableName:'point',
214
+ items:[
215
+ {
216
+ type: 'show',
217
+ name: '01_zundamon.png',
218
+ path: './resource/character/01_zundamon/02_zundamon.png',
219
+ pos: {
220
+ x: 1280 / 2 - 350 / 2,
221
+ y: 'point',
222
+ },
223
+ size: {
224
+ width: 550,
225
+ height: 700,
226
+ },
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ type: 'for',
232
+ itr: [100, 250,500],
233
+ variableName:'point',
234
+ items:[
235
+ {
236
+ type: 'text',
237
+ msg: 'point'
238
+ }
239
+ ]
240
+ },
241
+ {
242
+ type: 'call',
243
+ func: 'hoge=1;'
244
+ },
245
+ {
246
+ type: 'if',
247
+ condition: 'hoge==1',
248
+ then: [
249
+ {
250
+ type: 'text',
251
+ msg: 'hogeは1だよ!',
252
+ },
253
+ ],
254
+ else: [
255
+ {
256
+ type: 'text',
257
+ msg: 'hogeは1じゃないよ!',
258
+ },
259
+ ],
260
+ },
261
+ {
262
+ type: 'call',
263
+ func: 'hoge=2;'
264
+ },
265
+ {
266
+ type: 'if',
267
+ condition: 'hoge==1',
268
+ then: [
269
+ {
270
+ type: 'text',
271
+ msg: 'hogeは1だよ!',
272
+ },
273
+ ],
274
+ else: [
275
+ {
276
+ type: 'text',
277
+ msg: 'hogeは1じゃないよ!',
278
+ },
279
+ ],
280
+ },
281
+ {
282
+ type: 'jump',
283
+ index: 3,
284
+ },
285
+ ]
@@ -0,0 +1,245 @@
1
+ let index = 0
2
+ export const sceneConfig = {
3
+ name: 'title',
4
+ background: './resource/background/back.jpg',
5
+ template: './screen/title.html',
6
+ bgm: './resource/bgm/maou_game_village05.mp3'
7
+ }
8
+ export const scenario = [
9
+ {
10
+ msg: 'タップでスタート',
11
+ },
12
+ {
13
+ type: 'newpage',
14
+ },
15
+ {
16
+ type:'sound',
17
+ path: './resource/bgm/maou_game_village05.mp3',
18
+ play: null,
19
+ loop: null
20
+ },
21
+ {
22
+ type: 'choice',
23
+ prompt: '誰を呼び出しますか?',
24
+ position: 'auto',
25
+ items: [
26
+ {
27
+ id: 1,
28
+ label: 'ずんだもん',
29
+ onSelect: [
30
+ {
31
+ type: 'show',
32
+ path: './resource/character/01_zundamon/01_zundamon.png',
33
+ pos: {
34
+ x: 1280 / 2 - 350 / 2,
35
+ y: 0,
36
+ },
37
+ size: {
38
+ width: 350,
39
+ height: 700,
40
+ },
41
+ },
42
+ {
43
+ type: 'text',
44
+ msg: 'ずんだもんを呼び出しました。',
45
+ },
46
+ {
47
+ type: 'show',
48
+ name: '01_zundamon.png',
49
+ path: './resource/character/01_zundamon/02_zundamon.png',
50
+ pos: {
51
+ x: 1280 / 2 - 350 / 2,
52
+ y: 0,
53
+ },
54
+ size: {
55
+ width: 350,
56
+ height: 700,
57
+ },
58
+ },
59
+ {
60
+ type: 'say',
61
+ name: 'ずんだもん',
62
+ text:{ msg: 'ずんだもんなのだ!' },
63
+ voice: {
64
+ path: './resource/voice/01_zundamon.wav',
65
+ play: null,
66
+ },
67
+ },
68
+ {
69
+ type: 'choice',
70
+ prompt: 'どっちを言ってほしいのだ?',
71
+ items: [
72
+ {
73
+ id: 1,
74
+ label: 'ずんだもんなのだ!',
75
+ onSelect: [
76
+ {
77
+ type: 'text',
78
+ msg: 'ずんだもんなのだ!',
79
+ },
80
+ ],
81
+ src: {
82
+ default:
83
+ './resource/system/systemPicture/02_button/button.png',
84
+ hover:
85
+ './resource/system/systemPicture/02_button/button2.png',
86
+ select:
87
+ './resource/system/systemPicture/02_button/button3.png',
88
+ },
89
+ },
90
+ {
91
+ id: 2,
92
+ label: 'ずんだもんだよ!',
93
+ onSelect: [
94
+ {
95
+ type: 'text',
96
+ msg: 'ずんだもんだよ!',
97
+ },
98
+ ],
99
+ src: {
100
+ default:
101
+ './resource/system/systemPicture/02_button/button.png',
102
+ hover:
103
+ './resource/system/systemPicture/02_button/button2.png',
104
+ select:
105
+ './resource/system/systemPicture/02_button/button3.png',
106
+ },
107
+ },
108
+ ],
109
+ },
110
+ ],
111
+ src: {
112
+ default: './resource/system/systemPicture/02_button/button.png',
113
+ hover: './resource/system/systemPicture/02_button/button2.png',
114
+ select: './resource/system/systemPicture/02_button/button3.png',
115
+ },
116
+ },
117
+ {
118
+ id: 2,
119
+ label: '春日部つむぎ',
120
+ onSelect: [
121
+ {
122
+ type: 'show',
123
+ path: './resource/character/02_kasukabeTsumugi/01_kasukabeTsumugi.png',
124
+ pos: {
125
+ x: 1280 / 2 - 350 / 2,
126
+ y: 0,
127
+ },
128
+ size: {
129
+ width: 350,
130
+ height: 700,
131
+ },
132
+ },
133
+ {
134
+ type: 'text',
135
+ msg: '春日部つむぎを呼び出しました。',
136
+ },
137
+ {
138
+ type: 'show',
139
+ path: './resource/character/02_kasukabeTsumugi/02_kasukabeTsumugi.png',
140
+ pos: {
141
+ x: 1280 / 2 - 350 / 2,
142
+ y: 0,
143
+ },
144
+ size: {
145
+ width: 350,
146
+ height: 700,
147
+ },
148
+ },
149
+ {
150
+ type: 'text',
151
+ msg: 'こんにちは!あーしは春日部つむぎだよ!',
152
+ },
153
+ ],
154
+ src: {
155
+ default: './resource/system/systemPicture/02_button/button.png',
156
+ hover: './resource/system/systemPicture/02_button/button2.png',
157
+ select: './resource/system/systemPicture/02_button/button3.png',
158
+ },
159
+ },
160
+ ],
161
+ },
162
+ {
163
+ type: 'choice',
164
+ prompt: '誰を消しますか?',
165
+ items: [
166
+ {
167
+ id: 1,
168
+ label: 'ずんだもん',
169
+ onSelect: [
170
+ {
171
+ type: 'hide',
172
+ name: '01_zundamon.png',
173
+ },
174
+ {
175
+ type: 'text',
176
+ msg: 'ずんだもんを消しました。',
177
+ },
178
+ ],
179
+ src: {
180
+ default: './resource/system/systemPicture/02_button/button.png',
181
+ hover: './resource/system/systemPicture/02_button/button2.png',
182
+ select: './resource/system/systemPicture/02_button/button3.png',
183
+ }
184
+ },
185
+ {
186
+ id: 2,
187
+ label: '春日部つむぎ',
188
+ onSelect: [
189
+ {
190
+ type: 'hide',
191
+ name: '01_kasukabeTsumugi.png',
192
+ },
193
+ {
194
+ type: 'hide',
195
+ name: '02_kasukabeTsumugi.png',
196
+ },
197
+ {
198
+ type: 'text',
199
+ msg: '春日部つむぎを消しました。',
200
+ },
201
+ ],
202
+ src: {
203
+ default: './resource/system/systemPicture/02_button/button.png',
204
+ hover: './resource/system/systemPicture/02_button/button2.png',
205
+ select: './resource/system/systemPicture/02_button/button3.png',
206
+ }
207
+ },
208
+ ],
209
+ },
210
+ {
211
+ type: 'for',
212
+ itr: [100, 250,500],
213
+ variableName:'point',
214
+ items:[
215
+ {
216
+ type: 'show',
217
+ name: '01_zundamon.png',
218
+ path: './resource/character/01_zundamon/02_zundamon.png',
219
+ pos: {
220
+ x: 1280 / 2 - 350 / 2,
221
+ y: 'point',
222
+ },
223
+ size: {
224
+ width: 550,
225
+ height: 700,
226
+ },
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ type: 'for',
232
+ itr: [100, 250,500],
233
+ variableName:'point',
234
+ items:[
235
+ {
236
+ type: 'text',
237
+ msg: 'point'
238
+ }
239
+ ]
240
+ },
241
+ {
242
+ type: 'jump',
243
+ index: 3,
244
+ },
245
+ ]
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "forceConsistentCasingInFileNames": true,
4
+ "strict": true,
5
+ "outDir": "./dist/src/",
6
+ "sourceMap": true,
7
+ "noImplicitAny": true,
8
+ "module": "commonjs",
9
+ "target": "es5",
10
+ "allowJs": true,
11
+ "esModuleInterop": true,
12
+ "noEmitOnError": true,
13
+ "moduleResolution": "node"
14
+ },
15
+ "include": [
16
+ "src/core/drawer.ts",
17
+ "src/core/scenarioManager.ts",
18
+ "src/resource/ImageObject.ts",
19
+ "src/resource/soundObject.ts"
20
+ ],
21
+ "exclude": ["node_modules", "dist"]
22
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "forceConsistentCasingInFileNames": true,
4
+ "strict": true,
5
+ "outDir": "./dist/src/",
6
+ "sourceMap": true,
7
+ "noImplicitAny": true,
8
+ "module": "commonjs",
9
+ "target": "es5",
10
+ "allowJs": true,
11
+ "esModuleInterop": true,
12
+ "noEmitOnError": true,
13
+ "moduleResolution": "node"
14
+ },
15
+ "include": [
16
+ "src/**/*.ts"
17
+ ],
18
+ "exclude": ["node_modules", "dist"]
19
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "forceConsistentCasingInFileNames": true,
4
+ "strict": true,
5
+ "outDir": "./dist/src/",
6
+ "sourceMap": true,
7
+ "noImplicitAny": true,
8
+ "module": "commonjs",
9
+ "target": "es5",
10
+ "allowJs": true,
11
+ "esModuleInterop": true,
12
+ "noEmitOnError": true,
13
+ "moduleResolution": "node",
14
+ "resolveJsonModule": true,
15
+ },
16
+ "include": [
17
+ "src/**/*.ts"
18
+ ],
19
+ "exclude": ["node_modules", "dist"]
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "forceConsistentCasingInFileNames": true,
4
+ "strict": true,
5
+ "outDir": "./dist/",
6
+ "sourceMap": true,
7
+ "noImplicitAny": true,
8
+ "module": "commonjs",
9
+ "target": "es5",
10
+ "allowJs": true,
11
+ "esModuleInterop": true,
12
+ "noEmitOnError": true,
13
+ "moduleResolution": "node",
14
+ "resolveJsonModule": true,
15
+ },
16
+ "include": [
17
+ "src/**/*.ts"
18
+ ],
19
+ "exclude": ["node_modules", "dist"]
20
+ }
@@ -0,0 +1,37 @@
1
+ const HtmlWebpackPlugin = require('html-webpack-plugin');
2
+ const path = require('path');
3
+
4
+ module.exports = {
5
+ mode: 'development',
6
+ entry: './src/index.js', // エントリーポイントのファイル
7
+ output: {
8
+ filename: 'bundle.js', // 出力ファイル名
9
+ path: path.resolve(__dirname, 'dist'), // 出力ディレクトリ
10
+ },
11
+ plugins: [
12
+ new HtmlWebpackPlugin({
13
+ template: './src/template.html', // (オプション) 使用するHTMLテンプレートファイル
14
+ filename: 'index.html', // 出力されるHTMLファイル名
15
+ }),
16
+ ],
17
+ devServer: {
18
+ static: './dist',
19
+ port: 8080,
20
+ headers: {
21
+ 'Feature-Policy': "autoplay 'self'"
22
+ },
23
+ },
24
+ module: {
25
+ rules: [
26
+ {
27
+ test: /\.tsx?$/,
28
+ use: 'ts-loader',
29
+ exclude: /node_modules/
30
+ }
31
+ ]
32
+ },
33
+ resolve: {
34
+ extensions: ['.tsx', '.ts', '.js']
35
+ },
36
+ devtool: 'inline-source-map'
37
+ };
@@ -0,0 +1,38 @@
1
+ const HtmlWebpackPlugin = require('html-webpack-plugin');
2
+ const path = require('path');
3
+
4
+ module.exports = {
5
+ devtool: 'source-map',
6
+ mode: 'development',
7
+ entry: './src/index.js', // エントリーポイントのファイル
8
+ output: {
9
+ filename: 'bundle.js', // 出力ファイル名
10
+ path: path.resolve(__dirname, 'dist'), // 出力ディレクトリ
11
+ },
12
+ plugins: [
13
+ new HtmlWebpackPlugin({
14
+ template: './src/template.html', // (オプション) 使用するHTMLテンプレートファイル
15
+ filename: 'index.html', // 出力されるHTMLファイル名
16
+ }),
17
+ ],
18
+ devServer: {
19
+ static: './dist',
20
+ port: 8080,
21
+ headers: {
22
+ 'Feature-Policy': "autoplay 'self'"
23
+ },
24
+ },
25
+ module: {
26
+ rules: [
27
+ {
28
+ test: /\.tsx?$/,
29
+ use: 'ts-loader',
30
+ exclude: /node_modules/
31
+ }
32
+ ]
33
+ },
34
+ resolve: {
35
+ extensions: ['.tsx', '.ts', '.js']
36
+ },
37
+ devtool: 'inline-source-map'
38
+ };