diff --git a/README.md b/README.md index 6757fe4f..f3ff0e2e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Visit the Discord server for more support. -[![Yukon Discord members](https://badgen.net/discord/members/gxBqXy3qeY)](https://discord.gg/gxBqXy3qeY) +[![Yukon Discord members](https://badgen.net/discord/members/NtYtpzyxBu)](https://discord.gg/NtYtpzyxBu) ## Built With @@ -104,8 +104,6 @@ ProxyPass /world/blizzard http://localhost:6112 * To modify the outputted index.html file, edit the template file "index.ejs" and rebuild. -* If you aren't going to be making any changes to the code, then the latest release can be downloaded from [here](https://github.com/wizguin/yukon/releases). - ## Disclaimer This project is intended for personal use only. diff --git a/editor/packs/postcards-pack.json b/editor/packs/postcards-pack.json new file mode 100644 index 00000000..84480407 --- /dev/null +++ b/editor/packs/postcards-pack.json @@ -0,0 +1,1147 @@ +{ + "section1": { + "files": [ + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/1.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/1" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/10.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/10" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/100.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/100" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/101.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/101" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/102.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/102" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/103.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/103" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/104.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/104" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/105.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/105" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/106.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/106" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/107.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/107" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/108.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/108" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/109.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/109" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/11.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/11" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/110.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/110" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/111.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/111" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/112.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/112" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/12.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/12" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/120.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/120" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/121.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/121" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/122.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/122" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/123.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/123" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/124.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/124" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/125.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/125" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/126.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/126" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/127.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/127" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/128.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/128" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/13.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/13" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/130.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/130" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/131.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/131" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/132.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/132" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/133.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/133" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/134.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/134" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/135.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/135" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/14.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/14" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/15.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/15" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/156.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/156" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/157.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/157" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/158.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/158" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/159.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/159" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/16.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/16" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/160.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/160" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/161.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/161" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/162.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/162" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/163.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/163" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/164.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/164" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/165.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/165" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/167.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/167" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/168.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/168" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/169.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/169" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/17.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/17" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/170.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/170" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/171.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/171" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/172.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/172" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/173.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/173" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/174.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/174" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/175.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/175" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/176.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/176" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/177.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/177" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/178.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/178" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/179.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/179" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/180.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/180" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/181.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/181" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/182.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/182" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/183.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/183" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/184.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/184" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/185.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/185" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/186.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/186" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/19.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/19" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/2.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/2" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/20.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/20" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/200.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/200" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/201.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/201" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/202.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/202" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/203.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/203" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/204.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/204" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/205.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/205" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/206.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/206" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/207.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/207" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/208.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/208" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/209.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/209" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/21.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/21" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/210.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/210" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/211.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/211" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/212.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/212" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/213.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/213" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/216.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/216" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/217.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/217" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/218.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/218" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/219.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/219" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/22.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/22" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/220.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/220" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/221.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/221" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/222.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/222" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/223.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/223" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/224.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/224" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/225.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/225" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/226.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/226" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/227.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/227" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/228.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/228" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/229.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/229" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/23.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/23" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/230.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/230" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/231.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/231" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/232.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/232" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/233.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/233" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/234.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/234" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/235.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/235" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/24.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/24" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/25.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/25" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/26.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/26" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/27.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/27" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/28.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/28" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/29.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/29" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/3.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/3" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/30.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/30" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/31.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/31" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/32.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/32" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/33.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/33" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/34.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/34" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/35.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/35" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/36.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/36" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/37.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/37" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/38.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/38" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/39.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/39" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/4.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/4" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/40.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/40" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/41.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/41" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/42.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/42" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/43.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/43" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/44.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/44" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/45.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/45" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/46.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/46" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/47.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/47" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/48.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/48" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/49.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/49" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/5.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/5" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/50.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/50" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/51.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/51" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/52.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/52" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/53.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/53" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/54.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/54" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/55.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/55" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/56.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/56" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/57.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/57" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/58.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/58" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/59.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/59" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/6.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/6" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/60.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/60" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/61.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/61" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/62.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/62" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/63.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/63" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/64.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/64" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/65.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/65" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/66.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/66" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/67.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/67" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/68.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/68" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/69.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/69" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/7.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/7" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/70.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/70" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/71.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/71" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/72.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/72" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/73.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/73" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/74.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/74" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/75.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/75" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/76.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/76" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/77.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/77" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/78.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/78" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/79.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/79" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/8.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/8" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/80.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/80" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/81.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/81" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/82.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/82" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/83.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/83" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/84.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/84" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/85.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/85" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/86.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/86" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/87.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/87" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/88.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/88" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/89.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/89" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/9.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/9" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/90.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/90" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/91.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/91" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/92.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/92" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/93.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/93" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/94.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/94" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/95.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/95" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/96.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/96" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/98.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/98" + }, + { + "type": "multiatlas", + "url": "assets/media/postcards/sprites/99.json", + "path": "assets/media/postcards/sprites", + "key": "postcards/sprites/99" + } + ] + }, + "meta": { + "app": "Phaser Editor 2D - Asset Pack Editor", + "contentType": "phasereditor2d.pack.core.AssetContentType", + "url": "https://phasereditor2d.com", + "version": 2, + "showAllFilesInBlocks": false + } +} \ No newline at end of file diff --git a/editor/plugins/tweaks/tweaks/plugin.json b/editor/plugins/tweaks/tweaks/plugin.json new file mode 100644 index 00000000..290c2f5f --- /dev/null +++ b/editor/plugins/tweaks/tweaks/plugin.json @@ -0,0 +1,6 @@ +{ + "id": "tweaks", + "scripts": [ + "tweaks.js" + ] +} diff --git a/editor/plugins/tweaks/tweaks/tweaks.js b/editor/plugins/tweaks/tweaks/tweaks.js new file mode 100644 index 00000000..efce8f09 --- /dev/null +++ b/editor/plugins/tweaks/tweaks/tweaks.js @@ -0,0 +1,77 @@ +// Hacks for using Phaser Editor with a lot of files + +const disablePreloadingThumbnails = false +const hidePrefabsFromBlocks = false +const doViewerFiltering = true + +const viewerUrlFilter = [ + /\/postcards\// // URL includes /postcards/ +] + +const filteredViewers = [ + 'BlocksView.EditorViewerView', + 'phasereditor2d.scene.ui.sceneobjects.TextureSelectionDialog' +] + +if (disablePreloadingThumbnails) { + // Disable preloading viewer thumbnails + const viewerInitListeners = colibri.ui.controls.viewers.Viewer.prototype.initListeners + + colibri.ui.controls.viewers.Viewer.prototype.initListeners = function() { + viewerInitListeners.call(this) + + this.setPreloadDisabled() + } +} + +if (hidePrefabsFromBlocks) { + // Remove prefabs from blocks viewer, + // prefabs can instead be added to a Scene via dragging them from the files list + phasereditor2d.scene.ui.blocks.BLOCKS_SECTIONS = [ + phasereditor2d.scene.ui.blocks.BUILTIN_SECTION, + ...phasereditor2d.scene.ui.blocks.BLOCKS_ASSET_SECTIONS + ] + + // Remove Prefabs from blocks tabs + phasereditor2d.scene.ui.blocks.TAB_SECTIONS = [ + phasereditor2d.scene.ui.blocks.TAB_SECTION_BUILT_IN, + phasereditor2d.scene.ui.blocks.TAB_SECTION_ASSETS, + ] +} + +if (doViewerFiltering) { + // Filter viewers + const viewerIsFilterIncluded = colibri.ui.controls.viewers.Viewer.prototype.isFilterIncluded + + colibri.ui.controls.viewers.Viewer.prototype.isFilterIncluded = function(obj) { + // Only filter specified viewers when no search filter is active, + // filtered files can be accessed by searching for them + if (!isFilteredViewer(this._viewerId) || this._filterText.length > 0) { + return viewerIsFilterIncluded.call(this, obj) + } + + const objUrl = getObjUrl(obj) + + return regexExcludes(viewerUrlFilter, objUrl) + } +} + +function isFilteredViewer(viewerId) { + return filteredViewers.includes(viewerId) +} + +function getObjUrl(obj) { + if (obj instanceof colibri.core.io.FilePath) { + return obj.toString() + } + + if (obj instanceof phasereditor2d.pack.core.AssetPackItem) { + return obj.getData().url + } + + return null +} + +function regexExcludes(regexArray, testString) { + return !regexArray.some(i => i.test(testString)) +} diff --git a/index.ejs b/index.ejs index c434f8fc..86510af7 100644 --- a/index.ejs +++ b/index.ejs @@ -20,10 +20,10 @@ - + - + diff --git a/index.html b/index.html index e656f99c..dfecf645 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ - + diff --git a/package-lock.json b/package-lock.json index a5b980ca..7215603e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "yukon", - "version": "1.6.0-beta", + "version": "1.8.0-beta", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "yukon", - "version": "1.6.0-beta", + "version": "1.8.0-beta", "license": "MIT", "devDependencies": { "@babel/core": "^7.23.2", @@ -17,7 +17,7 @@ "howler": "^2.2.4", "html-webpack-plugin": "^5.5.3", "javascript-obfuscator": "^4.1.0", - "phasereditor2d-launcher": "^3.63.0", + "phasereditor2d-launcher": "^3.65.0", "phasereditor2d-ninepatch-plugin": "^1.2.0", "socket.io-client": "^4.7.2", "source-map": "^0.7.4", @@ -5576,9 +5576,9 @@ "dev": true }, "node_modules/phasereditor2d-launcher": { - "version": "3.63.0", - "resolved": "https://registry.npmjs.org/phasereditor2d-launcher/-/phasereditor2d-launcher-3.63.0.tgz", - "integrity": "sha512-O02ZGOaTrOikH+ZTc4WyBTjXvnBQuBg0rifaXHTI2zVeD5Y1zv+nxaq8pgMZe6FWhwgVmF+0D9I47qN1UN0FkA==", + "version": "3.65.0", + "resolved": "https://registry.npmjs.org/phasereditor2d-launcher/-/phasereditor2d-launcher-3.65.0.tgz", + "integrity": "sha512-2ucHdBN+3lSHDyZsRc6EIPURhIhAhyIIHVwRBAIIFs8WscLtN3U6b5MpuEEnW7KKaueAwSV0/5GsC8vvFQzHlQ==", "dev": true, "dependencies": { "adm-zip": "^0.5.5" @@ -11422,9 +11422,9 @@ "dev": true }, "phasereditor2d-launcher": { - "version": "3.63.0", - "resolved": "https://registry.npmjs.org/phasereditor2d-launcher/-/phasereditor2d-launcher-3.63.0.tgz", - "integrity": "sha512-O02ZGOaTrOikH+ZTc4WyBTjXvnBQuBg0rifaXHTI2zVeD5Y1zv+nxaq8pgMZe6FWhwgVmF+0D9I47qN1UN0FkA==", + "version": "3.65.0", + "resolved": "https://registry.npmjs.org/phasereditor2d-launcher/-/phasereditor2d-launcher-3.65.0.tgz", + "integrity": "sha512-2ucHdBN+3lSHDyZsRc6EIPURhIhAhyIIHVwRBAIIFs8WscLtN3U6b5MpuEEnW7KKaueAwSV0/5GsC8vvFQzHlQ==", "dev": true, "requires": { "adm-zip": "^0.5.5" diff --git a/package.json b/package.json index 83c48c47..84a32fc3 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "yukon", - "version": "1.7.0-beta", + "version": "1.8.0-beta", "scripts": { "dev": "webpack serve", - "editor": "phasereditor2d-launcher -project . -max-number-files 5000", + "editor": "phasereditor2d-launcher -project .", "build": "webpack --mode production --env obfuscate=false", "build-crumbs": "node ./utils/build-crumbs.js" }, @@ -26,7 +26,7 @@ "howler": "^2.2.4", "html-webpack-plugin": "^5.5.3", "javascript-obfuscator": "^4.1.0", - "phasereditor2d-launcher": "^3.63.0", + "phasereditor2d-launcher": "^3.65.0", "phasereditor2d-ninepatch-plugin": "^1.2.0", "socket.io-client": "^4.7.2", "source-map": "^0.7.4", diff --git a/phasereditor2d.config.json b/phasereditor2d.config.json index 207bb31f..81fe7430 100644 --- a/phasereditor2d.config.json +++ b/phasereditor2d.config.json @@ -1,8 +1,36 @@ { + "flags": ["-max-number-files", "5000"], + "playUrl": "http://localhost:8080", + "plugins": [ + "editor/plugins/tweaks" + ], "skip": [ "assets/media/clothing", + "assets/media/crumbs", + "assets/media/flash", "assets/media/furniture", - "assets/media/music" - ], - "playUrl": "http://localhost:8080" + "assets/media/igloos/flooring", + "assets/media/music", + "assets/media/penguin/actions", + "assets/scripts", + "assets/styles", + "create", + "defs", + "dist", + "editor/plugins", + "jsconfig.json", + "LICENSE", + "package-lock.json", + "package.json", + "phasereditor2d.config.json", + "src/data", + "src/engine", + "utils", + "webpack.config.js", + "webpack_plugins", + "**/*.ejs", + "**/*.html", + "**/*.ini", + "**/*.md" + ] } diff --git a/src/engine/interface/prompt/PromptController.js b/src/engine/interface/prompt/PromptController.js index 9955f065..e181b88d 100644 --- a/src/engine/interface/prompt/PromptController.js +++ b/src/engine/interface/prompt/PromptController.js @@ -4,27 +4,36 @@ import ItemPrompt from '@scenes/interface/prompts/ItemPrompt' import LoadingPromptFactory from './LoadingPromptFactory' import WindowPrompt from '@scenes/interface/prompts/WindowPrompt' +import MailErrorPrompt from '@scenes/interface/prompts/MailErrorPrompt' +import MailSuccessPrompt from '@scenes/interface/prompts/MailSuccessPrompt' + export default class PromptController { - constructor(_interface) { - this.interface = _interface + constructor(scene) { + this.interface = scene + + this.crumbs = this.interface.crumbs + this.network = this.interface.network + this.world = this.interface.world + + this.coin = this.createPrompt(CoinPrompt) + this.error = this.createPrompt(ErrorPrompt) + this.item = this.createPrompt(ItemPrompt) + this.window = this.createPrompt(WindowPrompt) - this.crumbs = _interface.crumbs - this.network = _interface.network - this.world = _interface.world + this.mailError = this.createPrompt(MailErrorPrompt) + this.mailSuccess = this.createPrompt(MailSuccessPrompt) + + this.loadingPromptFactory = new LoadingPromptFactory(this.interface) + } - this.coin = new CoinPrompt(_interface, 760, 480) - this.error = new ErrorPrompt(_interface, 760, 480) - this.item = new ItemPrompt(_interface, 760, 480) - this.window = new WindowPrompt(_interface, 760, 480) + createPrompt(promptClass) { + const prompt = new promptClass(this.interface, 760, 480) - _interface.add.existing(this.coin) - _interface.add.existing(this.error) - _interface.add.existing(this.item) - _interface.add.existing(this.window) + this.interface.add.existing(prompt) - this.loadingPromptFactory = new LoadingPromptFactory(_interface) + return prompt } showCoin(coins = 0) { @@ -77,6 +86,14 @@ export default class PromptController { this.loadingPromptFactory.showLoading(text, key, url, callback) } + showMailError(text) { + this.mailError.show(text) + } + + showMailSuccess(text) { + this.mailSuccess.show(text) + } + hideAll() { this.loadingPromptFactory.hideAll() } diff --git a/src/engine/loaders/PostcardIconLoader.js b/src/engine/loaders/PostcardIconLoader.js new file mode 100644 index 00000000..c78cebb4 --- /dev/null +++ b/src/engine/loaders/PostcardIconLoader.js @@ -0,0 +1,94 @@ +import BaseLoader from './BaseLoader' + + +export default class PostcardIconLoader extends BaseLoader { + + constructor(mailbook) { + super(mailbook.scene) + + this.mailbook = mailbook + + this.baseURL = '/assets/media/postcards/icon/' + this.keyPrefix = 'postcards/icon/' + + this.postcardItems = mailbook.postcardItems + } + + get page() { + return this.mailbook.pages[this.mailbook.page - 1] + } + + get pageIds() { + return this.page.postcards.map(postcard => postcard.id) + } + + loadPage(page) { + for (const [index, item] of this.postcardItems.entries()) { + if (item.icon) { + item.icon.destroy() + } + + item.error.visible = false + + const postcard = page.postcards[index] + + if (postcard) { + item.startSpinner() + this.loadPostcard(postcard.id) + } + } + + this.start() + } + + loadPostcard(postcard) { + const key = this.getKey(postcard) + + if (this.checkComplete('image', key, () => { + this.onFileComplete(key, postcard) + })) { + return + } + + this.image(key, `${postcard}.png`) + } + + onFileComplete(key, postcard) { + if (!this.textureExists(key)) { + return + } + + const index = this.pageIds.indexOf(postcard) + const postcardItem = this.postcardItems[index] + + if (!postcardItem || !postcardItem.visible) { + return + } + + if (postcardItem.icon) { + postcardItem.icon.destroy() + } + + postcardItem.stopSpinner() + + postcardItem.addIcon(key) + } + + onLoadError(file) { + super.onLoadError(file) + + const postcard = this.getKeyId(file.key) + + const index = this.pageIds.indexOf(postcard) + const postcardItem = this.postcardItems[index] + + if (!postcardItem || !postcardItem.visible) { + return + } + + postcardItem.stopSpinner() + + postcardItem.error.visible = true + } + +} diff --git a/src/engine/loaders/PostcardLoader.js b/src/engine/loaders/PostcardLoader.js new file mode 100644 index 00000000..5518c678 --- /dev/null +++ b/src/engine/loaders/PostcardLoader.js @@ -0,0 +1,46 @@ +import BaseLoader from './BaseLoader' + + +export default class PostcardLoader extends BaseLoader { + + constructor(scene) { + super(scene) + + this.baseURL = '/assets/media/postcards/sprites/' + this.keyPrefix = 'postcards/sprites/' + } + + loadPostcard(postcardId, callback) { + const key = this.getKey(postcardId) + + if (this.checkComplete('json', key, () => { + this.onFileComplete(key, postcardId, callback) + })) { + return + } + + this.multiatlas(key, `${postcardId}.json`) + + this.start() + } + + async onFileComplete(key, postcardId, callback) { + if (!this.textureExists(key)) { + return + } + + let postcardClass = null + + try { + postcardClass = (await import( + `@scenes/postcards/Postcard${postcardId}.js` + )).default + + } catch (error) { + console.error(error) + } + + callback(postcardClass) + } + +} diff --git a/src/engine/network/plugins/plugins/Mail.js b/src/engine/network/plugins/plugins/Mail.js new file mode 100644 index 00000000..c300756f --- /dev/null +++ b/src/engine/network/plugins/plugins/Mail.js @@ -0,0 +1,61 @@ +import Plugin from '../Plugin' + + +export default class Mail extends Plugin { + + constructor(network) { + super(network) + + this.events = { + 'send_mail': this.sendMail, + 'receive_mail': this.receiveMail + } + + this.responses = { + InsufficientCoins: 0, + FullInbox: 1, + Success: 2 + } + } + + sendMail(args) { + this.world.client.coins = args.coins + + switch (args.response) { + case this.responses.InsufficientCoins: + this.showInsufficientCoins() + break + + case this.responses.FullInbox: + this.showFullInbox() + break + + case this.responses.Success: + this.showSuccess() + break + } + } + + receiveMail(args) { + this.world.client.postcards.push(args) + + this.world.client.refreshPostcards() + } + + showInsufficientCoins() { + this.showError('Failed to send Postcard.\nYou need more coins.') + } + + showFullInbox() { + this.showError('This penguins mailbox is full. Your postcard could not be sent. Please try again later.') + } + + showSuccess() { + this.interface.prompt.showMailSuccess('Postcard sent') + } + + showError(text) { + this.interface.prompt.showMailError(text) + } + +} diff --git a/src/engine/world/penguin/ClientController.js b/src/engine/world/penguin/ClientController.js index 1c62e43e..6724f9bf 100644 --- a/src/engine/world/penguin/ClientController.js +++ b/src/engine/world/penguin/ClientController.js @@ -29,6 +29,8 @@ export default class ClientController { this.slots = ['color', 'head', 'face', 'neck', 'body', 'hand', 'feet', 'flag', 'photo', 'award'] this.inventory = this.initInventory() + this.sortPostcards() + // Reference to ClientPenguin object this.penguin @@ -89,6 +91,14 @@ export default class ClientController { return this.rank > 1 } + get mailCount() { + return this.postcards.length + } + + get unreadMailCount() { + return this.postcards.filter(postcard => !postcard.hasRead).length + } + initInventory() { // Generates object from slots in format: { color: [], head: [], ... } let inventory = Object.fromEntries(this.slots.map(slot => [slot, []])) @@ -327,4 +337,28 @@ export default class ClientController { } } + /** + * Sort by newest first. + */ + sortPostcards() { + this.postcards.sort((a, b) => new Date(b.sendDate) - new Date(a.sendDate)) + } + + filterPostcards(filter) { + this.postcards = this.postcards.filter(postcard => filter(postcard)) + + this.refreshPostcards() + } + + refreshPostcards() { + this.sortPostcards() + + if (this.interface.main.mail.visible) { + // Read mail before updating count + this.interface.main.mail.goToFirstPage() + } + + this.interface.main.updateMailCount() + } + } diff --git a/src/engine/world/penguin/ClientPenguin.js b/src/engine/world/penguin/ClientPenguin.js index 2805d4d0..f212047d 100644 --- a/src/engine/world/penguin/ClientPenguin.js +++ b/src/engine/world/penguin/ClientPenguin.js @@ -69,6 +69,8 @@ export default class ClientPenguin extends Penguin { } isTrigger() { + if (this.interface.main.mail.visible) return + if (!this.room.triggers) return for (let trigger of this.room.triggers) { diff --git a/src/scenes/interface/game/mail/Mail.js b/src/scenes/interface/game/mail/Mail.js new file mode 100644 index 00000000..99e1f076 --- /dev/null +++ b/src/scenes/interface/game/mail/Mail.js @@ -0,0 +1,432 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../../base/BaseContainer"; +import Interactive from "../../../components/Interactive"; +import Button from "../../../components/Button"; +import SimpleButton from "../../../components/SimpleButton"; +import Animation from "../../../components/Animation"; +import MailReply from "./reply/MailReply"; +/* START-USER-IMPORTS */ + +import PostcardLoader from '@engine/loaders/PostcardLoader' + +/* END-USER-IMPORTS */ + +export default class Mail extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 760, y ?? 480); + + /** @type {Phaser.GameObjects.Image} */ + this.error; + /** @type {Phaser.GameObjects.Image} */ + this.spinner; + /** @type {MailReply} */ + this.replyButton; + /** @type {Phaser.GameObjects.Container} */ + this.noMessages; + /** @type {Phaser.GameObjects.Text} */ + this.count; + /** @type {Array} */ + this.activeElements; + + + // bg + const bg = scene.add.image(1, -23, "mail", "bg"); + bg.setOrigin(0.5003170577045022, 0.5004389815627743); + this.add(bg); + + // error + const error = scene.add.image(-1, -2, "mail", "display"); + error.setOrigin(0.5004878048780488, 0.500651890482399); + error.visible = false; + this.add(error); + + // spinner + const spinner = scene.add.image(0, 0, "mail", "spinner"); + spinner.visible = false; + this.add(spinner); + + // nextButton + const nextButton = scene.add.image(569, -28, "mail", "next_button"); + nextButton.setOrigin(0.5033112582781457, 0.5); + this.add(nextButton); + + // prevButton + const prevButton = scene.add.image(-573, 15, "mail", "prev_button"); + prevButton.setOrigin(0.5033112582781457, 0.5); + this.add(prevButton); + + // trashButton + const trashButton = scene.add.sprite(4, 7, "mail", "trash/trash0001"); + trashButton.setOrigin(0.5, 0.5004887585532747); + this.add(trashButton); + + // replyButton + const replyButton = new MailReply(scene, 991, -1004); + this.add(replyButton); + + // removeButton + const removeButton = scene.add.sprite(-45, 2, "mail", "remove/remove0001"); + removeButton.setOrigin(0.5, 0.500517063081696); + this.add(removeButton); + + // newButton + const newButton = scene.add.sprite(-28, -21, "mail", "new/new0001"); + newButton.angle = 19.5; + newButton.setOrigin(0.5, 0.5003518648838846); + this.add(newButton); + + // noMessages + const noMessages = scene.add.container(-170, -43); + noMessages.visible = false; + this.add(noMessages); + + // note + const note = scene.add.image(170, 43, "mail", "note"); + note.setOrigin(0.5011337868480725, 0.5011286681715575); + noMessages.add(note); + + // text + const text = scene.add.text(0, 0, "", {}); + text.angle = -9; + text.text = "You Have No\nMessages"; + text.setStyle({ "align": "center", "color": "#223C3C", "fixedWidth":300,"fontFamily": "Burbank Small", "fontSize": "50px", "fontStyle": "bold" }); + noMessages.add(text); + + // count + const count = scene.add.text(590, -175, "", {}); + count.scaleX = 1.1; + count.setOrigin(0.5, 0.5); + count.setStyle({ "align": "center", "fixedWidth":232,"fixedHeight":110,"fontFamily": "CCFaceFront", "fontSize": "32px", "fontStyle": "bold italic", "stroke": "#000", "strokeThickness":8,"shadow.blur":3,"shadow.stroke":true,"shadow.fill":true}); + this.add(count); + + // closeButton + const closeButton = scene.add.image(707, -424, "mail", "close_button"); + closeButton.setOrigin(0.5029239766081871, 0.5038167938931297); + this.add(closeButton); + + // lists + const activeElements = [count, removeButton, replyButton, trashButton, prevButton, nextButton]; + + // bg (components) + new Interactive(bg); + + // nextButton (components) + const nextButtonButton = new Button(nextButton); + nextButtonButton.spriteName = "next_button"; + nextButtonButton.callback = () => this.onNextClick(); + nextButtonButton.pixelPerfect = true; + + // prevButton (components) + const prevButtonButton = new Button(prevButton); + prevButtonButton.spriteName = "prev_button"; + prevButtonButton.callback = () => this.onPrevClick(); + prevButtonButton.pixelPerfect = true; + + // trashButton (components) + const trashButtonSimpleButton = new SimpleButton(trashButton); + trashButtonSimpleButton.callback = () => this.onTrashClick(); + trashButtonSimpleButton.pixelPerfect = true; + const trashButtonAnimation = new Animation(trashButton); + trashButtonAnimation.key = "trash/trash"; + trashButtonAnimation.start = 2; + trashButtonAnimation.end = 11; + trashButtonAnimation.repeat = 0; + trashButtonAnimation.autoPlay = false; + trashButtonAnimation.onHover = true; + + // removeButton (components) + const removeButtonSimpleButton = new SimpleButton(removeButton); + removeButtonSimpleButton.callback = () => this.onRemoveClick(); + removeButtonSimpleButton.pixelPerfect = true; + const removeButtonAnimation = new Animation(removeButton); + removeButtonAnimation.key = "remove/remove"; + removeButtonAnimation.start = 2; + removeButtonAnimation.end = 7; + removeButtonAnimation.repeat = 0; + removeButtonAnimation.autoPlay = false; + removeButtonAnimation.onHover = true; + + // newButton (components) + const newButtonSimpleButton = new SimpleButton(newButton); + newButtonSimpleButton.callback = () => this.interface.main.mailbook.show(); + newButtonSimpleButton.pixelPerfect = true; + const newButtonAnimation = new Animation(newButton); + newButtonAnimation.key = "new/new"; + newButtonAnimation.start = 2; + newButtonAnimation.end = 8; + newButtonAnimation.repeat = 0; + newButtonAnimation.autoPlay = false; + newButtonAnimation.onHover = true; + + // closeButton (components) + const closeButtonSimpleButton = new SimpleButton(closeButton); + closeButtonSimpleButton.callback = () => this.close(); + closeButtonSimpleButton.pixelPerfect = true; + + this.error = error; + this.spinner = spinner; + this.replyButton = replyButton; + this.noMessages = noMessages; + this.count = count; + this.activeElements = activeElements; + + /* START-USER-CTR-CODE */ + + this.postcardLoader = new PostcardLoader(scene) + this.postcardLoader.on('loaderror', this.onPostcardLoadError, this) + + this.postcardX = -515 + this.postcardY = -308 + this.postcardAngle = -4.5 + + // Current postcard object + this.currentCard + // Current postcard prefab + this.currentPrefab + + this.page = 1 + + this.spinnerTween = scene.tweens.add({ + targets: spinner, + angle: { from: 0, to: 180 }, + duration: 900, + repeat: -1, + ease: 'Cubic', + paused: true + }) + + this.systemName = 'sys' + + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + get cards() { + return this.world.client.postcards + } + + get maxPage() { + return this.world.client.mailCount + } + + get isMailEmpty() { + return this.world.client.mailCount < 1 + } + + get isCurrentBuddy() { + return this.world.isBuddy(this.currentCard.senderId) + } + + show() { + this.replyButton.reset() + + if (this.world.client.unreadMailCount > 0) { + this.network.send('read_mail') + } + + this.goToFirstPage() + + super.show() + } + + close() { + this.checkDestroyCurrent() + + super.close() + } + + easeOutBack(value) { + return Phaser.Math.Easing.Back.Out(value, 2) + } + + onReplyOver() { + this.arrow.__Animation.play() + } + + onReplyOut() { + this.arrow.__Animation.stop() + } + + onPrevClick() { + if (this.isMailEmpty) { + return + } + + const page = this.page - 1 + if (page < 1) { + return + } + + this.goToPage(page) + } + + onNextClick() { + if (this.isMailEmpty) { + return + } + + const page = this.page + 1 + if (page > this.maxPage) { + return + } + + this.goToPage(page) + } + + onTrashClick() { + const text = `Are you sure you want to recycle this postcard from ${this.getSenderName()}?` + + this.interface.prompt.showWindow(text, 'dual', () => { + this.interface.prompt.window.visible = false + + this.sendDeleteMail() + }) + } + + onRemoveClick() { + const text = `This will permanently remove all postcards from ${this.getSenderName()}. Do you want to do this?` + + this.interface.prompt.showWindow(text, 'dual', () => { + this.interface.prompt.window.visible = false + + this.sendDeleteMailFrom() + }) + } + + getSenderName() { + return this.currentCard.senderName !== this.systemName ? this.currentCard.senderName : this.getString('game') + } + + goToFirstPage() { + if (this.isMailEmpty) { + this.checkDestroyCurrent() + this.updateVisibleElements() + + } else { + this.goToPage(1) + } + } + + goToPage(page) { + this.page = page + this.loadPostcard() + } + + loadPostcard() { + this.checkDestroyCurrent() + + this.currentCard = this.cards[this.page - 1] + + this.readPostcard(this.currentCard) + + this.updateVisibleElements() + this.updateReplyButton() + this.updateCount() + + this.error.visible = false + this.startSpinner() + + // Unique ID assigned to every postcard + const id = this.currentCard.id + + this.postcardLoader.loadPostcard(this.currentCard.postcardId, (postcardClass) => this.addPostcard(postcardClass, id)) + } + + readPostcard(postcard) { + postcard.hasRead = true + + this.interface.main.updateMailCount() + } + + addPostcard(postcardClass, id) { + if (id !== this.currentCard.id) { + return + } + + this.stopSpinner() + + this.checkDestroyCurrent() + + try { + this.currentPrefab = new postcardClass(this.scene, this.postcardX, this.postcardY) + this.currentPrefab.angle = this.postcardAngle + this.currentPrefab.setName(this.currentCard.senderName) + + this.currentPrefab.enableInput() + + this.addAt(this.currentPrefab, 2) + + } catch (error) { + console.error(error) + + this.showError() + } + } + + checkDestroyCurrent() { + if (this.currentPrefab) { + this.currentPrefab.destroy() + } + } + + updateCount() { + this.count.text = `MESSAGE\n${this.page} of ${this.cards.length}` + } + + updateVisibleElements() { + this.noMessages.visible = this.isMailEmpty + + this.activeElements.forEach(control => control.visible = !this.isMailEmpty) + } + + updateReplyButton() { + this.replyButton.updateState() + } + + sendDeleteMail() { + this.network.send('delete_mail', { id: this.currentCard.id }) + + this.world.client.filterPostcards((postcard) => postcard.id !== this.currentCard.id) + } + + sendDeleteMailFrom() { + this.network.send('delete_mail_from', { senderId: this.currentCard.senderId }) + + this.world.client.filterPostcards((postcard) => postcard.senderId !== this.currentCard.senderId) + } + + startSpinner() { + this.spinnerTween.seek(0) + this.spinnerTween.resume() + + this.spinner.visible = true + } + + stopSpinner() { + this.spinner.visible = false + + this.spinnerTween.pause() + this.spinner.angle = 0 + } + + showError() { + this.stopSpinner() + this.error.visible = true + } + + onPostcardLoadError(file) { + const id = this.postcardLoader.getKeyId(file.key) + + if (id === this.currentCard.postcardId) { + this.showError() + } + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/game/mail/Mail.scene b/src/scenes/interface/game/mail/Mail.scene new file mode 100644 index 00000000..9df3f2b9 --- /dev/null +++ b/src/scenes/interface/game/mail/Mail.scene @@ -0,0 +1,288 @@ +{ + "id": "2b073ebe-1fc6-467b-87c1-bb5433937720", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "535c05e4-b178-421e-a4c0-6757aafbae51", + "label": "container_1", + "x": 760, + "y": 480, + "list": [ + { + "type": "Image", + "id": "32e1978b-7dab-4db5-aa75-89cb68e14901", + "label": "bg", + "components": [ + "Interactive" + ], + "texture": { + "key": "mail", + "frame": "bg" + }, + "x": 1, + "y": -23, + "originX": 0.5003170577045022, + "originY": 0.5004389815627743 + }, + { + "type": "Image", + "id": "ddf7ea0f-c875-436d-a71d-573a8ab02fa4", + "label": "error", + "scope": "CLASS", + "texture": { + "key": "mail", + "frame": "display" + }, + "x": -1, + "y": -2, + "originX": 0.5004878048780488, + "originY": 0.500651890482399, + "visible": false + }, + { + "type": "Image", + "id": "8e5e8eb4-4117-4bbc-b8e7-784725095d3e", + "label": "spinner", + "scope": "CLASS", + "texture": { + "key": "mail", + "frame": "spinner" + }, + "visible": false + }, + { + "type": "Image", + "id": "6da204da-66c2-45a7-b3d3-e5c0e1d4e20e", + "label": "nextButton", + "components": [ + "Button" + ], + "Button.spriteName": "next_button", + "Button.callback": "() => this.onNextClick()", + "Button.pixelPerfect": true, + "texture": { + "key": "mail", + "frame": "next_button" + }, + "x": 569, + "y": -28, + "originX": 0.5033112582781457 + }, + { + "type": "Image", + "id": "4d38d198-f78b-46b3-b024-f1c91b8e1629", + "label": "prevButton", + "components": [ + "Button" + ], + "Button.spriteName": "prev_button", + "Button.callback": "() => this.onPrevClick()", + "Button.pixelPerfect": true, + "texture": { + "key": "mail", + "frame": "prev_button" + }, + "x": -573, + "y": 15, + "originX": 0.5033112582781457 + }, + { + "type": "Sprite", + "id": "aceb12d9-8ea0-4f7f-9230-40d224afdad3", + "label": "trashButton", + "components": [ + "SimpleButton", + "Animation" + ], + "SimpleButton.callback": "() => this.onTrashClick()", + "SimpleButton.pixelPerfect": true, + "Animation.key": "trash/trash", + "Animation.start": 2, + "Animation.end": 11, + "Animation.repeat": 0, + "Animation.autoPlay": false, + "Animation.onHover": true, + "texture": { + "key": "mail", + "frame": "trash/trash0001" + }, + "x": 4, + "y": 7, + "originY": 0.5004887585532747 + }, + { + "prefabId": "8cf3168e-3e94-4c35-984d-ae291a9fbbb6", + "id": "77bf89d8-6526-4442-82e9-f82e8eb8f6a8", + "unlock": [ + "x", + "y" + ], + "label": "replyButton", + "scope": "CLASS", + "x": 991, + "y": -1004 + }, + { + "type": "Sprite", + "id": "63ab47f9-85bb-45c7-a889-78bc983441a5", + "label": "removeButton", + "components": [ + "SimpleButton", + "Animation" + ], + "SimpleButton.callback": "() => this.onRemoveClick()", + "SimpleButton.pixelPerfect": true, + "Animation.key": "remove/remove", + "Animation.start": 2, + "Animation.end": 7, + "Animation.repeat": 0, + "Animation.autoPlay": false, + "Animation.onHover": true, + "texture": { + "key": "mail", + "frame": "remove/remove0001" + }, + "x": -45, + "y": 2, + "originY": 0.500517063081696 + }, + { + "type": "Sprite", + "id": "0640a8b4-0eb9-486c-9dd4-7746791f3d00", + "label": "newButton", + "components": [ + "SimpleButton", + "Animation" + ], + "SimpleButton.callback": "() => this.interface.main.mailbook.show()", + "SimpleButton.pixelPerfect": true, + "Animation.key": "new/new", + "Animation.start": 2, + "Animation.end": 8, + "Animation.repeat": 0, + "Animation.autoPlay": false, + "Animation.onHover": true, + "texture": { + "key": "mail", + "frame": "new/new0001" + }, + "x": -28, + "y": -21, + "angle": 19.5, + "originY": 0.5003518648838846 + }, + { + "type": "Container", + "id": "1062c1af-95c0-4dec-864e-e5ba8a738e9f", + "label": "noMessages", + "scope": "CLASS", + "x": -170, + "y": -43, + "visible": false, + "list": [ + { + "type": "Image", + "id": "c4aaed90-3378-4e58-9e45-ed3631a0f13d", + "label": "note", + "texture": { + "key": "mail", + "frame": "note" + }, + "x": 170, + "y": 43, + "originX": 0.5011337868480725, + "originY": 0.5011286681715575 + }, + { + "type": "Text", + "id": "5a303c44-de65-4355-b840-2e5c180e832a", + "label": "text", + "angle": -9, + "text": "You Have No\nMessages", + "fixedWidth": 300, + "align": "center", + "fontFamily": "Burbank Small", + "fontSize": "50px", + "fontStyle": "bold", + "color": "#223C3C" + } + ] + }, + { + "type": "Text", + "id": "4bb7f2c9-3412-4e95-94fe-5d22cac404b1", + "label": "count", + "scope": "CLASS", + "x": 590, + "y": -175, + "scaleX": 1.1, + "originX": 0.5, + "originY": 0.5, + "fixedWidth": 232, + "fixedHeight": 110, + "align": "center", + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "fontStyle": "bold italic", + "stroke": "#000", + "strokeThickness": 8, + "shadow.stroke": true, + "shadow.fill": true, + "shadow.blur": 3 + }, + { + "type": "Image", + "id": "636c028b-ddc2-429f-9897-5bb26d0505de", + "label": "closeButton", + "components": [ + "SimpleButton" + ], + "SimpleButton.callback": "() => this.close()", + "SimpleButton.pixelPerfect": true, + "texture": { + "key": "mail", + "frame": "close_button" + }, + "x": 707, + "y": -424, + "originX": 0.5029239766081871, + "originY": 0.5038167938931297 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + }, + "lists": [ + { + "id": "54a15566-67bb-43e8-bdcb-eed480e72b03", + "label": "activeElements", + "objectIds": [ + "4bb7f2c9-3412-4e95-94fe-5d22cac404b1", + "63ab47f9-85bb-45c7-a889-78bc983441a5", + "77bf89d8-6526-4442-82e9-f82e8eb8f6a8", + "aceb12d9-8ea0-4f7f-9230-40d224afdad3", + "4d38d198-f78b-46b3-b024-f1c91b8e1629", + "6da204da-66c2-45a7-b3d3-e5c0e1d4e20e" + ] + } + ] +} \ No newline at end of file diff --git a/src/scenes/interface/game/mail/reply/MailReply.js b/src/scenes/interface/game/mail/reply/MailReply.js new file mode 100644 index 00000000..9329d16d --- /dev/null +++ b/src/scenes/interface/game/mail/reply/MailReply.js @@ -0,0 +1,160 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../../../base/BaseContainer"; +import SimpleButton from "../../../../components/SimpleButton"; +/* START-USER-IMPORTS */ + +import MailReplyState from './MailReplyState' + +/* END-USER-IMPORTS */ + +export default class MailReply extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? -1); + + /** @type {Phaser.GameObjects.Sprite} */ + this.note; + /** @type {Phaser.GameObjects.Sprite} */ + this.arrow; + + + this.angle = 24.000000000000004; + + // shadow + const shadow = scene.add.image(-223, 396, "mail", "reply/shadow"); + shadow.setOrigin(0.5005727376861397, 0.5); + this.add(shadow); + + // note + const note = scene.add.sprite(-225, 383, "mail", "reply/reply0001"); + note.setOrigin(0.5, 0.5006242197253433); + this.add(note); + + // arrow + const arrow = scene.add.sprite(-396, 603, "mail", "reply/arrow0001"); + arrow.angle = -24.000000000000004; + arrow.setOrigin(0.5, 0.5028248587570622); + arrow.visible = false; + this.add(arrow); + + // note (components) + const noteSimpleButton = new SimpleButton(note); + noteSimpleButton.hoverCallback = () => this.onOver(); + noteSimpleButton.hoverOutCallback = () => this.onOut(); + noteSimpleButton.callback = () => this.onClick(); + noteSimpleButton.pixelPerfect = true; + + this.note = note; + this.arrow = arrow; + + /* START-USER-CTR-CODE */ + + this.state = MailReplyState.Up + + this.upAngle = this.angle + this.downAngle = 0 + + this.tween = null + this.tweenDuration = 300 + + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + get currentCard() { + return this.parentContainer.currentCard + } + + get isCurrentBuddy() { + return this.parentContainer.isCurrentBuddy + } + + onOver() { + this.playAnims() + } + + onOut() { + this.stopAnims() + } + + onClick() { + if (this.isCurrentBuddy) { + this.interface.main.mailbook.showPostcards(this.currentCard.senderId, this.currentCard.senderName) + } + } + + playAnims() { + this.arrow.play('reply/arrow') + this.note.play('reply/note') + } + + stopAnims() { + this.arrow.stop() + this.note.stop() + + this.arrow.visible = false + this.note.setFrame('reply/reply0001') + } + + updateState() { + if (this.isCurrentBuddy) { + this.tweenDown() + } else { + this.tweenUp() + } + } + + tweenDown() { + if (this.state === MailReplyState.Down) return + + this.state = MailReplyState.Down + + this.addTween(this.upAngle, this.downAngle, this.easeOutBack) + } + + tweenUp() { + if (this.state === MailReplyState.Up) return + + this.state = MailReplyState.Up + + this.addTween(this.downAngle, this.upAngle, this.easeInBack) + } + + addTween(from, to, ease) { + if (this.tween) this.removeTween() + + this.tween = this.scene.tweens.add({ + targets: this, + duration: this.tweenDuration, + angle: { from: from, to: to }, + ease: ease + }) + } + + removeTween() { + this.tween.remove() + this.tween = null + } + + easeInBack(value) { + return Phaser.Math.Easing.Back.In(value, 2) + } + + easeOutBack(value) { + return Phaser.Math.Easing.Back.Out(value, 2) + } + + reset() { + if (this.tween) this.removeTween() + + this.state = MailReplyState.Up + this.angle = this.upAngle + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/game/mail/reply/MailReply.scene b/src/scenes/interface/game/mail/reply/MailReply.scene new file mode 100644 index 00000000..7c2fdfd2 --- /dev/null +++ b/src/scenes/interface/game/mail/reply/MailReply.scene @@ -0,0 +1,82 @@ +{ + "id": "8cf3168e-3e94-4c35-984d-ae291a9fbbb6", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "b5d42ace-c20e-4125-8680-73a396ea1013", + "label": "reply", + "scope": "CLASS", + "y": -1, + "angle": 24.000000000000004, + "list": [ + { + "type": "Image", + "id": "2f21b436-6f9f-47b6-b22e-4f8b359ac8e3", + "label": "shadow", + "texture": { + "key": "mail", + "frame": "reply/shadow" + }, + "x": -223, + "y": 396, + "originX": 0.5005727376861397 + }, + { + "type": "Sprite", + "id": "4b1a6cc6-23f4-4501-bd7d-965d197bb4c5", + "label": "note", + "scope": "CLASS", + "components": [ + "SimpleButton" + ], + "SimpleButton.hoverCallback": "() => this.onOver()", + "SimpleButton.hoverOutCallback": "() => this.onOut()", + "SimpleButton.callback": "() => this.onClick()", + "SimpleButton.pixelPerfect": true, + "texture": { + "key": "mail", + "frame": "reply/reply0001" + }, + "x": -225, + "y": 383, + "originY": 0.5006242197253433 + }, + { + "type": "Sprite", + "id": "1eaac536-e2b5-40aa-9bfc-b0961c3d8deb", + "label": "arrow", + "scope": "CLASS", + "texture": { + "key": "mail", + "frame": "reply/arrow0001" + }, + "x": -396, + "y": 603, + "angle": -24.000000000000004, + "originY": 0.5028248587570622, + "visible": false + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/interface/game/mail/reply/MailReplyState.js b/src/scenes/interface/game/mail/reply/MailReplyState.js new file mode 100644 index 00000000..5c0ced82 --- /dev/null +++ b/src/scenes/interface/game/mail/reply/MailReplyState.js @@ -0,0 +1,4 @@ +export default { + Up: 0, + Down: 1 +} diff --git a/src/scenes/interface/game/mailbook/Mailbook.js b/src/scenes/interface/game/mailbook/Mailbook.js new file mode 100644 index 00000000..11785278 --- /dev/null +++ b/src/scenes/interface/game/mailbook/Mailbook.js @@ -0,0 +1,450 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../../base/BaseContainer"; +import Interactive from "../../../components/Interactive"; +import MailbookUserList from "./user_list/MailbookUserList"; +import Button from "../../../components/Button"; +import MailbookPostcardItem from "./postcard_item/MailbookPostcardItem"; +import MailbookPreview from "./preview/MailbookPreview"; +/* START-USER-IMPORTS */ + +import PostcardIconLoader from '@engine/loaders/PostcardIconLoader' + +/* END-USER-IMPORTS */ + +export default class Mailbook extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 760, y ?? 480); + + /** @type {MailbookUserList} */ + this.userList; + /** @type {Phaser.GameObjects.Container} */ + this.buddy; + /** @type {Phaser.GameObjects.Text} */ + this.titleText; + /** @type {Phaser.GameObjects.Text} */ + this.pageText; + /** @type {Phaser.GameObjects.Container} */ + this.postcards; + /** @type {MailbookPreview} */ + this.mailbookPreview; + /** @type {MailbookPostcardItem[]} */ + this.postcardItems; + + + // block + const block = scene.add.rectangle(0, 0, 1520, 960); + block.isFilled = true; + block.fillColor = 0; + block.fillAlpha = 0.2; + this.add(block); + + // bg + const bg = scene.add.image(-50, 4, "mailbook", "bg"); + this.add(bg); + + // buddy + const buddy = scene.add.container(-604, -370); + buddy.visible = false; + this.add(buddy); + + // userList + const userList = new MailbookUserList(scene, 1051, 349); + buddy.add(userList); + + // send + const send = scene.add.image(622, 294, "mailbook", "send"); + send.setOrigin(0.5043478260869565, 0.5074626865671642); + buddy.add(send); + + // penguin + const penguin = scene.add.image(175, 479, "mailbook", "penguin"); + penguin.setOrigin(0.5012722646310432, 0.5011337868480725); + buddy.add(penguin); + + // separator4 + const separator4 = scene.add.image(611, 349, "mailbook", "separator/1"); + separator4.setOrigin(0.501187648456057, 0.5); + buddy.add(separator4); + + // separator3 + const separator3 = scene.add.image(229, 188, "mailbook", "separator/3"); + separator3.setOrigin(0.5, 0.5081967213114754); + buddy.add(separator3); + + // sendText3 + const sendText3 = scene.add.text(420, 339, "", {}); + sendText3.text = "Send to:"; + sendText3.setStyle({ "align": "center", "color": "#333333", "fixedWidth":380,"fontFamily": "CCFaceFront", "fontSize": "56px", "fontStyle": "italic" }); + buddy.add(sendText3); + + // coinText2 + const coinText2 = scene.add.text(251, 158, "", {}); + coinText2.text = "10"; + coinText2.setStyle({ "color": "#000000", "fontFamily": "Burbank Small", "fontSize": "50px", "fontStyle": "bold" }); + buddy.add(coinText2); + + // sendText2 + const sendText2 = scene.add.text(11, 150, "", {}); + sendText2.text = "Buy and send\npostcards for"; + sendText2.setStyle({ "color": "#000000", "fontFamily": "Burbank Small", "fontSize": "30px" }); + buddy.add(sendText2); + + // postcardsText2 + const postcardsText2 = scene.add.text(128, 48, "", {}); + postcardsText2.setOrigin(0, 0.5); + postcardsText2.text = "Postcards"; + postcardsText2.setStyle({ "color": "#000000", "fixedWidth":400,"fontFamily": "Burbank Big Regular", "fontSize": "58px", "fontStyle": "bold" }); + buddy.add(postcardsText2); + + // postcards + const postcards = scene.add.container(-661, -337); + postcards.visible = false; + this.add(postcards); + + // pageRight + const pageRight = scene.add.image(1283, 621, "mailbook", "page_right"); + pageRight.setOrigin(0.5038167938931297, 0.5); + postcards.add(pageRight); + + // pageLeft + const pageLeft = scene.add.image(0, 623, "mailbook", "page_left"); + pageLeft.setOrigin(0.5038167938931297, 0.5); + postcards.add(pageLeft); + + // separator2 + const separator2 = scene.add.image(742, 70, "mailbook", "separator/4"); + separator2.setOrigin(0.5004428697962799, 0.5263157894736842); + postcards.add(separator2); + + // coin + const coin = scene.add.image(1227, 29, "mailbook", "coin"); + postcards.add(coin); + + // coinText + const coinText = scene.add.text(1164, 7, "", {}); + coinText.text = "10"; + coinText.setStyle({ "color": "#000000", "fixedWidth":50,"fontFamily": "Burbank Big Regular", "fontSize": "40px", "fontStyle": "bold" }); + postcards.add(coinText); + + // separator1 + const separator1 = scene.add.image(1149, 29, "mailbook", "separator/2"); + separator1.setOrigin(0.5, 0.5081967213114754); + postcards.add(separator1); + + // sendText + const sendText = scene.add.text(969, 0, "", {}); + sendText.text = "Buy and send\npostcards for"; + sendText.setStyle({ "color": "#000000", "fontFamily": "Burbank Small", "fontSize": "25px" }); + postcards.add(sendText); + + // titleText + const titleText = scene.add.text(471, 26, "", {}); + titleText.setOrigin(0, 0.5); + titleText.text = "Featured Postcards"; + titleText.setStyle({ "color": "#333333", "fixedWidth":600,"fontFamily": "CCFaceFront", "fontSize": "44px" }); + postcards.add(titleText); + + // separator + const separator = scene.add.image(452, 23, "mailbook", "separator/2"); + postcards.add(separator); + + // postcardsText + const postcardsText = scene.add.text(188, 22, "", {}); + postcardsText.setOrigin(0, 0.5); + postcardsText.text = "Postcards"; + postcardsText.setStyle({ "color": "#000000", "fixedWidth":400,"fontFamily": "Burbank Big Regular", "fontSize": "58px", "fontStyle": "bold" }); + postcards.add(postcardsText); + + // pageText + const pageText = scene.add.text(1163, -45, "", {}); + pageText.setOrigin(0.5, 0.5); + pageText.setStyle({ "align": "right", "color": "#bbb", "fixedWidth":250,"fontFamily": "Burbank Small", "fontSize": "20px", "fontStyle": "bold" }); + postcards.add(pageText); + + // mailbookPostcardItem6 + const mailbookPostcardItem6 = new MailbookPostcardItem(scene, -1000, -1000); + mailbookPostcardItem6.visible = false; + this.add(mailbookPostcardItem6); + + // mailbookPostcardItem5 + const mailbookPostcardItem5 = new MailbookPostcardItem(scene, -1000, -1000); + mailbookPostcardItem5.visible = false; + this.add(mailbookPostcardItem5); + + // mailbookPostcardItem4 + const mailbookPostcardItem4 = new MailbookPostcardItem(scene, -1000, -1000); + mailbookPostcardItem4.visible = false; + this.add(mailbookPostcardItem4); + + // mailbookPostcardItem3 + const mailbookPostcardItem3 = new MailbookPostcardItem(scene, -1000, -1000); + mailbookPostcardItem3.visible = false; + this.add(mailbookPostcardItem3); + + // mailbookPostcardItem2 + const mailbookPostcardItem2 = new MailbookPostcardItem(scene, -1000, -1000); + mailbookPostcardItem2.visible = false; + this.add(mailbookPostcardItem2); + + // mailbookPostcardItem1 + const mailbookPostcardItem1 = new MailbookPostcardItem(scene, -1000, -1000); + mailbookPostcardItem1.visible = false; + this.add(mailbookPostcardItem1); + + // close + const close = scene.add.image(624, -320, "mailbook", "close"); + close.setOrigin(0.5028901734104047, 0.5017667844522968); + this.add(close); + + // mailbookPreview + const mailbookPreview = new MailbookPreview(scene, 0, 0); + mailbookPreview.visible = false; + this.add(mailbookPreview); + + // lists + const postcardItems = [mailbookPostcardItem1, mailbookPostcardItem2, mailbookPostcardItem3, mailbookPostcardItem4, mailbookPostcardItem5, mailbookPostcardItem6]; + + // block (components) + new Interactive(block); + + // pageRight (components) + const pageRightButton = new Button(pageRight); + pageRightButton.spriteName = "page_right"; + pageRightButton.callback = () => this.nextPage(); + pageRightButton.activeFrame = false; + + // pageLeft (components) + const pageLeftButton = new Button(pageLeft); + pageLeftButton.spriteName = "page_left"; + pageLeftButton.callback = () => this.prevPage(); + pageLeftButton.activeFrame = false; + + // close (components) + const closeButton = new Button(close); + closeButton.spriteName = "close"; + closeButton.callback = () => this.close(); + closeButton.pixelPerfect = true; + + this.userList = userList; + this.buddy = buddy; + this.titleText = titleText; + this.pageText = pageText; + this.postcards = postcards; + this.mailbookPreview = mailbookPreview; + this.postcardItems = postcardItems; + + /* START-USER-CTR-CODE */ + + this.startX = 20 + this.startY = 40 + this.cellWidth = 400 + this.cellHeight = 305 + + this.page = 1 + this.pageSize = 6 + + this.pages = this.buildPages() + this.maxPage = this.pages.length + + this.postcardIconLoader = new PostcardIconLoader(this) + + this.recipientId + this.recipientName + + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + show() { + this.showBuddy() + + super.show() + } + + close() { + this.mailbookPreview.close() + + super.close() + } + + buildPages() { + const pages = [] + + for (const category of this.crumbs.postcards) { + this.buildCategoryPages(pages, category) + } + + return pages + } + + buildCategoryPages(pages, category) { + const postcards = category.postcards + + for (let i = 0; i < postcards.length; i += this.pageSize) { + pages.push({ + category: category.name, + postcards: postcards.slice(i, i + this.pageSize) + }) + } + } + + showBuddy() { + this.postcards.visible = false + this.postcardItems.map(item => item.clearItem()) + + this.buddy.visible = true + this.userList.showPage() + } + + showPostcards(recipientId, recipientName) { + if (!this.visible) { + super.show() + } + + this.recipientId = recipientId + this.recipientName = recipientName + + this.buddy.visible = false + this.postcards.visible = true + + this.page = 1 + + this.showPage() + } + + showPage() { + const page = this.pages[this.page - 1] + + this.titleText.text = page.category + + for (const [index, item] of this.postcardItems.entries()) { + const postcard = page.postcards[index] + + if (postcard) { + item.setItem(postcard) + } else { + item.setItem(null) + } + } + + this.updatePageText() + + this.updateGrid() + + this.postcardIconLoader.loadPage(page) + } + + prevPage() { + const page = this.page - 1 + if (page < 1) { + return + } + + this.page = page + this.showPage() + } + + nextPage() { + const page = this.page + 1 + if (page > this.maxPage) { + return + } + + this.page = page + this.showPage() + } + + updatePageText() { + this.pageText.text = `Page ${this.page} of ${this.maxPage}` + } + + updateGrid() { + const items = this.postcardItems.filter(item => item.visible) + + if (!items.length) { + return + } + + const halfCellWidth = Math.round(this.cellWidth / 2) + const halfCellHeight = Math.round(this.cellHeight / 2) + + switch (items.length) { + case 1: + this.createGrid(items, 1, 0, 0) + break + + case 2: + this.createGrid(items, 2, -halfCellWidth, 0) + break + + case 3: + this.create3Grid(items, halfCellWidth, halfCellHeight) + break + + case 4: + this.createGrid(items, 2, -halfCellWidth, -halfCellHeight) + break + + case 5: + this.create5Grid(items, halfCellWidth, halfCellHeight) + break + + case 6: + this.createGrid(items, 3, -this.cellWidth, -halfCellHeight) + break + + default: + break + } + } + + createGrid(items, cols, x, y) { + // Start pos offset + x += this.startX + y += this.startY + + // Loop through each item and position it in grid + for (let i = 0; i < items.length; i++) { + const colIndex = i % cols + const rowIndex = Math.floor(i / cols) + + const offsetX = colIndex * this.cellWidth + const offsetY = rowIndex * this.cellHeight + + items[i].x = x + offsetX + items[i].y = y + offsetY + + // Position each column below the previous + items[i].y += colIndex * 6 + } + } + + create3Grid(items, halfCellWidth, halfCellHeight) { + items = this.splitArray(items, 2) + + this.createGrid(items[0], 2, -halfCellWidth, -halfCellHeight) + this.createGrid(items[1], 1, 0, halfCellHeight) + } + + create5Grid(items, halfCellWidth, halfCellHeight) { + items = this.splitArray(items, 3) + + this.createGrid(items[0], 3, -this.cellWidth, -halfCellHeight) + this.createGrid(items[1], 2, -halfCellWidth, halfCellHeight) + } + + splitArray(array, middleIndex) { + const first = array.slice(0, middleIndex) + const second = array.slice(middleIndex, array.length) + + return [first, second] + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/game/mailbook/Mailbook.scene b/src/scenes/interface/game/mailbook/Mailbook.scene new file mode 100644 index 00000000..9dfccc1a --- /dev/null +++ b/src/scenes/interface/game/mailbook/Mailbook.scene @@ -0,0 +1,467 @@ +{ + "id": "cfd4ada9-1244-44f7-a0ac-79b47d443f92", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "6b7d14e9-a537-49e7-a866-1574e4d7c324", + "label": "container_1", + "x": 760, + "y": 480, + "list": [ + { + "type": "Rectangle", + "id": "040db71b-1d6b-4f74-afcf-0542e70827b3", + "label": "block", + "components": [ + "Interactive" + ], + "isFilled": true, + "fillColor": "#000000", + "fillAlpha": 0.2, + "width": 1520, + "height": 960 + }, + { + "type": "Image", + "id": "2aa763eb-1055-4e03-859e-e95b7f283310", + "label": "bg", + "texture": { + "key": "mailbook", + "frame": "bg" + }, + "x": -50, + "y": 4 + }, + { + "type": "Container", + "id": "6c11a6d3-89f1-4447-bd41-a3904528d317", + "label": "buddy", + "scope": "CLASS", + "x": -604, + "y": -370, + "visible": false, + "list": [ + { + "prefabId": "cda13a82-2ed2-4422-be5d-9a05c903ac25", + "id": "f4553845-4cc4-4b14-a129-9fcaf716ed0a", + "unlock": [ + "x", + "y" + ], + "label": "userList", + "scope": "CLASS", + "x": 1051, + "y": 349 + }, + { + "type": "Image", + "id": "9b03e74a-66f1-48f7-8ddb-fe1af1c7004f", + "label": "send", + "texture": { + "key": "mailbook", + "frame": "send" + }, + "x": 622, + "y": 294, + "originX": 0.5043478260869565, + "originY": 0.5074626865671642 + }, + { + "type": "Image", + "id": "60997b36-82f5-4d64-8977-d5cdb24aab1c", + "label": "penguin", + "texture": { + "key": "mailbook", + "frame": "penguin" + }, + "x": 175, + "y": 479, + "originX": 0.5012722646310432, + "originY": 0.5011337868480725 + }, + { + "type": "Image", + "id": "3711e83b-6548-4f87-a170-ed34da0a099f", + "label": "separator4", + "texture": { + "key": "mailbook", + "frame": "separator/1" + }, + "x": 611, + "y": 349, + "originX": 0.501187648456057 + }, + { + "type": "Image", + "id": "227e4fb0-f1e6-41f0-ae99-a5431708fc8d", + "label": "separator3", + "texture": { + "key": "mailbook", + "frame": "separator/3" + }, + "x": 229, + "y": 188, + "originY": 0.5081967213114754 + }, + { + "type": "Text", + "id": "23725906-17b5-45ad-a860-bf32e61e2035", + "label": "sendText3", + "x": 420, + "y": 339, + "text": "Send to:", + "fixedWidth": 380, + "align": "center", + "fontFamily": "CCFaceFront", + "fontSize": "56px", + "fontStyle": "italic", + "color": "#333333" + }, + { + "type": "Text", + "id": "217fc88e-201e-4bbf-8337-cadebb6d4870", + "label": "coinText2", + "x": 251, + "y": 158, + "text": "10", + "fontFamily": "Burbank Small", + "fontSize": "50px", + "fontStyle": "bold", + "color": "#000000" + }, + { + "type": "Text", + "id": "9c0820f7-cae0-4294-b90f-16703f6bdc39", + "label": "sendText2", + "x": 11, + "y": 150, + "text": "Buy and send\npostcards for", + "fontFamily": "Burbank Small", + "fontSize": "30px", + "color": "#000000" + }, + { + "type": "Text", + "id": "1ed4aa94-50ee-4faf-9a8a-37dda6963e0e", + "label": "postcardsText2", + "x": 128, + "y": 48, + "originY": 0.5, + "text": "Postcards", + "fixedWidth": 400, + "fontFamily": "Burbank Big Regular", + "fontSize": "58px", + "fontStyle": "bold", + "color": "#000000" + } + ] + }, + { + "type": "Container", + "id": "49abb626-18fe-4b53-93d7-049f4d439fbc", + "label": "postcards", + "scope": "CLASS", + "x": -661, + "y": -337, + "visible": false, + "list": [ + { + "type": "Image", + "id": "3bb1bd89-2853-4f81-a08d-d58528fbfbbc", + "label": "pageRight", + "components": [ + "Button" + ], + "Button.spriteName": "page_right", + "Button.callback": "() => this.nextPage()", + "Button.activeFrame": false, + "texture": { + "key": "mailbook", + "frame": "page_right" + }, + "x": 1283, + "y": 621, + "originX": 0.5038167938931297 + }, + { + "type": "Image", + "id": "8291d112-1a2e-4cb4-afff-aab7a763d574", + "label": "pageLeft", + "components": [ + "Button" + ], + "Button.spriteName": "page_left", + "Button.callback": "() => this.prevPage()", + "Button.activeFrame": false, + "texture": { + "key": "mailbook", + "frame": "page_left" + }, + "y": 623, + "originX": 0.5038167938931297 + }, + { + "type": "Image", + "id": "aad9e1b0-a920-4c25-8ad4-977a8561e664", + "label": "separator2", + "texture": { + "key": "mailbook", + "frame": "separator/4" + }, + "x": 742, + "y": 70, + "originX": 0.5004428697962799, + "originY": 0.5263157894736842 + }, + { + "type": "Image", + "id": "ced102b6-eb4e-421b-9b15-173e1a30867e", + "label": "coin", + "texture": { + "key": "mailbook", + "frame": "coin" + }, + "x": 1227, + "y": 29 + }, + { + "type": "Text", + "id": "ab702147-4252-455a-90d0-31a4222e44f1", + "label": "coinText", + "x": 1164, + "y": 7, + "text": "10", + "fixedWidth": 50, + "fontFamily": "Burbank Big Regular", + "fontSize": "40px", + "fontStyle": "bold", + "color": "#000000" + }, + { + "type": "Image", + "id": "8dd77b16-d5c8-46d9-ae70-948696a2ef06", + "label": "separator1", + "texture": { + "key": "mailbook", + "frame": "separator/2" + }, + "x": 1149, + "y": 29, + "originY": 0.5081967213114754 + }, + { + "type": "Text", + "id": "71032b07-2e96-47d9-a067-7ff621ae359d", + "label": "sendText", + "x": 969, + "text": "Buy and send\npostcards for", + "fontFamily": "Burbank Small", + "fontSize": "25px", + "color": "#000000" + }, + { + "type": "Text", + "id": "f950d16a-20ca-471b-8f70-703b6890f957", + "label": "titleText", + "scope": "CLASS", + "x": 471, + "y": 26, + "originY": 0.5, + "text": "Featured Postcards", + "fixedWidth": 600, + "fontFamily": "CCFaceFront", + "fontSize": "44px", + "color": "#333333" + }, + { + "type": "Image", + "id": "0bde309d-33fb-4ff5-96fb-0a129cac64fb", + "label": "separator", + "texture": { + "key": "mailbook", + "frame": "separator/2" + }, + "x": 452, + "y": 23 + }, + { + "type": "Text", + "id": "081ca423-b6bf-4d2b-82e9-7627ca809fba", + "label": "postcardsText", + "x": 188, + "y": 22, + "originY": 0.5, + "text": "Postcards", + "fixedWidth": 400, + "fontFamily": "Burbank Big Regular", + "fontSize": "58px", + "fontStyle": "bold", + "color": "#000000" + }, + { + "type": "Text", + "id": "c7846fa3-c512-40e4-a244-550a00b0adbf", + "label": "pageText", + "scope": "CLASS", + "x": 1163, + "y": -45, + "originX": 0.5, + "originY": 0.5, + "fixedWidth": 250, + "align": "right", + "fontFamily": "Burbank Small", + "fontSize": "20px", + "fontStyle": "bold", + "color": "#bbb" + } + ] + }, + { + "prefabId": "f753dbbc-9a39-4d38-9eda-8c77184f4792", + "id": "1cc6ea04-a628-406e-9064-a90722cc9cdc", + "unlock": [ + "x", + "y", + "visible" + ], + "label": "mailbookPostcardItem6", + "x": -1000, + "y": -1000, + "visible": false + }, + { + "prefabId": "f753dbbc-9a39-4d38-9eda-8c77184f4792", + "id": "37b2a16c-115f-4454-881d-92420b721d74", + "unlock": [ + "x", + "y", + "visible" + ], + "label": "mailbookPostcardItem5", + "x": -1000, + "y": -1000, + "visible": false + }, + { + "prefabId": "f753dbbc-9a39-4d38-9eda-8c77184f4792", + "id": "3db6760a-38f8-44c5-bdb4-4674aa4ba591", + "unlock": [ + "x", + "y", + "visible" + ], + "label": "mailbookPostcardItem4", + "x": -1000, + "y": -1000, + "visible": false + }, + { + "prefabId": "f753dbbc-9a39-4d38-9eda-8c77184f4792", + "id": "46cf50f1-e521-4405-a4e7-5305dbc6c1be", + "unlock": [ + "x", + "y", + "visible" + ], + "label": "mailbookPostcardItem3", + "x": -1000, + "y": -1000, + "visible": false + }, + { + "prefabId": "f753dbbc-9a39-4d38-9eda-8c77184f4792", + "id": "5e2ffe91-0571-4c5c-a8dc-639de51099a9", + "unlock": [ + "x", + "y", + "visible" + ], + "label": "mailbookPostcardItem2", + "x": -1000, + "y": -1000, + "visible": false + }, + { + "prefabId": "f753dbbc-9a39-4d38-9eda-8c77184f4792", + "id": "6f3a39c5-b7f1-4cba-832f-9fa00e7c94b9", + "unlock": [ + "x", + "y", + "visible" + ], + "label": "mailbookPostcardItem1", + "x": -1000, + "y": -1000, + "visible": false + }, + { + "type": "Image", + "id": "339cf076-debb-4cda-b93b-fc4dc918d53b", + "label": "close", + "components": [ + "Button" + ], + "Button.spriteName": "close", + "Button.callback": "() => this.close()", + "Button.pixelPerfect": true, + "texture": { + "key": "mailbook", + "frame": "close" + }, + "x": 624, + "y": -320, + "originX": 0.5028901734104047, + "originY": 0.5017667844522968 + }, + { + "prefabId": "9105e9af-f2bb-4ae9-ad42-c02031668d8f", + "id": "eb461b88-41d0-494d-b699-2185e2707935", + "unlock": [ + "x", + "y", + "visible" + ], + "label": "mailbookPreview", + "scope": "CLASS", + "x": 0, + "y": 0, + "visible": false + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + }, + "lists": [ + { + "id": "a8c2716a-21f9-4099-89ca-ff974a70a76b", + "label": "postcardItems", + "objectIds": [ + "6f3a39c5-b7f1-4cba-832f-9fa00e7c94b9", + "5e2ffe91-0571-4c5c-a8dc-639de51099a9", + "46cf50f1-e521-4405-a4e7-5305dbc6c1be", + "3db6760a-38f8-44c5-bdb4-4674aa4ba591", + "37b2a16c-115f-4454-881d-92420b721d74", + "1cc6ea04-a628-406e-9064-a90722cc9cdc" + ] + } + ] +} \ No newline at end of file diff --git a/src/scenes/interface/game/mailbook/postcard_item/MailbookPostcardItem.js b/src/scenes/interface/game/mailbook/postcard_item/MailbookPostcardItem.js new file mode 100644 index 00000000..50e3042d --- /dev/null +++ b/src/scenes/interface/game/mailbook/postcard_item/MailbookPostcardItem.js @@ -0,0 +1,120 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../../../base/BaseContainer"; +import SimpleButton from "../../../../components/SimpleButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class MailbookPostcardItem extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Image} */ + this.error; + /** @type {Phaser.GameObjects.Image} */ + this.spinner; + /** @type {Phaser.GameObjects.Text} */ + this.subject; + + + // postcardItem + const postcardItem = scene.add.image(0, 22, "mailbook", "postcard_item"); + this.add(postcardItem); + + // error + const error = scene.add.image(0, 0, "mailbook", "error"); + error.visible = false; + this.add(error); + + // spinner + const spinner = scene.add.image(0, 0, "mailbook", "spinner"); + spinner.visible = false; + this.add(spinner); + + // subject + const subject = scene.add.text(0, 146, "", {}); + subject.setOrigin(0.5, 0.5); + subject.setStyle({ "align": "center", "color": "#000000", "fixedWidth":342,"fontFamily": "Burbank Small", "fontSize": "30px" }); + this.add(subject); + + // postcardItem (components) + const postcardItemSimpleButton = new SimpleButton(postcardItem); + postcardItemSimpleButton.callback = () => this.onClick(); + + this.error = error; + this.spinner = spinner; + this.subject = subject; + + /* START-USER-CTR-CODE */ + + this.id + this.icon + + this.iconX = -141 + this.iconY = -97 + + this.spinnerTween = scene.tweens.add({ + targets: spinner, + angle: { from: 0, to: 180 }, + duration: 900, + repeat: -1, + ease: 'Cubic', + paused: true + }) + + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + onClick() { + this.parentContainer.mailbookPreview.show(this.id) + } + + setItem(postcard) { + if (!postcard) { + return this.clearItem() + } + + this.id = postcard.id + this.subject.text = postcard.subject + + this.visible = true + } + + clearItem() { + this.visible = false + + this.id = null + this.subject.text = '' + } + + addIcon(key) { + const icon = this.scene.add.image(this.iconX, this.iconY, key) + + icon.setOrigin(0) + this.add(icon) + + this.icon = icon + } + + startSpinner() { + this.spinnerTween.seek(0) + this.spinnerTween.resume() + + this.spinner.visible = true + } + + stopSpinner() { + this.spinner.visible = false + + this.spinnerTween.pause() + this.spinner.angle = 0 + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/game/mailbook/postcard_item/MailbookPostcardItem.scene b/src/scenes/interface/game/mailbook/postcard_item/MailbookPostcardItem.scene new file mode 100644 index 00000000..f1e9a041 --- /dev/null +++ b/src/scenes/interface/game/mailbook/postcard_item/MailbookPostcardItem.scene @@ -0,0 +1,82 @@ +{ + "id": "f753dbbc-9a39-4d38-9eda-8c77184f4792", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "1a0f8abe-fef3-4c31-a6bd-314cadddf543", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "74a3381d-e44d-408d-a3c5-b2f0fbdc6019", + "label": "postcardItem", + "components": [ + "SimpleButton" + ], + "SimpleButton.callback": "() => this.onClick()", + "texture": { + "key": "mailbook", + "frame": "postcard_item" + }, + "y": 22 + }, + { + "type": "Image", + "id": "60c69b37-487b-45ea-a1bb-85e237b180f8", + "label": "error", + "scope": "CLASS", + "texture": { + "key": "mailbook", + "frame": "error" + }, + "visible": false + }, + { + "type": "Image", + "id": "36e02b2e-7246-4686-ad3c-0e56ad61319d", + "label": "spinner", + "scope": "CLASS", + "texture": { + "key": "mailbook", + "frame": "spinner" + }, + "visible": false + }, + { + "type": "Text", + "id": "6153ef08-41a2-4e63-9f47-6f61bc54a89e", + "label": "subject", + "scope": "CLASS", + "y": 146, + "originX": 0.5, + "originY": 0.5, + "fixedWidth": 342, + "align": "center", + "fontFamily": "Burbank Small", + "fontSize": "30px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/interface/game/mailbook/preview/MailbookPreview.js b/src/scenes/interface/game/mailbook/preview/MailbookPreview.js new file mode 100644 index 00000000..2bd882fd --- /dev/null +++ b/src/scenes/interface/game/mailbook/preview/MailbookPreview.js @@ -0,0 +1,234 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../../../base/BaseContainer"; +import Interactive from "../../../../components/Interactive"; +import Button from "../../../../components/Button"; +/* START-USER-IMPORTS */ + +import PostcardLoader from '@engine/loaders/PostcardLoader' + +/* END-USER-IMPORTS */ + +export default class MailbookPreview extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 760, y ?? 480); + + /** @type {Phaser.GameObjects.Text} */ + this.sendText; + /** @type {Phaser.GameObjects.Image} */ + this.error; + /** @type {Phaser.GameObjects.Image} */ + this.spinner; + + + // block + const block = scene.add.rectangle(0, 0, 1520, 960); + block.isFilled = true; + block.fillColor = 0; + block.fillAlpha = 0.2; + this.add(block); + + // preview + const preview = scene.add.image(0, 0, "mailbook", "preview"); + preview.setOrigin(0.5, 0.5005599104143337); + this.add(preview); + + // no + const no = scene.add.image(165, 380, "mailbook", "button"); + no.setOrigin(0.5, 0.5068493150684932); + this.add(no); + + // yes + const yes = scene.add.image(-165, 380, "mailbook", "button"); + yes.setOrigin(0.5, 0.5068493150684932); + this.add(yes); + + // noText + const noText = scene.add.text(165, 380, "", {}); + noText.setOrigin(0.5, 0.5); + noText.text = "No"; + noText.setStyle({ "align": "center", "color": "#333333", "fixedWidth":200,"fontFamily": "Arial", "fontSize": "38px" }); + this.add(noText); + + // yesText + const yesText = scene.add.text(-165, 380, "", {}); + yesText.setOrigin(0.5, 0.5); + yesText.text = "Yes"; + yesText.setStyle({ "align": "center", "color": "#333333", "fixedWidth":200,"fontFamily": "Arial", "fontSize": "38px" }); + this.add(yesText); + + // sendText + const sendText = scene.add.text(0, 312, "", {}); + sendText.setOrigin(0.5, 0.5); + sendText.setStyle({ "align": "center", "color": "#333333", "fixedWidth":1000,"fontFamily": "Arial", "fontSize": "32px" }); + this.add(sendText); + + // error + const error = scene.add.image(0, -61, "mailbook", "card"); + error.setOrigin(0.5, 0.5007052186177715); + error.visible = false; + this.add(error); + + // spinner + const spinner = scene.add.image(0, -61, "mail", "spinner"); + spinner.visible = false; + this.add(spinner); + + // closeButton + const closeButton = scene.add.image(485, -407, "main", "grey-button"); + this.add(closeButton); + + // closeIcon + const closeIcon = scene.add.image(485, -409, "main", "grey-x"); + this.add(closeIcon); + + // block (components) + new Interactive(block); + + // no (components) + const noButton = new Button(no); + noButton.spriteName = "button"; + noButton.callback = () => this.close(); + + // yes (components) + const yesButton = new Button(yes); + yesButton.spriteName = "button"; + yesButton.callback = () => this.onYesClick(); + + // closeButton (components) + const closeButtonButton = new Button(closeButton); + closeButtonButton.spriteName = "grey-button"; + closeButtonButton.callback = () => this.close(); + + this.sendText = sendText; + this.error = error; + this.spinner = spinner; + + /* START-USER-CTR-CODE */ + + this.postcardLoader = new PostcardLoader(scene) + this.postcardLoader.on('loaderror', this.onPostcardLoadError, this) + + this.postcardX = -488 + this.postcardY = -416 + + // Current postcard id + this.id + // Current postcard prefab + this.currentPrefab + + this.postcardCost = 10 + + this.spinnerTween = scene.tweens.add({ + targets: spinner, + angle: { from: 0, to: 180 }, + duration: 900, + repeat: -1, + ease: 'Cubic', + paused: true + }) + + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + show(postcardId) { + this.loadPostcard(postcardId) + + this.sendText.text = `Send this postcard to ${this.parentContainer.recipientName} for ${this.postcardCost} coins?` + + super.show() + } + + close() { + this.checkDestroyCurrent() + + super.close() + } + + onYesClick() { + this.parentContainer.close() + + if (this.world.client.coins < this.postcardCost) { + return this.interface.prompt.showMailError('Failed to send Postcard.\nYou need more coins.') + } + + this.network.send('send_mail', { recipient: this.parentContainer.recipientId, postcardId: this.id }) + } + + loadPostcard(postcardId) { + this.checkDestroyCurrent() + + // ID representing postcard to load + this.id = postcardId + + this.error.visible = false + this.startSpinner() + + this.postcardLoader.loadPostcard(postcardId, (postcardClass) => this.addPostcard(postcardClass, postcardId)) + } + + addPostcard(postcardClass, postcardId) { + if (postcardId !== this.id) { + return + } + + this.stopSpinner() + + this.checkDestroyCurrent() + + try { + this.currentPrefab = new postcardClass(this.scene, this.postcardX, this.postcardY) + this.currentPrefab.setName(this.world.client.penguin.username) + + this.addAt(this.currentPrefab, 2) + + } catch (error) { + console.error(error) + + this.showError() + } + + } + + checkDestroyCurrent() { + if (this.currentPrefab) { + this.currentPrefab.destroy() + } + } + + startSpinner() { + this.spinnerTween.seek(0) + this.spinnerTween.resume() + + this.spinner.visible = true + } + + stopSpinner() { + this.spinner.visible = false + + this.spinnerTween.pause() + this.spinner.angle = 0 + } + + showError() { + this.stopSpinner() + this.error.visible = true + } + + onPostcardLoadError(file) { + const id = this.postcardLoader.getKeyId(file.key) + + if (id === this.id) { + this.showError() + } + } + + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/game/mailbook/preview/MailbookPreview.scene b/src/scenes/interface/game/mailbook/preview/MailbookPreview.scene new file mode 100644 index 00000000..f37a41ec --- /dev/null +++ b/src/scenes/interface/game/mailbook/preview/MailbookPreview.scene @@ -0,0 +1,187 @@ +{ + "id": "9105e9af-f2bb-4ae9-ad42-c02031668d8f", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "9dbf769b-1fa6-4bd2-ad48-d97fda5fbc70", + "label": "container_1", + "x": 760, + "y": 480, + "list": [ + { + "type": "Rectangle", + "id": "ab41f9b6-0d7a-45d9-a8fa-4abb748f7ec6", + "label": "block", + "components": [ + "Interactive" + ], + "isFilled": true, + "fillColor": "#000000", + "fillAlpha": 0.2, + "width": 1520, + "height": 960 + }, + { + "type": "Image", + "id": "8050fa40-54dc-4735-b79a-4378462dbba3", + "label": "preview", + "texture": { + "key": "mailbook", + "frame": "preview" + }, + "originY": 0.5005599104143337 + }, + { + "type": "Image", + "id": "2b229c57-b4cf-4b23-8460-f5d5359c79c6", + "label": "no", + "components": [ + "Button" + ], + "Button.spriteName": "button", + "Button.callback": "() => this.close()", + "texture": { + "key": "mailbook", + "frame": "button" + }, + "x": 165, + "y": 380, + "originY": 0.5068493150684932 + }, + { + "type": "Image", + "id": "987e65f9-09d5-4160-ba0d-f14db67d899b", + "label": "yes", + "components": [ + "Button" + ], + "Button.spriteName": "button", + "Button.callback": "() => this.onYesClick()", + "texture": { + "key": "mailbook", + "frame": "button" + }, + "x": -165, + "y": 380, + "originY": 0.5068493150684932 + }, + { + "type": "Text", + "id": "28b7f826-775d-408b-a46f-5a463f6ba17e", + "label": "noText", + "x": 165, + "y": 380, + "originX": 0.5, + "originY": 0.5, + "text": "No", + "fixedWidth": 200, + "align": "center", + "fontFamily": "Arial", + "fontSize": "38px", + "color": "#333333" + }, + { + "type": "Text", + "id": "0bb09b62-d164-4909-83d7-1633aca777ba", + "label": "yesText", + "x": -165, + "y": 380, + "originX": 0.5, + "originY": 0.5, + "text": "Yes", + "fixedWidth": 200, + "align": "center", + "fontFamily": "Arial", + "fontSize": "38px", + "color": "#333333" + }, + { + "type": "Text", + "id": "6e95c238-cf4d-4c81-b7f3-18fc06ec63f3", + "label": "sendText", + "scope": "CLASS", + "y": 312, + "originX": 0.5, + "originY": 0.5, + "fixedWidth": 1000, + "align": "center", + "fontFamily": "Arial", + "fontSize": "32px", + "color": "#333333" + }, + { + "type": "Image", + "id": "de5641c5-d08b-4dea-aa26-af8efbf326ef", + "label": "error", + "scope": "CLASS", + "texture": { + "key": "mailbook", + "frame": "card" + }, + "y": -61, + "originY": 0.5007052186177715, + "visible": false + }, + { + "type": "Image", + "id": "1b2047a9-6c73-4e75-ae60-70e0658244f5", + "label": "spinner", + "scope": "CLASS", + "texture": { + "key": "mail", + "frame": "spinner" + }, + "y": -61, + "visible": false + }, + { + "type": "Image", + "id": "1f66aa88-7ad5-471b-b487-3eb2b93d973f", + "label": "closeButton", + "components": [ + "Button" + ], + "Button.spriteName": "grey-button", + "Button.callback": "() => this.close()", + "texture": { + "key": "main", + "frame": "grey-button" + }, + "x": 485, + "y": -407 + }, + { + "type": "Image", + "id": "8371459d-c0fc-43dd-b598-4617ab47266f", + "label": "closeIcon", + "texture": { + "key": "main", + "frame": "grey-x" + }, + "x": 485, + "y": -409 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/interface/game/mailbook/user_list/MailbookUserItem.js b/src/scenes/interface/game/mailbook/user_list/MailbookUserItem.js new file mode 100644 index 00000000..561d19ce --- /dev/null +++ b/src/scenes/interface/game/mailbook/user_list/MailbookUserItem.js @@ -0,0 +1,89 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../../../base/BaseContainer"; +import Button from "../../../../components/Button"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class MailbookUserItem extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 882, y ?? 352); + + /** @type {Phaser.GameObjects.Image} */ + this.icon; + /** @type {Phaser.GameObjects.Text} */ + this.username; + + + // item + const item = scene.add.image(0, 0, "mailbook", "list/item"); + this.add(item); + + // icon + const icon = scene.add.image(-139, 0, "mailbook", "list/icon_offline"); + this.add(icon); + + // username + const username = scene.add.text(24, 0, "", {}); + username.setOrigin(0.5, 0.5); + username.setStyle({ "color": "#000", "fixedWidth":260,"fontFamily": "Burbank Small", "fontSize": "28px", "fontStyle": "bold" }); + this.add(username); + + // item (components) + const itemButton = new Button(item); + itemButton.spriteName = "list/item"; + itemButton.callback = () => this.onClick(); + itemButton.activeFrame = false; + + this.icon = icon; + this.username = username; + + /* START-USER-CTR-CODE */ + + this.id + + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + get mailbook() { + return this.interface.main.mailbook + } + + setItem(buddy) { + if (!buddy) { + return this.clearItem() + } + + this.id = buddy.id + this.username.text = buddy.username + + const relationship = this.world.getRelationship(buddy.id) + const frame = `list/icon_${relationship}` + + this.icon.setFrame(frame) + + this.visible = true + } + + clearItem() { + this.visible = false + + this.id = null + this.username.text = '' + this.icon.setFrame('list/icon_offline') + } + + onClick() { + if (this.id) { + this.mailbook.showPostcards(this.id, this.username.text) + } + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/game/mailbook/user_list/MailbookUserItem.scene b/src/scenes/interface/game/mailbook/user_list/MailbookUserItem.scene new file mode 100644 index 00000000..e4b952f7 --- /dev/null +++ b/src/scenes/interface/game/mailbook/user_list/MailbookUserItem.scene @@ -0,0 +1,74 @@ +{ + "id": "00a9cf55-a533-4da5-8421-01e7de816a86", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "35cf716e-dafe-4d40-8391-dbc0f843f828", + "label": "container_1", + "x": 882, + "y": 352, + "list": [ + { + "type": "Image", + "id": "6203ef5e-4f98-4583-a600-73afde8b7de8", + "label": "item", + "components": [ + "Button" + ], + "Button.spriteName": "list/item", + "Button.callback": "() => this.onClick()", + "Button.activeFrame": false, + "texture": { + "key": "mailbook", + "frame": "list/item" + } + }, + { + "type": "Image", + "id": "658f1fed-92be-4344-8dda-0f0a0d918144", + "label": "icon", + "scope": "CLASS", + "texture": { + "key": "mailbook", + "frame": "list/icon_offline" + }, + "x": -139 + }, + { + "type": "Text", + "id": "51bfcd8e-bd15-4d16-b4d1-13886ce34acc", + "label": "username", + "scope": "CLASS", + "x": 24, + "originX": 0.5, + "originY": 0.5, + "fixedWidth": 260, + "fontFamily": "Burbank Small", + "fontSize": "28px", + "fontStyle": "bold", + "color": "#000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/interface/game/mailbook/user_list/MailbookUserList.js b/src/scenes/interface/game/mailbook/user_list/MailbookUserList.js new file mode 100644 index 00000000..23c73034 --- /dev/null +++ b/src/scenes/interface/game/mailbook/user_list/MailbookUserList.js @@ -0,0 +1,176 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../../../base/BaseContainer"; +import Button from "../../../../components/Button"; +import MailbookUserItem from "./MailbookUserItem"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class MailbookUserList extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 760, y ?? 480); + + /** @type {MailbookUserItem[]} */ + this.items; + + + // list + const list = scene.add.image(0, 0, "mailbook", "list/list"); + list.setOrigin(0.5011990407673861, 0.5007072135785007); + this.add(list); + + // scroll + const scroll = scene.add.image(165, 0, "mailbook", "list/scroll"); + this.add(scroll); + + // downButton + const downButton = scene.add.image(165, 308, "main", "blue-button"); + downButton.scaleX = 0.86; + downButton.scaleY = 0.86; + this.add(downButton); + + // upButton + const upButton = scene.add.image(165, -313, "main", "blue-button"); + upButton.scaleX = 0.86; + upButton.scaleY = 0.86; + this.add(upButton); + + // downArrow + const downArrow = scene.add.image(165, 306, "main", "blue-arrow"); + downArrow.scaleX = 0.86; + downArrow.scaleY = 0.86; + downArrow.flipY = true; + this.add(downArrow); + + // upArrow + const upArrow = scene.add.image(165, -315, "main", "blue-arrow"); + upArrow.scaleX = 0.86; + upArrow.scaleY = 0.86; + this.add(upArrow); + + // mailbookUserItem12 + const mailbookUserItem12 = new MailbookUserItem(scene, -30, 299); + this.add(mailbookUserItem12); + + // mailbookUserItem11 + const mailbookUserItem11 = new MailbookUserItem(scene, -30, 243); + this.add(mailbookUserItem11); + + // mailbookUserItem10 + const mailbookUserItem10 = new MailbookUserItem(scene, -30, 187); + this.add(mailbookUserItem10); + + // mailbookUserItem9 + const mailbookUserItem9 = new MailbookUserItem(scene, -30, 131); + this.add(mailbookUserItem9); + + // mailbookUserItem8 + const mailbookUserItem8 = new MailbookUserItem(scene, -30, 75); + this.add(mailbookUserItem8); + + // mailbookUserItem7 + const mailbookUserItem7 = new MailbookUserItem(scene, -30, 19); + this.add(mailbookUserItem7); + + // mailbookUserItem6 + const mailbookUserItem6 = new MailbookUserItem(scene, -30, -37); + this.add(mailbookUserItem6); + + // mailbookUserItem5 + const mailbookUserItem5 = new MailbookUserItem(scene, -30, -93); + this.add(mailbookUserItem5); + + // mailbookUserItem4 + const mailbookUserItem4 = new MailbookUserItem(scene, -30, -149); + this.add(mailbookUserItem4); + + // mailbookUserItem3 + const mailbookUserItem3 = new MailbookUserItem(scene, -30, -205); + this.add(mailbookUserItem3); + + // mailbookUserItem2 + const mailbookUserItem2 = new MailbookUserItem(scene, -30, -261); + this.add(mailbookUserItem2); + + // mailbookUserItem1 + const mailbookUserItem1 = new MailbookUserItem(scene, -30, -317); + this.add(mailbookUserItem1); + + // lists + const items = [mailbookUserItem1, mailbookUserItem2, mailbookUserItem3, mailbookUserItem4, mailbookUserItem5, mailbookUserItem6, mailbookUserItem7, mailbookUserItem8, mailbookUserItem9, mailbookUserItem10, mailbookUserItem11, mailbookUserItem12]; + + // downButton (components) + const downButtonButton = new Button(downButton); + downButtonButton.spriteName = "blue-button"; + downButtonButton.callback = () => this.nextPage(); + + // upButton (components) + const upButtonButton = new Button(upButton); + upButtonButton.spriteName = "blue-button"; + upButtonButton.callback = () => this.prevPage(); + + this.items = items; + + /* START-USER-CTR-CODE */ + + this.page = 1 + this.pageSize = 12 + + this.showPage() + + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + get maxPage() { + return Math.ceil(this.buddies.length / this.pageSize) + } + + get buddies() { + return this.world.client.buddies.sort((a, b) => { + return -(a.online - b.online) // Reverse: true before false + || a.username.toLowerCase().localeCompare(b.username.toLowerCase()) + }) + } + + showPage() { + const page = this.buddies.slice((this.page - 1) * this.pageSize, this.page * this.pageSize) + + for (const [index, item] of this.items.entries()) { + const buddy = page[index] + + if (buddy) { + item.setItem(buddy) + } else { + item.setItem(null) + } + } + } + + prevPage() { + const page = this.page - 1 + if (page < 1) { + return + } + + this.page = page + this.showPage() + } + + nextPage() { + const page = this.page + 1 + if (page > this.maxPage) { + return + } + + this.page = page + this.showPage() + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/game/mailbook/user_list/MailbookUserList.scene b/src/scenes/interface/game/mailbook/user_list/MailbookUserList.scene new file mode 100644 index 00000000..33181aa2 --- /dev/null +++ b/src/scenes/interface/game/mailbook/user_list/MailbookUserList.scene @@ -0,0 +1,271 @@ +{ + "id": "cda13a82-2ed2-4422-be5d-9a05c903ac25", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "snapHeight": 56, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "f2c55b58-f060-42b7-a694-8026091ec2b1", + "label": "container_2", + "x": 760, + "y": 480, + "list": [ + { + "type": "Image", + "id": "31598091-864b-4042-9852-b4e8524ad70d", + "label": "list", + "texture": { + "key": "mailbook", + "frame": "list/list" + }, + "originX": 0.5011990407673861, + "originY": 0.5007072135785007 + }, + { + "type": "Image", + "id": "c2e938ce-490c-4abd-a6b3-474858dac82a", + "label": "scroll", + "texture": { + "key": "mailbook", + "frame": "list/scroll" + }, + "x": 165 + }, + { + "type": "Image", + "id": "8f4e114e-7da7-4b5f-8163-e8320c27745f", + "label": "downButton", + "components": [ + "Button" + ], + "Button.spriteName": "blue-button", + "Button.callback": "() => this.nextPage()", + "texture": { + "key": "main", + "frame": "blue-button" + }, + "x": 165, + "y": 308, + "scaleX": 0.86, + "scaleY": 0.86 + }, + { + "type": "Image", + "id": "8ccf8bbd-9428-4d36-9ad8-9e75bd0e382b", + "label": "upButton", + "components": [ + "Button" + ], + "Button.spriteName": "blue-button", + "Button.callback": "() => this.prevPage()", + "texture": { + "key": "main", + "frame": "blue-button" + }, + "x": 165, + "y": -313, + "scaleX": 0.86, + "scaleY": 0.86 + }, + { + "type": "Image", + "id": "1c22f0bf-a332-4dc3-960a-6e97923d9c62", + "label": "downArrow", + "texture": { + "key": "main", + "frame": "blue-arrow" + }, + "x": 165, + "y": 306, + "scaleX": 0.86, + "scaleY": 0.86, + "flipY": true + }, + { + "type": "Image", + "id": "f13654ac-280a-4e10-b4bb-5f291599ee6e", + "label": "upArrow", + "texture": { + "key": "main", + "frame": "blue-arrow" + }, + "x": 165, + "y": -315, + "scaleX": 0.86, + "scaleY": 0.86 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "6dc2b84b-658b-4f5d-9c4d-c3b3d13383e7", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem12", + "x": -30, + "y": 299 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "37aa3389-7230-4968-9a73-d298cdb687e7", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem11", + "x": -30, + "y": 243 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "7ae563c3-ff54-410b-b79a-7b775af73520", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem10", + "x": -30, + "y": 187 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "66a2bf1a-a2e2-43bd-8c01-30c7d4a9d87e", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem9", + "x": -30, + "y": 131 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "9be67010-d6e7-49e5-b6c4-bd8db15b96fc", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem8", + "x": -30, + "y": 75 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "4836d30f-e355-42c0-a54f-b3b38b0366cd", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem7", + "x": -30, + "y": 19 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "b71043d6-47a2-42dc-bbb3-d15c6e057af5", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem6", + "x": -30, + "y": -37 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "8572ed12-6cac-408c-903d-f6d15b1bc729", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem5", + "x": -30, + "y": -93 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "a4cecbae-ccdc-4285-b791-e8911c846de9", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem4", + "x": -30, + "y": -149 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "400118ed-da33-4228-8cf6-d4fc0c8c9adf", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem3", + "x": -30, + "y": -205 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "78efe28b-d2a6-48c4-bba9-e69391c11b50", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem2", + "x": -30, + "y": -261 + }, + { + "prefabId": "00a9cf55-a533-4da5-8421-01e7de816a86", + "id": "0b9ff2d5-4c20-400c-b855-ad47d3ff8cfe", + "unlock": [ + "x", + "y" + ], + "label": "mailbookUserItem1", + "x": -30, + "y": -317 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + }, + "lists": [ + { + "id": "6ebfc76b-987c-4e8c-b923-7dae4ec9e841", + "label": "items", + "objectIds": [ + "0b9ff2d5-4c20-400c-b855-ad47d3ff8cfe", + "78efe28b-d2a6-48c4-bba9-e69391c11b50", + "400118ed-da33-4228-8cf6-d4fc0c8c9adf", + "a4cecbae-ccdc-4285-b791-e8911c846de9", + "8572ed12-6cac-408c-903d-f6d15b1bc729", + "b71043d6-47a2-42dc-bbb3-d15c6e057af5", + "4836d30f-e355-42c0-a54f-b3b38b0366cd", + "9be67010-d6e7-49e5-b6c4-bd8db15b96fc", + "66a2bf1a-a2e2-43bd-8c01-30c7d4a9d87e", + "7ae563c3-ff54-410b-b79a-7b775af73520", + "37aa3389-7230-4968-9a73-d298cdb687e7", + "6dc2b84b-658b-4f5d-9c4d-c3b3d13383e7" + ] + } + ] +} \ No newline at end of file diff --git a/src/scenes/interface/game/main/Main.js b/src/scenes/interface/game/main/Main.js index 270f631c..31d02501 100644 --- a/src/scenes/interface/game/main/Main.js +++ b/src/scenes/interface/game/main/Main.js @@ -1,23 +1,30 @@ -import BaseScene from '@scenes/base/BaseScene' +/* START OF COMPILED CODE */ + +import BaseScene from "../../../base/BaseScene"; +import Interactive from "../../../components/Interactive"; +import Button from "../../../components/Button"; +import ShowHint from "../../../components/ShowHint"; +import ChatLog from "../chatlog/ChatLog"; +import SimpleButton from "../../../components/SimpleButton"; +import MailButton from "./buttons/mail/MailButton"; +import Waddle from "../waddle/Waddle"; +import Buddy from "../buddy/Buddy"; +import PlayerCard from "../playercard/PlayerCard"; +import ActionsMenu from "../floating/actions/ActionsMenu"; +import EmotesMenu from "../floating/emotes/EmotesMenu"; +import Safe from "../floating/safe/Safe"; +import Moderator from "../moderator/Moderator"; +import Settings from "../settings/Settings"; +import Mail from "../mail/Mail"; +import Mailbook from "../mailbook/Mailbook"; +/* START-USER-IMPORTS */ -import { Button, Interactive, SimpleButton, ShowHint } from '@components/components' import TextInput from '@engine/interface/text/TextInput' import BalloonFactory from '@engine/interface/balloons/BalloonFactory' import SnowballFactory from '@engine/interface/snowball/SnowballFactory' -import ActionsMenu from '../floating/actions/ActionsMenu' -import Buddy from '../buddy/Buddy' -import ChatLog from '../chatlog/ChatLog' -import EmotesMenu from '../floating/emotes/EmotesMenu' -import Moderator from '../moderator/Moderator' -import PlayerCard from '../playercard/PlayerCard' -import Safe from '../floating/safe/Safe' -import Settings from '../settings/Settings' -import Waddle from '../waddle/Waddle' - - -/* START OF COMPILED CODE */ +/* END-USER-IMPORTS */ export default class Main extends BaseScene { @@ -36,6 +43,8 @@ export default class Main extends BaseScene { this.crosshair; /** @type {Phaser.GameObjects.Image} */ this.request_button; + /** @type {MailButton} */ + this.mailButton; /** @type {Phaser.GameObjects.Sprite} */ this.mod_m; /** @type {Waddle} */ @@ -56,6 +65,10 @@ export default class Main extends BaseScene { this.moderator; /** @type {Settings} */ this.settings; + /** @type {Mail} */ + this.mail; + /** @type {Mailbook} */ + this.mailbook; /** @type {Array} */ this.hideOnSleep; @@ -156,8 +169,9 @@ export default class Main extends BaseScene { const request_button = this.add.image(276, 71, "main", "buddy-button"); request_button.visible = false; - // mail_button - const mail_button = this.add.image(176, 58, "main", "mail-button"); + // mailButton + const mailButton = new MailButton(this, 176, 58); + this.add.existing(mailButton); // news_button const news_button = this.add.image(76, 70, "main", "news-button"); @@ -211,6 +225,16 @@ export default class Main extends BaseScene { this.add.existing(settings); settings.visible = false; + // mail + const mail = new Mail(this); + this.add.existing(mail); + mail.visible = false; + + // mailbook + const mailbook = new Mailbook(this); + this.add.existing(mailbook); + mailbook.visible = false; + // lists const hideOnSleep = [settings, moderator, playerCard, buddy, waddle]; @@ -299,11 +323,6 @@ export default class Main extends BaseScene { request_buttonButton.callback = () => this.onRequestClick(); request_buttonButton.activeFrame = false; - // mail_button (components) - const mail_buttonButton = new Button(mail_button); - mail_buttonButton.spriteName = "mail-button"; - mail_buttonButton.activeFrame = false; - // news_button (components) const news_buttonButton = new Button(news_button); news_buttonButton.spriteName = "news-button"; @@ -321,6 +340,7 @@ export default class Main extends BaseScene { this.chatLog = chatLog; this.crosshair = crosshair; this.request_button = request_button; + this.mailButton = mailButton; this.mod_m = mod_m; this.waddle = waddle; this.buddy = buddy; @@ -331,6 +351,8 @@ export default class Main extends BaseScene { this.safe = safe; this.moderator = moderator; this.settings = settings; + this.mail = mail; + this.mailbook = mailbook; this.hideOnSleep = hideOnSleep; this.events.emit("scene-awake"); @@ -348,6 +370,10 @@ export default class Main extends BaseScene { this.setupWidgets() + // Mail + + this.updateMailCount() + // Factories this.balloonFactory = new BalloonFactory(this) @@ -427,6 +453,10 @@ export default class Main extends BaseScene { this.setupWidget(widget) } + updateMailCount() { + this.mailButton.updateMailCount() + } + onSnowballClick() { this.crosshair.visible = true this.crosshair.x = Math.round(this.input.x) diff --git a/src/scenes/interface/game/main/Main.scene b/src/scenes/interface/game/main/Main.scene index 01b1f080..23d18d1d 100644 --- a/src/scenes/interface/game/main/Main.scene +++ b/src/scenes/interface/game/main/Main.scene @@ -7,6 +7,7 @@ "snapHeight": 1, "javaScriptInitFieldsInConstructor": true, "exportClass": true, + "autoImport": true, "superClassName": "BaseScene", "preloadPackFiles": [], "createMethodName": "_create", @@ -405,18 +406,14 @@ "visible": false }, { - "type": "Image", - "id": "24426f54-e0c3-496d-97ec-a720c62ce2f8", - "label": "mail_button", - "components": [ - "Button" + "prefabId": "4910867d-2158-40cd-881f-3b9764388f90", + "id": "dcc47812-1ddf-47f0-b684-8289700b6d8c", + "unlock": [ + "x", + "y" ], - "Button.spriteName": "mail-button", - "Button.activeFrame": false, - "texture": { - "key": "main", - "frame": "mail-button" - }, + "label": "mailButton", + "scope": "CLASS", "x": 176, "y": 58 }, @@ -584,6 +581,26 @@ "x": 760, "y": 480, "visible": false + }, + { + "prefabId": "2b073ebe-1fc6-467b-87c1-bb5433937720", + "id": "0f64b104-11c8-4e0e-9909-e466d7b4c05a", + "unlock": [ + "visible" + ], + "label": "mail", + "scope": "CLASS", + "visible": false + }, + { + "prefabId": "cfd4ada9-1244-44f7-a0ac-79b47d443f92", + "id": "e74f24a9-f876-4723-b5c2-cee5c473cbe7", + "unlock": [ + "visible" + ], + "label": "mailbook", + "scope": "CLASS", + "visible": false } ], "plainObjects": [], @@ -591,7 +608,7 @@ "app": "Phaser Editor 2D - Scene Editor", "url": "https://phasereditor2d.com", "contentType": "phasereditor2d.core.scene.SceneContentType", - "version": 4 + "version": 5 }, "lists": [ { diff --git a/src/scenes/interface/game/main/buttons/mail/MailButton.js b/src/scenes/interface/game/main/buttons/mail/MailButton.js new file mode 100644 index 00000000..f355148c --- /dev/null +++ b/src/scenes/interface/game/main/buttons/mail/MailButton.js @@ -0,0 +1,61 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../../../../base/BaseContainer"; +import Button from "../../../../../components/Button"; +import MailNotification from "./MailNotification"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class MailButton extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {MailNotification} */ + this.notification; + + + // button + const button = scene.add.image(0, 0, "main", "mail-button"); + this.add(button); + + // notification + const notification = new MailNotification(scene, 30, -17); + notification.visible = false; + this.add(notification); + + // button (components) + const buttonButton = new Button(button); + buttonButton.spriteName = "mail-button"; + buttonButton.callback = () => scene.mail.show(); + buttonButton.activeFrame = false; + + this.notification = notification; + + /* START-USER-CTR-CODE */ + + this.lastUnreadCount = 0 + + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + updateMailCount() { + this.notification.updateMailCount() + + const unreadCount = this.world.client.unreadMailCount + + // Only bounce on new mail + if (unreadCount > this.lastUnreadCount) { + this.scene.bounce(this) + } + + this.lastUnreadCount = unreadCount + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/game/main/buttons/mail/MailButton.scene b/src/scenes/interface/game/main/buttons/mail/MailButton.scene new file mode 100644 index 00000000..f51443f8 --- /dev/null +++ b/src/scenes/interface/game/main/buttons/mail/MailButton.scene @@ -0,0 +1,61 @@ +{ + "id": "4910867d-2158-40cd-881f-3b9764388f90", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "d11c660c-ce75-4718-9798-638b6318afa1", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "ed0ae6e3-4a15-4a13-98b7-d3d7d8d9d525", + "label": "button", + "components": [ + "Button" + ], + "Button.spriteName": "mail-button", + "Button.callback": "() => scene.mail.show()", + "Button.activeFrame": false, + "texture": { + "key": "main", + "frame": "mail-button" + } + }, + { + "prefabId": "bcff41e9-3e1b-41d7-b3cc-26164bd4c892", + "id": "e7e0fda0-1bb8-4953-8029-8bb4ad777a16", + "unlock": [ + "x", + "y", + "visible" + ], + "label": "notification", + "scope": "CLASS", + "x": 30, + "y": -17, + "visible": false + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/interface/game/main/buttons/mail/MailNotification.js b/src/scenes/interface/game/main/buttons/mail/MailNotification.js new file mode 100644 index 00000000..38634e0b --- /dev/null +++ b/src/scenes/interface/game/main/buttons/mail/MailNotification.js @@ -0,0 +1,45 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../../../../base/BaseContainer"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class MailNotification extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.count; + + + // notification + const notification = scene.add.image(0, 0, "main", "mail-new"); + this.add(notification); + + // count + const count = scene.add.text(0, -2, "", {}); + count.setOrigin(0.5, 0.5); + count.setStyle({ "align": "center", "fixedWidth":40,"fontFamily": "Burbank Small", "fontSize": "24px", "fontStyle": "bold" }); + this.add(count); + + this.count = count; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + updateMailCount() { + const unreadCount = this.world.client.unreadMailCount + + this.visible = unreadCount > 0 + this.count.text = unreadCount + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/game/main/buttons/mail/MailNotification.scene b/src/scenes/interface/game/main/buttons/mail/MailNotification.scene new file mode 100644 index 00000000..2750d2c8 --- /dev/null +++ b/src/scenes/interface/game/main/buttons/mail/MailNotification.scene @@ -0,0 +1,55 @@ +{ + "id": "bcff41e9-3e1b-41d7-b3cc-26164bd4c892", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "1cb7c0f5-ad4f-4b57-ac28-c235889c57c5", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "4de51a03-4141-4fa4-808a-259799e1861e", + "label": "notification", + "texture": { + "key": "main", + "frame": "mail-new" + } + }, + { + "type": "Text", + "id": "64cc240f-1180-4bd4-8101-30a53b99da92", + "label": "count", + "scope": "CLASS", + "y": -2, + "originX": 0.5, + "originY": 0.5, + "fixedWidth": 40, + "align": "center", + "fontFamily": "Burbank Small", + "fontSize": "24px", + "fontStyle": "bold" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/interface/game/playercard/buttons/Buttons.js b/src/scenes/interface/game/playercard/buttons/Buttons.js index 1eead456..c29d5ea7 100644 --- a/src/scenes/interface/game/playercard/buttons/Buttons.js +++ b/src/scenes/interface/game/playercard/buttons/Buttons.js @@ -101,6 +101,7 @@ export default class Buttons extends BaseContainer { // mail_button (components) const mail_buttonButton = new Button(mail_button); mail_buttonButton.spriteName = "blue-button"; + mail_buttonButton.callback = () => this.onMailClick(); const mail_buttonShowHint = new ShowHint(mail_button); mail_buttonShowHint.text = "send_mail_hint"; @@ -248,6 +249,10 @@ export default class Buttons extends BaseContainer { this.world.client.sendJoinIgloo(this.parentContainer.id) } + onMailClick() { + this.interface.main.mailbook.showPostcards(this.parentContainer.id, this.username) + } + onIgnoreClick() { if (this.world.client.isModerator) { this.showKick() diff --git a/src/scenes/interface/game/playercard/buttons/Buttons.scene b/src/scenes/interface/game/playercard/buttons/Buttons.scene index c246eb46..8441179e 100644 --- a/src/scenes/interface/game/playercard/buttons/Buttons.scene +++ b/src/scenes/interface/game/playercard/buttons/Buttons.scene @@ -17,7 +17,6 @@ "type": "Container", "id": "6ac0cd17-7552-4894-a5cc-93d2081afaa3", "label": "container_1", - "components": [], "x": 760, "y": 480, "list": [ @@ -67,6 +66,7 @@ "ShowHint" ], "Button.spriteName": "blue-button", + "Button.callback": "() => this.onMailClick()", "ShowHint.text": "send_mail_hint", "texture": { "key": "main", @@ -133,7 +133,6 @@ "id": "682a26a5-7f79-4e67-9be0-4992ab794f04", "label": "report_icon", "scope": "CLASS", - "components": [], "texture": { "key": "main", "frame": "mod-icon-disabled" @@ -146,7 +145,6 @@ "id": "26ec7369-28a0-470f-b281-7dd6a3e7b31f", "label": "ignore_icon", "scope": "CLASS", - "components": [], "texture": { "key": "main", "frame": "ignore-icon-disabled" @@ -159,7 +157,6 @@ "id": "2b0aee28-83bc-4f3e-bc89-4c338f5558d0", "label": "mail_icon", "scope": "CLASS", - "components": [], "texture": { "key": "main", "frame": "mail-icon-disabled" @@ -172,7 +169,6 @@ "id": "f0daa280-4416-48d2-986e-41f34099de22", "label": "igloo_icon", "scope": "CLASS", - "components": [], "texture": { "key": "main", "frame": "igloo-icon-disabled" @@ -185,7 +181,6 @@ "id": "49810571-d58b-4ed6-883f-1f1baffe6403", "label": "profile_icon", "scope": "CLASS", - "components": [], "texture": { "key": "main", "frame": "help-icon-disabled" @@ -198,7 +193,6 @@ "id": "92ce6fc2-cb90-444d-9a33-0566100ebc0f", "label": "buddy_icon", "scope": "CLASS", - "components": [], "texture": { "key": "main", "frame": "buddies-icon-disabled" @@ -214,6 +208,6 @@ "app": "Phaser Editor 2D - Scene Editor", "url": "https://phasereditor2d.com", "contentType": "phasereditor2d.core.scene.SceneContentType", - "version": 3 + "version": 5 } } \ No newline at end of file diff --git a/src/scenes/interface/prompts/MailErrorPrompt.js b/src/scenes/interface/prompts/MailErrorPrompt.js new file mode 100644 index 00000000..10206357 --- /dev/null +++ b/src/scenes/interface/prompts/MailErrorPrompt.js @@ -0,0 +1,72 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../base/BaseContainer"; +import Button from "../../components/Button"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class MailErrorPrompt extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 760, y ?? 480); + + /** @type {Phaser.GameObjects.Text} */ + this.message; + + + this.visible = false; + + // bg + const bg = scene.add.ninePatchContainer(0, 0, 706, 504, "prompt", "error"); + bg.marginLeft = 50; + bg.marginTop = 50; + bg.marginRight = 50; + bg.marginBottom = 50; + this.add(bg); + + // button + const button = scene.add.image(0, 160, "prompt", "error-button"); + this.add(button); + + // buttonText + const buttonText = scene.add.text(0, 160, "", {}); + buttonText.setOrigin(0.5, 0.5); + buttonText.text = "Ok"; + buttonText.setStyle({ "align": "center", "fixedWidth":280,"fontFamily": "Arial Narrow", "fontSize": "40px", "fontStyle": "bold" }); + this.add(buttonText); + + // message + const message = scene.add.text(0, 39, "", {}); + message.setOrigin(0.5, 0.5); + message.setStyle({ "align": "center", "color": "#000", "fixedWidth":658,"fontFamily": "Arial", "fontSize": "32px" }); + message.setWordWrapWidth(658); + this.add(message); + + // icon + const icon = scene.add.image(0, -123, "mailbook", "full"); + this.add(icon); + + // button (components) + const buttonButton = new Button(button); + buttonButton.spriteName = "error-button"; + buttonButton.callback = () => this.close(); + + this.message = message; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + show(text) { + this.message.text = text + + super.show() + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/prompts/MailErrorPrompt.scene b/src/scenes/interface/prompts/MailErrorPrompt.scene new file mode 100644 index 00000000..a3a46df4 --- /dev/null +++ b/src/scenes/interface/prompts/MailErrorPrompt.scene @@ -0,0 +1,104 @@ +{ + "id": "21bdd44d-becc-41f3-b705-6c083ea40cd5", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "75309ac1-5262-4761-a600-e768f33ef84f", + "label": "container_1", + "x": 760, + "y": 480, + "visible": false, + "list": [ + { + "type": "NinePatchContainer", + "id": "ebefec9f-2257-4ca5-b315-8ae3a8e5f339", + "label": "bg", + "texture": { + "key": "prompt", + "frame": "error" + }, + "width": 706, + "height": 504, + "marginLeft": 50, + "marginRight": 50, + "marginTop": 50, + "marginBottom": 50 + }, + { + "type": "Image", + "id": "d5375d8b-38eb-4cb3-84b2-34d9c504a57f", + "label": "button", + "components": [ + "Button" + ], + "Button.spriteName": "error-button", + "Button.callback": "() => this.close()", + "texture": { + "key": "prompt", + "frame": "error-button" + }, + "y": 160 + }, + { + "type": "Text", + "id": "dac2c36a-3a7b-4cc2-ac02-cebcba8dd46b", + "label": "buttonText", + "y": 160, + "originX": 0.5, + "originY": 0.5, + "text": "Ok", + "fixedWidth": 280, + "align": "center", + "fontFamily": "Arial Narrow", + "fontSize": "40px", + "fontStyle": "bold" + }, + { + "type": "Text", + "id": "1062d012-1f33-43fb-829b-f2758939f2a7", + "label": "message", + "scope": "CLASS", + "y": 39, + "originX": 0.5, + "originY": 0.5, + "fixedWidth": 658, + "align": "center", + "fontFamily": "Arial", + "fontSize": "32px", + "color": "#000", + "wordWrapWidth": 658 + }, + { + "type": "Image", + "id": "34001593-4ef9-41ce-ab03-ccb5f3df2490", + "label": "icon", + "texture": { + "key": "mailbook", + "frame": "full" + }, + "y": -123 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/interface/prompts/MailSuccessPrompt.js b/src/scenes/interface/prompts/MailSuccessPrompt.js new file mode 100644 index 00000000..18df8850 --- /dev/null +++ b/src/scenes/interface/prompts/MailSuccessPrompt.js @@ -0,0 +1,72 @@ +/* START OF COMPILED CODE */ + +import BaseContainer from "../../base/BaseContainer"; +import Button from "../../components/Button"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class MailSuccessPrompt extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x ?? 760, y ?? 480); + + /** @type {Phaser.GameObjects.Text} */ + this.message; + + + this.visible = false; + + // bg + const bg = scene.add.ninePatchContainer(0, 0, 706, 504, "prompt", "window"); + bg.marginLeft = 50; + bg.marginTop = 50; + bg.marginRight = 50; + bg.marginBottom = 50; + this.add(bg); + + // button + const button = scene.add.image(0, 154, "prompt", "window-button"); + this.add(button); + + // buttonText + const buttonText = scene.add.text(0, 154, "", {}); + buttonText.setOrigin(0.5, 0.5); + buttonText.text = "Ok"; + buttonText.setStyle({ "align": "center", "fixedWidth":280,"fontFamily": "Arial Narrow", "fontSize": "40px", "fontStyle": "bold" }); + this.add(buttonText); + + // message + const message = scene.add.text(0, 27, "", {}); + message.setOrigin(0.5, 0.5); + message.setStyle({ "align": "center", "color": "#000", "fixedWidth":658,"fontFamily": "Arial", "fontSize": "32px" }); + message.setWordWrapWidth(658); + this.add(message); + + // icon + const icon = scene.add.image(-49, -122, "mailbook", "send_large"); + this.add(icon); + + // button (components) + const buttonButton = new Button(button); + buttonButton.spriteName = "window-button"; + buttonButton.callback = () => this.close(); + + this.message = message; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + show(text) { + this.message.text = text + + super.show() + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/interface/prompts/MailSuccessPrompt.scene b/src/scenes/interface/prompts/MailSuccessPrompt.scene new file mode 100644 index 00000000..86e758cc --- /dev/null +++ b/src/scenes/interface/prompts/MailSuccessPrompt.scene @@ -0,0 +1,105 @@ +{ + "id": "2c374cd6-c427-4429-a351-79d3ef9675fb", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseContainer", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "225766df-4f27-436a-866e-849980c9a2ad", + "label": "container_1", + "x": 760, + "y": 480, + "visible": false, + "list": [ + { + "type": "NinePatchContainer", + "id": "58b38c3b-b731-4912-8bae-df2f9802d197", + "label": "bg", + "texture": { + "key": "prompt", + "frame": "window" + }, + "width": 706, + "height": 504, + "marginLeft": 50, + "marginRight": 50, + "marginTop": 50, + "marginBottom": 50 + }, + { + "type": "Image", + "id": "e3ab4678-27d1-4764-9a02-a0e40a175d85", + "label": "button", + "components": [ + "Button" + ], + "Button.spriteName": "window-button", + "Button.callback": "() => this.close()", + "texture": { + "key": "prompt", + "frame": "window-button" + }, + "y": 154 + }, + { + "type": "Text", + "id": "0cfcb31e-dca7-4bc8-a18c-02fcc6e9b3f3", + "label": "buttonText", + "y": 154, + "originX": 0.5, + "originY": 0.5, + "text": "Ok", + "fixedWidth": 280, + "align": "center", + "fontFamily": "Arial Narrow", + "fontSize": "40px", + "fontStyle": "bold" + }, + { + "type": "Text", + "id": "c74df0ae-f259-44c7-9183-4c40b9bcf7b4", + "label": "message", + "scope": "CLASS", + "y": 27, + "originX": 0.5, + "originY": 0.5, + "fixedWidth": 658, + "align": "center", + "fontFamily": "Arial", + "fontSize": "32px", + "color": "#000", + "wordWrapWidth": 658 + }, + { + "type": "Image", + "id": "596485c2-adc0-4da6-aeba-70fb3b0aeb74", + "label": "icon", + "texture": { + "key": "mailbook", + "frame": "send_large" + }, + "x": -49, + "y": -122 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/interface/prompts/WindowPrompt.js b/src/scenes/interface/prompts/WindowPrompt.js index 80f9d882..3d39261f 100644 --- a/src/scenes/interface/prompts/WindowPrompt.js +++ b/src/scenes/interface/prompts/WindowPrompt.js @@ -43,6 +43,7 @@ export default class WindowPrompt extends BaseContainer { text.setOrigin(0.5, 0.5); text.text = "Message goes here\nMessage goes here"; text.setStyle({ "align": "center", "color": "#000000", "fixedWidth":628,"fontFamily": "Arial Narrow", "fontSize": "32px" }); + text.setWordWrapWidth(628); this.add(text); // single diff --git a/src/scenes/interface/prompts/WindowPrompt.scene b/src/scenes/interface/prompts/WindowPrompt.scene index 5a5d5a40..65e404c4 100644 --- a/src/scenes/interface/prompts/WindowPrompt.scene +++ b/src/scenes/interface/prompts/WindowPrompt.scene @@ -17,7 +17,6 @@ "type": "Container", "id": "bb4d2198-5ce9-4999-b83f-8ab252d88b7e", "label": "container_1", - "components": [], "x": 760, "y": 480, "visible": false, @@ -55,7 +54,6 @@ "id": "c76c64cd-daab-44f2-93c8-0a368c62070b", "label": "text", "scope": "CLASS", - "components": [], "y": -161, "originX": 0.5, "originY": 0.5, @@ -64,7 +62,8 @@ "align": "center", "fontFamily": "Arial Narrow", "fontSize": "32px", - "color": "#000000" + "color": "#000000", + "wordWrapWidth": 628 }, { "prefabId": "48dfbf63-271b-4c3d-9fcc-6406eb7a0754", @@ -75,10 +74,8 @@ ], "label": "single", "scope": "CLASS", - "components": [], "x": 0, - "y": -35, - "nestedPrefabs": [] + "y": -35 }, { "prefabId": "c8bd80b3-7ef6-4945-950c-2ab697bd77e3", @@ -90,11 +87,9 @@ ], "label": "dual", "scope": "CLASS", - "components": [], "x": 0, "y": -36, - "visible": false, - "nestedPrefabs": [] + "visible": false } ] } @@ -104,6 +99,6 @@ "app": "Phaser Editor 2D - Scene Editor", "url": "https://phasereditor2d.com", "contentType": "phasereditor2d.core.scene.SceneContentType", - "version": 3 + "version": 5 } } \ No newline at end of file diff --git a/src/scenes/postcards/Postcard1.js b/src/scenes/postcards/Postcard1.js new file mode 100644 index 00000000..61c50d0d --- /dev/null +++ b/src/scenes/postcards/Postcard1.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard1 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/1", "1"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(126, 609, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#070000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard1.scene b/src/scenes/postcards/Postcard1.scene new file mode 100644 index 00000000..78c3a2c1 --- /dev/null +++ b/src/scenes/postcards/Postcard1.scene @@ -0,0 +1,61 @@ +{ + "id": "aa26289e-c5f3-472c-9791-ba24c6788654", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "3d50a56f-f33f-4d81-b96f-46bd21efcd48", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "75916295-0976-4e3f-9f29-157bead65603", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/1", + "frame": "1" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "8d4607f2-1423-4b50-9866-bd64403705f4", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 126, + "y": 609, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#070000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard10.js b/src/scenes/postcards/Postcard10.js new file mode 100644 index 00000000..818458c5 --- /dev/null +++ b/src/scenes/postcards/Postcard10.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard10 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/10", "10"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(48, 51, "", {}); + name.text = "penguin888888888"; + name.setStyle({ "color": "#000000", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton + const goToButton = new GoToButton(scene, 126, 172); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 111; + + this.name = name; + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard10.scene b/src/scenes/postcards/Postcard10.scene new file mode 100644 index 00000000..826d2cd5 --- /dev/null +++ b/src/scenes/postcards/Postcard10.scene @@ -0,0 +1,72 @@ +{ + "id": "8c1dafac-9404-46eb-bf83-ff5eeae3473c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "685055e7-4820-4a5a-ac4e-949943e3a2c6", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "1bbce2c5-64ef-4991-a63c-9e8ed34542a2", + "label": "bg", + "texture": { + "key": "postcards/sprites/10", + "frame": "10" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "e008cb84-b863-4e83-abbc-7cec0ecfaee9", + "label": "name", + "scope": "CLASS", + "x": 48, + "y": 51, + "text": "penguin888888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#000000" + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "807d2ae5-308a-45ee-b0ba-c8ea6c84c5b8", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 111, + "x": 126, + "y": 172 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard100.js b/src/scenes/postcards/Postcard100.js new file mode 100644 index 00000000..d6dbce26 --- /dev/null +++ b/src/scenes/postcards/Postcard100.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard100 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/100", "100"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(223, 570, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "align": "right", "color": "#ffffff", "fixedWidth":436,"fontFamily": "CCFaceFront", "fontSize": "26px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard100.scene b/src/scenes/postcards/Postcard100.scene new file mode 100644 index 00000000..48391c8d --- /dev/null +++ b/src/scenes/postcards/Postcard100.scene @@ -0,0 +1,62 @@ +{ + "id": "15927b0a-3498-427f-ab6c-1134fab59928", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "bf193e7d-dc5f-4345-8b04-23e35ac213f6", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "23a82db5-b434-4850-bb98-5e9890318b15", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/100", + "frame": "100" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "81413b8d-c473-40c8-9bc2-93911c4bd8a9", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 223, + "y": 570, + "text": "undefined", + "fixedWidth": 436, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "26px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard101.js b/src/scenes/postcards/Postcard101.js new file mode 100644 index 00000000..b61b77e1 --- /dev/null +++ b/src/scenes/postcards/Postcard101.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard101 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/101", "101"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(164, 608, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "align": "right", "color": "#512879", "fixedWidth":482,"fontFamily": "CCFaceFront", "fontSize": "26px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard101.scene b/src/scenes/postcards/Postcard101.scene new file mode 100644 index 00000000..b074dd01 --- /dev/null +++ b/src/scenes/postcards/Postcard101.scene @@ -0,0 +1,62 @@ +{ + "id": "c4b762e5-25f1-4702-b0a3-121f85c13486", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "d781f353-608f-44fc-a270-c7e24be90a36", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "d14abcfb-19bc-463c-90b5-9fd31d62a831", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/101", + "frame": "101" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "e8ddda42-a598-46b0-bcb1-b9a12c7a3879", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 164, + "y": 608, + "text": "undefined", + "fixedWidth": 482, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "26px", + "color": "#512879" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard102.js b/src/scenes/postcards/Postcard102.js new file mode 100644 index 00000000..0b3d9554 --- /dev/null +++ b/src/scenes/postcards/Postcard102.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard102 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/102", "102"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(3, 640, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "align": "right", "color": "#000000", "fixedWidth":200,"fontFamily": "CCFaceFront", "fontSize": "22px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard102.scene b/src/scenes/postcards/Postcard102.scene new file mode 100644 index 00000000..50b3dc13 --- /dev/null +++ b/src/scenes/postcards/Postcard102.scene @@ -0,0 +1,62 @@ +{ + "id": "35ed23dd-c592-4ff6-b574-3dc3037437da", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "225fe38b-e298-4ed6-aa8c-8e06f8a2f40a", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "53b9f562-f2e0-4a7a-bd05-59aa3e5ad8f1", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/102", + "frame": "102" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "301e853f-0b42-4adf-a22e-f666803f33ec", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 3, + "y": 640, + "text": "undefined", + "fixedWidth": 200, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "22px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard103.js b/src/scenes/postcards/Postcard103.js new file mode 100644 index 00000000..624827d0 --- /dev/null +++ b/src/scenes/postcards/Postcard103.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard103 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/103", "103"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(85, 601, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "align": "right", "color": "#000000", "fixedWidth":504,"fontFamily": "CCFaceFront", "fontSize": "26px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard103.scene b/src/scenes/postcards/Postcard103.scene new file mode 100644 index 00000000..9d847f86 --- /dev/null +++ b/src/scenes/postcards/Postcard103.scene @@ -0,0 +1,62 @@ +{ + "id": "0120ee79-7aa9-43fc-9fb6-305cb7e8d855", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "6f73ac9d-1ec5-4db8-9481-cd84420415bd", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "e757caaf-bad2-4dce-886c-04c0fda70bd9", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/103", + "frame": "103" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "bad13959-583e-4e44-a8e6-c70633c4438e", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 85, + "y": 601, + "text": "undefined", + "fixedWidth": 504, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "26px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard104.js b/src/scenes/postcards/Postcard104.js new file mode 100644 index 00000000..a8f57b2e --- /dev/null +++ b/src/scenes/postcards/Postcard104.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard104 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/104", "104"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(295, 607, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "align": "right", "color": "#5b2d94", "fixedWidth":346,"fontFamily": "CCFaceFront", "fontSize": "26px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard104.scene b/src/scenes/postcards/Postcard104.scene new file mode 100644 index 00000000..9026ef73 --- /dev/null +++ b/src/scenes/postcards/Postcard104.scene @@ -0,0 +1,62 @@ +{ + "id": "81b46fa7-663d-41d3-813e-084c2a8a62f3", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "08d1df15-d51c-4ede-8828-087f5ab6ca4c", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "607c6817-42f2-43d2-9138-f897f88e785a", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/104", + "frame": "104" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "b7aacf0f-ef1c-4882-aac8-42bfb6cb08d5", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 295, + "y": 607, + "text": "undefined", + "fixedWidth": 346, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "26px", + "color": "#5b2d94" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard105.js b/src/scenes/postcards/Postcard105.js new file mode 100644 index 00000000..edf556f6 --- /dev/null +++ b/src/scenes/postcards/Postcard105.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard105 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/105", "105"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(120, 592, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "align": "right", "color": "#05559e", "fixedWidth":536,"fontFamily": "CCFaceFront", "fontSize": "26px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard105.scene b/src/scenes/postcards/Postcard105.scene new file mode 100644 index 00000000..9b49c1b6 --- /dev/null +++ b/src/scenes/postcards/Postcard105.scene @@ -0,0 +1,62 @@ +{ + "id": "b005a55a-abd6-4b6b-abca-8a1a5c05b578", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "38ef99fa-4c79-4ae3-8a48-426d49413d6a", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "74568b59-2de1-4f3e-be09-e1400b07aaee", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/105", + "frame": "105" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "6134bfdd-c0c8-4104-8768-62ec0dc2fe1a", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 120, + "y": 592, + "text": "undefined", + "fixedWidth": 536, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "26px", + "color": "#05559e" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard106.js b/src/scenes/postcards/Postcard106.js new file mode 100644 index 00000000..51548b1a --- /dev/null +++ b/src/scenes/postcards/Postcard106.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard106 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/106", "106"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(295, 604, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "align": "right", "color": "#000000", "fixedWidth":356,"fontFamily": "CCFaceFront", "fontSize": "26px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard106.scene b/src/scenes/postcards/Postcard106.scene new file mode 100644 index 00000000..810a84b0 --- /dev/null +++ b/src/scenes/postcards/Postcard106.scene @@ -0,0 +1,62 @@ +{ + "id": "15b11b10-02dc-41b5-9a17-586b1c08eee9", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "efb8b776-2198-4f6b-9e03-cb5c6f8dd07e", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "f6f8e0c7-f351-4c8d-89a7-2ff4518445aa", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/106", + "frame": "106" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "3db2c32e-ac3b-4716-8f5f-7d4c11be4dd2", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 295, + "y": 604, + "text": "undefined", + "fixedWidth": 356, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "26px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard107.js b/src/scenes/postcards/Postcard107.js new file mode 100644 index 00000000..082abf5a --- /dev/null +++ b/src/scenes/postcards/Postcard107.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard107 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.date; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/107", "107"); + bg.setOrigin(0, 0); + this.add(bg); + + // date + const date = scene.add.text(135, 663, "", {}); + date.text = "undefined undefined, undefined"; + date.setStyle({ "color": "#999999", "fixedWidth":358,"fontFamily": "Burbank Small", "fontSize": "20px", "fontStyle": "bold" }); + date.setPadding({"left":5,"right":5}); + this.add(date); + + this.date = date; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard107.scene b/src/scenes/postcards/Postcard107.scene new file mode 100644 index 00000000..3a0ed115 --- /dev/null +++ b/src/scenes/postcards/Postcard107.scene @@ -0,0 +1,62 @@ +{ + "id": "eed387dd-292c-4c60-a6f2-9051ec362983", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "4ed69de3-ca3b-4f24-8947-bf23aeb7acc0", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "69282e95-0e6a-41a6-a1f8-45c4675b619b", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/107", + "frame": "107" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "08a8c7c0-f0b2-4325-9ad7-c00f291d34c4", + "label": "date", + "scope": "CLASS", + "components": [], + "x": 135, + "y": 663, + "text": "undefined undefined, undefined", + "fixedWidth": 358, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "Burbank Small", + "fontSize": "20px", + "fontStyle": "bold", + "color": "#999999" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard108.js b/src/scenes/postcards/Postcard108.js new file mode 100644 index 00000000..5cb4fcaa --- /dev/null +++ b/src/scenes/postcards/Postcard108.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard108 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.penguin; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/108", "108"); + bg.setOrigin(0, 0); + this.add(bg); + + // penguin + const penguin = scene.add.text(98, 46, "", {}); + penguin.text = "undefined"; + penguin.setStyle({ "color": "#000033", "fixedWidth":388,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + penguin.setPadding({"left":5,"right":5}); + this.add(penguin); + + this.penguin = penguin; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard108.scene b/src/scenes/postcards/Postcard108.scene new file mode 100644 index 00000000..683b41af --- /dev/null +++ b/src/scenes/postcards/Postcard108.scene @@ -0,0 +1,61 @@ +{ + "id": "70b6e519-8bd4-4f26-aa73-db76ee3fe0a1", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "a8cab924-f283-499d-a32c-3a4be0aa508a", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "04fc4351-e618-4aa8-9d1e-25ee0c2a0b65", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/108", + "frame": "108" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "3b4aa07c-9a6b-4043-b9e2-b92658917699", + "label": "penguin", + "scope": "CLASS", + "components": [], + "x": 98, + "y": 46, + "text": "undefined", + "fixedWidth": 388, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#000033" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard109.js b/src/scenes/postcards/Postcard109.js new file mode 100644 index 00000000..c6b6d8a9 --- /dev/null +++ b/src/scenes/postcards/Postcard109.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard109 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/109", "109"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(145, 547, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "align": "right", "color": "#0e2828", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard109.scene b/src/scenes/postcards/Postcard109.scene new file mode 100644 index 00000000..b78fb9c0 --- /dev/null +++ b/src/scenes/postcards/Postcard109.scene @@ -0,0 +1,62 @@ +{ + "id": "d94fb034-94af-4785-9cba-e8eebf3ccf08", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "b30fc5b6-43db-4995-bdd8-24aa2f80a2bc", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "48bb0a6e-29b2-40fa-a327-19b05cbe3a3f", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/109", + "frame": "109" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "f86ea1f0-e258-4686-a761-0b7a7a93336d", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 145, + "y": 547, + "text": "undefined", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#0e2828" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard11.js b/src/scenes/postcards/Postcard11.js new file mode 100644 index 00000000..b9aa4232 --- /dev/null +++ b/src/scenes/postcards/Postcard11.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard11 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/11", "11"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(194, 519, "", {}); + name.visible = false; + name.text = "penguin88888888"; + name.setStyle({ "color": "#a60008", "fixedWidth":266,"fontFamily": "CCFaceFront", "fontSize": "24px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard11.scene b/src/scenes/postcards/Postcard11.scene new file mode 100644 index 00000000..634b1f49 --- /dev/null +++ b/src/scenes/postcards/Postcard11.scene @@ -0,0 +1,62 @@ +{ + "id": "927bb1d4-26db-4b51-8129-1de6a4e23f1c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "9d06d944-646d-4aa4-b09e-82eb338adecf", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "ca08f8c3-d8eb-4d52-889c-e70c43376efd", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/11", + "frame": "11" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "b6cc635c-0711-4289-8c50-f3f9c385e241", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 194, + "y": 519, + "visible": false, + "text": "penguin88888888", + "fixedWidth": 266, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "24px", + "color": "#a60008" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard110.js b/src/scenes/postcards/Postcard110.js new file mode 100644 index 00000000..75b436d8 --- /dev/null +++ b/src/scenes/postcards/Postcard110.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard110 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/110", "110"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(260, 518, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "align": "center", "color": "#083a9b", "fixedWidth":438,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard110.scene b/src/scenes/postcards/Postcard110.scene new file mode 100644 index 00000000..e65b1736 --- /dev/null +++ b/src/scenes/postcards/Postcard110.scene @@ -0,0 +1,62 @@ +{ + "id": "f729d38b-d076-46f6-b521-457f8653ba10", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "03cbec56-85b6-44c2-b5ac-fdc98f257a71", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "04b7fda1-c60e-49cb-8937-97ce2f799c53", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/110", + "frame": "110" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "66cc4b4f-d029-4ce7-96be-050cc3c7ece6", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 260, + "y": 518, + "text": "undefined", + "fixedWidth": 438, + "paddingLeft": 5, + "paddingRight": 5, + "align": "center", + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#083a9b" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard111.js b/src/scenes/postcards/Postcard111.js new file mode 100644 index 00000000..99b42174 --- /dev/null +++ b/src/scenes/postcards/Postcard111.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard111 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/111", "111"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(483, 502, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "color": "#5b0099", "fixedWidth":446,"fontFamily": "CCFaceFront", "fontSize": "46px", "fontStyle": "bold italic" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard111.scene b/src/scenes/postcards/Postcard111.scene new file mode 100644 index 00000000..ea648764 --- /dev/null +++ b/src/scenes/postcards/Postcard111.scene @@ -0,0 +1,62 @@ +{ + "id": "9f42476a-ad66-4559-a81e-656af38af7c0", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "c0f30049-b686-46f3-bbe0-39bd5aaf9c5c", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "fe61b00f-fd90-4988-b8c1-1135d4b8feea", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/111", + "frame": "111" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "3eda47e8-4691-484d-9313-ccf6316de934", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 483, + "y": 502, + "text": "undefined", + "fixedWidth": 446, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "46px", + "fontStyle": "bold italic", + "color": "#5b0099" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard112.js b/src/scenes/postcards/Postcard112.js new file mode 100644 index 00000000..7d5719ad --- /dev/null +++ b/src/scenes/postcards/Postcard112.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard112 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/112", "112"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard112.scene b/src/scenes/postcards/Postcard112.scene new file mode 100644 index 00000000..9c85e92d --- /dev/null +++ b/src/scenes/postcards/Postcard112.scene @@ -0,0 +1,45 @@ +{ + "id": "b67af4d2-13a8-4b95-bb80-d1c11db3bd7b", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "dd7bd54f-f1b7-4ef5-81db-f2877f921752", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "904b70bf-8f14-4749-b980-bc4a91a111ec", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/112", + "frame": "112" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard12.js b/src/scenes/postcards/Postcard12.js new file mode 100644 index 00000000..48bb32c8 --- /dev/null +++ b/src/scenes/postcards/Postcard12.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard12 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/12", "12"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(132, 109, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard12.scene b/src/scenes/postcards/Postcard12.scene new file mode 100644 index 00000000..64d420bf --- /dev/null +++ b/src/scenes/postcards/Postcard12.scene @@ -0,0 +1,61 @@ +{ + "id": "47885420-45a9-4d36-9786-331cf30f7d30", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "d422054d-2c7a-4610-8e02-ab1a16f3aa8d", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "4b950e70-7325-4e77-989d-8109643bb763", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/12", + "frame": "12" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "e8aa032c-25b7-44e0-a974-b4f16ebc3a52", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 132, + "y": 109, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard120.js b/src/scenes/postcards/Postcard120.js new file mode 100644 index 00000000..eb3eff95 --- /dev/null +++ b/src/scenes/postcards/Postcard120.js @@ -0,0 +1,30 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard120 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/120", "120"); + bg.setOrigin(0, 0); + this.add(bg); + + // goto_button + const goto_button = scene.add.image(452, 618, "mail", "goto_button"); + goto_button.setOrigin(0.5031847133757962, 0.5); + this.add(goto_button); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard120.scene b/src/scenes/postcards/Postcard120.scene new file mode 100644 index 00000000..021bd444 --- /dev/null +++ b/src/scenes/postcards/Postcard120.scene @@ -0,0 +1,58 @@ +{ + "id": "34f12de7-e06e-4f33-a845-efd274d8fe52", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "f22e1b12-206d-47f6-bc4a-7be585107613", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "3f7a0711-c233-4460-a9e7-880302f4576b", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/120", + "frame": "120" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Image", + "id": "8f8d47f7-064e-40f5-8fd0-ae39ea45b71f", + "label": "goto_button", + "components": [], + "texture": { + "key": "mail", + "frame": "goto_button" + }, + "x": 452, + "y": 618, + "originX": 0.5031847133757962 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard121.js b/src/scenes/postcards/Postcard121.js new file mode 100644 index 00000000..dbb9cd0f --- /dev/null +++ b/src/scenes/postcards/Postcard121.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard121 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/121", "121"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard121.scene b/src/scenes/postcards/Postcard121.scene new file mode 100644 index 00000000..f17a6b0e --- /dev/null +++ b/src/scenes/postcards/Postcard121.scene @@ -0,0 +1,45 @@ +{ + "id": "91dce6b8-10ad-4a40-95e5-cdc449124c71", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "baa5d6d4-74b4-4fc0-ad6c-e379ab16541b", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "afead82a-69a9-40b3-8a77-3617ea35d0df", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/121", + "frame": "121" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard122.js b/src/scenes/postcards/Postcard122.js new file mode 100644 index 00000000..55a442da --- /dev/null +++ b/src/scenes/postcards/Postcard122.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard122 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/122", "122"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard122.scene b/src/scenes/postcards/Postcard122.scene new file mode 100644 index 00000000..ab01dce5 --- /dev/null +++ b/src/scenes/postcards/Postcard122.scene @@ -0,0 +1,45 @@ +{ + "id": "7f282654-c9e3-452f-a121-29950f71be8a", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "6ddf40b9-12f2-4a4f-aec9-b28a03f8a0bb", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "9d76da8f-dab5-424b-9384-f6cada8c5536", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/122", + "frame": "122" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard123.js b/src/scenes/postcards/Postcard123.js new file mode 100644 index 00000000..6ffeeb33 --- /dev/null +++ b/src/scenes/postcards/Postcard123.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard123 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/123", "123"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard123.scene b/src/scenes/postcards/Postcard123.scene new file mode 100644 index 00000000..a052031b --- /dev/null +++ b/src/scenes/postcards/Postcard123.scene @@ -0,0 +1,45 @@ +{ + "id": "52e27d26-7f91-431b-a037-2d9c02806f85", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "5b5c622b-e0db-4cf6-8c54-1f550a17c3ee", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "72c969cf-e303-441d-808c-05b435773594", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/123", + "frame": "123" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard124.js b/src/scenes/postcards/Postcard124.js new file mode 100644 index 00000000..0b5a4e76 --- /dev/null +++ b/src/scenes/postcards/Postcard124.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard124 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/124", "124"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard124.scene b/src/scenes/postcards/Postcard124.scene new file mode 100644 index 00000000..5da8c4e0 --- /dev/null +++ b/src/scenes/postcards/Postcard124.scene @@ -0,0 +1,45 @@ +{ + "id": "ee804c7b-e1be-415c-905f-0896bc4d2f5c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "215e7423-99fb-4b1f-a89e-7c77c238dd90", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "e26a2f3e-8e8d-4fcc-842c-361172ca18d8", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/124", + "frame": "124" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard125.js b/src/scenes/postcards/Postcard125.js new file mode 100644 index 00000000..bf6d504f --- /dev/null +++ b/src/scenes/postcards/Postcard125.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard125 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/125", "125"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard125.scene b/src/scenes/postcards/Postcard125.scene new file mode 100644 index 00000000..63972d05 --- /dev/null +++ b/src/scenes/postcards/Postcard125.scene @@ -0,0 +1,45 @@ +{ + "id": "7219ad42-ba4a-4201-8972-dffe613b2149", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "c5b7f620-da1d-4dfb-813c-ac2364cf406b", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "8081f35f-e364-4a93-b0cd-3eacdea3973c", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/125", + "frame": "125" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard126.js b/src/scenes/postcards/Postcard126.js new file mode 100644 index 00000000..d0c48393 --- /dev/null +++ b/src/scenes/postcards/Postcard126.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard126 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/126", "126"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard126.scene b/src/scenes/postcards/Postcard126.scene new file mode 100644 index 00000000..65193cc0 --- /dev/null +++ b/src/scenes/postcards/Postcard126.scene @@ -0,0 +1,45 @@ +{ + "id": "87bf8649-21b9-4b2e-8a9c-1e49ea55cff0", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "94d3a835-627c-4ae5-a56b-47d2b4ef4016", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "cb313f0d-e216-4a27-b210-093a519f56ea", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/126", + "frame": "126" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard127.js b/src/scenes/postcards/Postcard127.js new file mode 100644 index 00000000..bfaa8816 --- /dev/null +++ b/src/scenes/postcards/Postcard127.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard127 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.penguin; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/127", "127"); + bg.setOrigin(0, 0); + this.add(bg); + + // penguin + const penguin = scene.add.text(522, 586, "", {}); + penguin.text = "undefined"; + penguin.setStyle({ "color": "#9a0000", "fixedWidth":502,"fontFamily": "CCFaceFront", "fontSize": "50px", "fontStyle": "bold italic", "strokeThickness":8}); + penguin.setPadding({"left":5,"right":5}); + this.add(penguin); + + this.penguin = penguin; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard127.scene b/src/scenes/postcards/Postcard127.scene new file mode 100644 index 00000000..13dea578 --- /dev/null +++ b/src/scenes/postcards/Postcard127.scene @@ -0,0 +1,63 @@ +{ + "id": "580f9a9c-5d5d-4171-95aa-eba40c9cac82", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "28d63bf6-6bc5-493c-8701-b430e7d6abc5", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "c65fb432-5e2c-4e2c-8356-efdbdf20f30f", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/127", + "frame": "127" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "e8fa0bb7-a920-4cf1-a904-1096ab7ed3f3", + "label": "penguin", + "scope": "CLASS", + "components": [], + "x": 522, + "y": 586, + "text": "undefined", + "fixedWidth": 502, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "50px", + "fontStyle": "bold italic", + "color": "#9a0000", + "strokeThickness": 8 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard128.js b/src/scenes/postcards/Postcard128.js new file mode 100644 index 00000000..3ef767b6 --- /dev/null +++ b/src/scenes/postcards/Postcard128.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard128 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/128", "128"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard128.scene b/src/scenes/postcards/Postcard128.scene new file mode 100644 index 00000000..361fee59 --- /dev/null +++ b/src/scenes/postcards/Postcard128.scene @@ -0,0 +1,45 @@ +{ + "id": "4ecb4efd-24b1-45f3-afd2-0065bdd1b007", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "76b23c6e-b44a-4d19-b27f-f2fff381632e", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "ec4daacc-e8b6-4bc2-b6d6-49b354bb7dd6", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/128", + "frame": "128" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard13.js b/src/scenes/postcards/Postcard13.js new file mode 100644 index 00000000..b3a413fa --- /dev/null +++ b/src/scenes/postcards/Postcard13.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard13 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/13", "13"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(554, 593, "", {}); + name.text = "penguin8888888"; + name.setStyle({ "color": "#0280cd", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "40px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard13.scene b/src/scenes/postcards/Postcard13.scene new file mode 100644 index 00000000..078e19a2 --- /dev/null +++ b/src/scenes/postcards/Postcard13.scene @@ -0,0 +1,61 @@ +{ + "id": "e75151b7-07ef-4ba2-99ec-ca5a29ce2a2f", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "449cbf32-087a-4fe7-bf4b-487e89bab4dc", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "0841e172-ddcb-407a-a7bf-038e5aae96bd", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/13", + "frame": "13" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "1a575393-3c50-4d4d-aa90-bba5bd8bb325", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 554, + "y": 593, + "text": "penguin8888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "40px", + "color": "#0280cd" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard130.js b/src/scenes/postcards/Postcard130.js new file mode 100644 index 00000000..0155c142 --- /dev/null +++ b/src/scenes/postcards/Postcard130.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard130 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.penguin; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/130", "130"); + bg.setOrigin(0, 0); + this.add(bg); + + // penguin + const penguin = scene.add.text(383, 25, "", {}); + penguin.text = "undefined"; + penguin.setStyle({ "color": "#000b71", "fixedWidth":436,"fontFamily": "Comic Sans MS", "fontSize": "32px", "fontStyle": "bold" }); + penguin.setPadding({"left":5,"right":5}); + this.add(penguin); + + this.penguin = penguin; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard130.scene b/src/scenes/postcards/Postcard130.scene new file mode 100644 index 00000000..4e650413 --- /dev/null +++ b/src/scenes/postcards/Postcard130.scene @@ -0,0 +1,62 @@ +{ + "id": "6832104d-406e-4e3f-ac64-4157a79f5185", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "f7be9d9f-b95e-4bd1-8b69-d057cd4fbdf8", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "d97244b2-4796-4a84-be00-d2e88b7c1a70", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/130", + "frame": "130" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "30bfff7e-0baf-4c55-bb68-22bae01e11c3", + "label": "penguin", + "scope": "CLASS", + "components": [], + "x": 383, + "y": 25, + "text": "undefined", + "fixedWidth": 436, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "Comic Sans MS", + "fontSize": "32px", + "fontStyle": "bold", + "color": "#000b71" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard131.js b/src/scenes/postcards/Postcard131.js new file mode 100644 index 00000000..a586e42d --- /dev/null +++ b/src/scenes/postcards/Postcard131.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard131 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/131", "131"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard131.scene b/src/scenes/postcards/Postcard131.scene new file mode 100644 index 00000000..5aad56fc --- /dev/null +++ b/src/scenes/postcards/Postcard131.scene @@ -0,0 +1,45 @@ +{ + "id": "23b2657a-d70c-4fc7-8d3d-1a55eee83491", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "89912671-ca3f-4e22-9788-bc8bafd09c1c", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "c7470401-cea5-44ce-b5bc-46e55bf1acd4", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/131", + "frame": "131" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard132.js b/src/scenes/postcards/Postcard132.js new file mode 100644 index 00000000..3034c242 --- /dev/null +++ b/src/scenes/postcards/Postcard132.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard132 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/132", "132"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard132.scene b/src/scenes/postcards/Postcard132.scene new file mode 100644 index 00000000..9f929507 --- /dev/null +++ b/src/scenes/postcards/Postcard132.scene @@ -0,0 +1,45 @@ +{ + "id": "0304b518-f09a-424b-bbe0-a7368d95e8de", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "4197b4fb-1491-4149-89c1-bc4a47e5d6f6", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "f85ae0bd-e99d-47c1-9750-9857423d7eb6", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/132", + "frame": "132" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard133.js b/src/scenes/postcards/Postcard133.js new file mode 100644 index 00000000..341b0c3e --- /dev/null +++ b/src/scenes/postcards/Postcard133.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard133 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/133", "133"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard133.scene b/src/scenes/postcards/Postcard133.scene new file mode 100644 index 00000000..23eebc1a --- /dev/null +++ b/src/scenes/postcards/Postcard133.scene @@ -0,0 +1,45 @@ +{ + "id": "02165b5c-4cc0-47ca-9a9b-4f9283943c01", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "37e91794-25ae-4820-9e95-4d57ad0c059c", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "22da9f89-1346-462d-8a10-cdb6bf39bd4b", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/133", + "frame": "133" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard134.js b/src/scenes/postcards/Postcard134.js new file mode 100644 index 00000000..c8af5c2c --- /dev/null +++ b/src/scenes/postcards/Postcard134.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard134 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/134", "134"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 126, 617); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 322; + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard134.scene b/src/scenes/postcards/Postcard134.scene new file mode 100644 index 00000000..f2df842e --- /dev/null +++ b/src/scenes/postcards/Postcard134.scene @@ -0,0 +1,57 @@ +{ + "id": "ea0184d1-991a-4151-ba80-56863e498e30", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "f5b89c3c-83d3-4bde-9db7-f195f259894d", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "9764cb8f-9830-4306-9051-5402c5dab52a", + "label": "bg", + "texture": { + "key": "postcards/sprites/134", + "frame": "134" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "7e078a26-2a41-4874-a6c9-65c56bc806bc", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 322, + "x": 126, + "y": 617 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard135.js b/src/scenes/postcards/Postcard135.js new file mode 100644 index 00000000..775e1d78 --- /dev/null +++ b/src/scenes/postcards/Postcard135.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard135 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/135", "135"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard135.scene b/src/scenes/postcards/Postcard135.scene new file mode 100644 index 00000000..0554f921 --- /dev/null +++ b/src/scenes/postcards/Postcard135.scene @@ -0,0 +1,45 @@ +{ + "id": "98e44fd3-fc9a-498f-b331-7f2b66cb786f", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "e06f393c-a5a1-4da9-a4c7-9118781e2cdf", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "c1265f46-f989-4310-a1f0-b3bcd46b97b1", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/135", + "frame": "135" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard14.js b/src/scenes/postcards/Postcard14.js new file mode 100644 index 00000000..62899d2b --- /dev/null +++ b/src/scenes/postcards/Postcard14.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard14 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/14", "14"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(553, 391, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "align": "center", "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton + const goToButton = new GoToButton(scene, 735, 539); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 400; + + this.name = name; + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard14.scene b/src/scenes/postcards/Postcard14.scene new file mode 100644 index 00000000..077ae21f --- /dev/null +++ b/src/scenes/postcards/Postcard14.scene @@ -0,0 +1,73 @@ +{ + "id": "a7d75cc1-f527-42b2-bc40-b1d09846c257", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "7e03773c-afd5-42c8-8350-e639056f96c2", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "ff0eb6a5-fa25-40a0-ad3f-4535bc5bd9db", + "label": "bg", + "texture": { + "key": "postcards/sprites/14", + "frame": "14" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "0e65d00d-1c75-46c0-9a0e-5807ab5e5c8b", + "label": "name", + "scope": "CLASS", + "x": 553, + "y": 391, + "text": "Penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "align": "center", + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "7ffd1f05-052d-4de4-8a5d-e5e96ae1e605", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 400, + "x": 735, + "y": 539 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard15.js b/src/scenes/postcards/Postcard15.js new file mode 100644 index 00000000..84d394ec --- /dev/null +++ b/src/scenes/postcards/Postcard15.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard15 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/15", "15"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(124, 601, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#21212d", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard15.scene b/src/scenes/postcards/Postcard15.scene new file mode 100644 index 00000000..d910f87b --- /dev/null +++ b/src/scenes/postcards/Postcard15.scene @@ -0,0 +1,61 @@ +{ + "id": "e0216e3b-e61e-4556-aa32-15fe5176c75c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "2cbcf078-b3b4-440a-9203-78c1425a9082", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "d4641311-a9ce-4444-9dd2-3df4b2c5c4cb", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/15", + "frame": "15" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "e3eb4f14-6d9c-495f-a52c-0b960f29369c", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 124, + "y": 601, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#21212d" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard156.js b/src/scenes/postcards/Postcard156.js new file mode 100644 index 00000000..0e626d52 --- /dev/null +++ b/src/scenes/postcards/Postcard156.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard156 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/156", "156"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard156.scene b/src/scenes/postcards/Postcard156.scene new file mode 100644 index 00000000..85d5dec2 --- /dev/null +++ b/src/scenes/postcards/Postcard156.scene @@ -0,0 +1,45 @@ +{ + "id": "62960ae6-21b7-48d5-9432-1a7f7dba95b7", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "197fe9b4-5e49-4d67-84a7-864b08b8187b", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "6dbe1b11-e85e-479f-8e2c-89c4f407049c", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/156", + "frame": "156" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard157.js b/src/scenes/postcards/Postcard157.js new file mode 100644 index 00000000..0794f4fd --- /dev/null +++ b/src/scenes/postcards/Postcard157.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard157 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/157", "157"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard157.scene b/src/scenes/postcards/Postcard157.scene new file mode 100644 index 00000000..18f5320f --- /dev/null +++ b/src/scenes/postcards/Postcard157.scene @@ -0,0 +1,45 @@ +{ + "id": "96455f75-157d-4a5a-8627-21124f898f41", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "74cd49d8-21ca-43d5-937b-cf8f74147e21", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "095b510b-731a-41f0-86dc-cc92db4ad70c", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/157", + "frame": "157" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard158.js b/src/scenes/postcards/Postcard158.js new file mode 100644 index 00000000..6f90c053 --- /dev/null +++ b/src/scenes/postcards/Postcard158.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard158 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/158", "158"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard158.scene b/src/scenes/postcards/Postcard158.scene new file mode 100644 index 00000000..65cb8475 --- /dev/null +++ b/src/scenes/postcards/Postcard158.scene @@ -0,0 +1,45 @@ +{ + "id": "5411c8c1-2748-4eb0-ad67-bad1d3858cd1", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "54a10c48-f6d7-41d9-b876-468612e2af0a", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "c927180a-36c8-4d92-b8b6-8f65df78913b", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/158", + "frame": "158" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard159.js b/src/scenes/postcards/Postcard159.js new file mode 100644 index 00000000..14bc60b2 --- /dev/null +++ b/src/scenes/postcards/Postcard159.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard159 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/159", "159"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard159.scene b/src/scenes/postcards/Postcard159.scene new file mode 100644 index 00000000..7b879eed --- /dev/null +++ b/src/scenes/postcards/Postcard159.scene @@ -0,0 +1,45 @@ +{ + "id": "8b8b037f-244b-402e-b55e-00b4ad139fb4", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "e59715b3-74e4-4c2c-82fc-a01650f53907", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "dcfe5fe0-d415-438c-897c-c85b95ed1beb", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/159", + "frame": "159" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard16.js b/src/scenes/postcards/Postcard16.js new file mode 100644 index 00000000..11808fc6 --- /dev/null +++ b/src/scenes/postcards/Postcard16.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard16 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/16", "16"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 523, 108); + this.add(goToButton); + + // name + const name = scene.add.text(52, 47, "", {}); + name.text = "TEST NAME123"; + name.setStyle({ "color": "#ffffff", "fixedWidth":580,"fontFamily": "CCFaceFront", "fontSize": "40px", "fontStyle": "bold italic" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 802; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard16.scene b/src/scenes/postcards/Postcard16.scene new file mode 100644 index 00000000..040486af --- /dev/null +++ b/src/scenes/postcards/Postcard16.scene @@ -0,0 +1,73 @@ +{ + "id": "94a19d4b-18ad-4032-81aa-03f61ca02c66", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "5c3dc4e2-ae91-4b28-9ad6-a6856afbf925", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "2e1389cd-c5bb-4890-afca-3eb4f66db8d9", + "label": "bg", + "texture": { + "key": "postcards/sprites/16", + "frame": "16" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "f7c0c096-a6b5-4338-ac5e-ff49bb69a454", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 802, + "x": 523, + "y": 108 + }, + { + "type": "Text", + "id": "f8fdadb9-7aa3-4a06-a0bc-7bcf09541529", + "label": "name", + "scope": "CLASS", + "x": 52, + "y": 47, + "text": "TEST NAME123", + "fixedWidth": 580, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "40px", + "fontStyle": "bold italic", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard160.js b/src/scenes/postcards/Postcard160.js new file mode 100644 index 00000000..a8544158 --- /dev/null +++ b/src/scenes/postcards/Postcard160.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard160 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/160", "160"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 834, 624); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 120; + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard160.scene b/src/scenes/postcards/Postcard160.scene new file mode 100644 index 00000000..29f3df83 --- /dev/null +++ b/src/scenes/postcards/Postcard160.scene @@ -0,0 +1,57 @@ +{ + "id": "d5b6476c-9989-417e-b0ad-07ce5b4f5d4f", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "17eedf39-159b-45ca-b8b7-ddc5d8fa28b4", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "f2019895-1b0d-4efc-a98d-1471c2565bf6", + "label": "bg", + "texture": { + "key": "postcards/sprites/160", + "frame": "160" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "f636e854-4756-4aa4-ae43-9ab665c7b814", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 120, + "x": 834, + "y": 624 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard161.js b/src/scenes/postcards/Postcard161.js new file mode 100644 index 00000000..1a211b6d --- /dev/null +++ b/src/scenes/postcards/Postcard161.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard161 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/161", "161"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 827, 623); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 111; + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard161.scene b/src/scenes/postcards/Postcard161.scene new file mode 100644 index 00000000..2244dbe3 --- /dev/null +++ b/src/scenes/postcards/Postcard161.scene @@ -0,0 +1,57 @@ +{ + "id": "3e91f87b-be6f-49d3-9481-893c4310a7ac", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "6cb9133b-bfcf-4470-9ab3-2978e64244a2", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "06656a97-ce3e-4df5-b7d5-fec7bd555c6b", + "label": "bg", + "texture": { + "key": "postcards/sprites/161", + "frame": "161" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "63e7dee4-f1b2-478f-9b16-4767e39c876d", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 111, + "x": 827, + "y": 623 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard162.js b/src/scenes/postcards/Postcard162.js new file mode 100644 index 00000000..01e98e5d --- /dev/null +++ b/src/scenes/postcards/Postcard162.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard162 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/162", "162"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard162.scene b/src/scenes/postcards/Postcard162.scene new file mode 100644 index 00000000..e94bddb0 --- /dev/null +++ b/src/scenes/postcards/Postcard162.scene @@ -0,0 +1,45 @@ +{ + "id": "64881f25-6e3c-40bd-9b1d-ba0db873f0b2", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "7d44df1d-a151-43b5-a518-d2bc90f49210", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "90dd976b-0a9a-4bb6-92d1-c84651426803", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/162", + "frame": "162" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard163.js b/src/scenes/postcards/Postcard163.js new file mode 100644 index 00000000..cea0777f --- /dev/null +++ b/src/scenes/postcards/Postcard163.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard163 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/163", "163"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard163.scene b/src/scenes/postcards/Postcard163.scene new file mode 100644 index 00000000..fff6d712 --- /dev/null +++ b/src/scenes/postcards/Postcard163.scene @@ -0,0 +1,45 @@ +{ + "id": "0be7a724-f250-4ca0-bd74-f30c3fc7c6a5", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "c9014d0b-8a55-4da1-8b85-51bbd811f5f1", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "09c794b7-7dc7-4c38-8e11-1092b5eca3fd", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/163", + "frame": "163" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard164.js b/src/scenes/postcards/Postcard164.js new file mode 100644 index 00000000..d878d6cc --- /dev/null +++ b/src/scenes/postcards/Postcard164.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard164 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/164", "164"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard164.scene b/src/scenes/postcards/Postcard164.scene new file mode 100644 index 00000000..f989e736 --- /dev/null +++ b/src/scenes/postcards/Postcard164.scene @@ -0,0 +1,45 @@ +{ + "id": "f8acb649-f40e-468d-8668-5e4f1b54f418", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "131caee7-09cb-4a0f-aecf-1c2cd6f1c00c", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "591298c8-74d2-49ea-92b3-a10075f57187", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/164", + "frame": "164" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard165.js b/src/scenes/postcards/Postcard165.js new file mode 100644 index 00000000..0a3161dc --- /dev/null +++ b/src/scenes/postcards/Postcard165.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard165 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/165", "165"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 833, 608); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard165.scene b/src/scenes/postcards/Postcard165.scene new file mode 100644 index 00000000..0d1784b3 --- /dev/null +++ b/src/scenes/postcards/Postcard165.scene @@ -0,0 +1,57 @@ +{ + "id": "b1caa547-8fb3-4051-a1e1-565a08da0095", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "ada20b6f-0f47-4737-948d-58a34f26d3ee", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "cfcdc111-9512-4b7b-8fb1-1623f7f62bbf", + "label": "bg", + "texture": { + "key": "postcards/sprites/165", + "frame": "165" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "e139d188-588c-4e4b-8082-92ffab8f59f6", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 833, + "y": 608 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard167.js b/src/scenes/postcards/Postcard167.js new file mode 100644 index 00000000..9f4738ec --- /dev/null +++ b/src/scenes/postcards/Postcard167.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard167 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/167", "167"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 839, 615); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard167.scene b/src/scenes/postcards/Postcard167.scene new file mode 100644 index 00000000..c9f11eab --- /dev/null +++ b/src/scenes/postcards/Postcard167.scene @@ -0,0 +1,57 @@ +{ + "id": "08c0d0d5-379a-48ff-84b4-233637d673cc", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "a370473c-d69d-4861-804c-a29d92863947", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "665558c8-d4de-4dfd-b864-beb0f9ed9771", + "label": "bg", + "texture": { + "key": "postcards/sprites/167", + "frame": "167" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "e54613b4-8727-4bb1-be49-d6a78b0ce8f0", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 839, + "y": 615 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard168.js b/src/scenes/postcards/Postcard168.js new file mode 100644 index 00000000..ff9b527e --- /dev/null +++ b/src/scenes/postcards/Postcard168.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard168 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/168", "168"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 844, 603); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 300; + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard168.scene b/src/scenes/postcards/Postcard168.scene new file mode 100644 index 00000000..5413d41d --- /dev/null +++ b/src/scenes/postcards/Postcard168.scene @@ -0,0 +1,57 @@ +{ + "id": "9d91fe66-8526-40ab-ad9c-4bf559a2a295", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "1c374630-ac29-4c5a-8cce-1bd19017c98f", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "b418e03b-4001-40f9-926a-751c0fe50e92", + "label": "bg", + "texture": { + "key": "postcards/sprites/168", + "frame": "168" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "b1bed4aa-197f-4219-b578-2d878a6d742e", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 300, + "x": 844, + "y": 603 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard169.js b/src/scenes/postcards/Postcard169.js new file mode 100644 index 00000000..ec8543f9 --- /dev/null +++ b/src/scenes/postcards/Postcard169.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard169 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/169", "169"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(279, 573, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "align": "right", "color": "#000000", "fixedWidth":312,"fontFamily": "CCFaceFront", "fontSize": "28px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard169.scene b/src/scenes/postcards/Postcard169.scene new file mode 100644 index 00000000..02cd2ab8 --- /dev/null +++ b/src/scenes/postcards/Postcard169.scene @@ -0,0 +1,62 @@ +{ + "id": "310911df-c67f-4b23-8089-c66a9408ef8a", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "6cc3845b-182d-4357-99d3-1705646930de", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "262af6aa-4ea1-431b-97c5-abc37888a183", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/169", + "frame": "169" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "6ebe2d83-01f8-4a37-b44e-af77461626a2", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 279, + "y": 573, + "text": "undefined", + "fixedWidth": 312, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "28px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard17.js b/src/scenes/postcards/Postcard17.js new file mode 100644 index 00000000..57cb10e7 --- /dev/null +++ b/src/scenes/postcards/Postcard17.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard17 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/17", "17"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(129, 604, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard17.scene b/src/scenes/postcards/Postcard17.scene new file mode 100644 index 00000000..35b818d5 --- /dev/null +++ b/src/scenes/postcards/Postcard17.scene @@ -0,0 +1,61 @@ +{ + "id": "99bbcc1e-256e-43b2-9e4f-dff83b97c8f1", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "7d7dfb01-e5b9-42fa-b99f-0311b5b09b93", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "18c4ae8c-66bf-4631-9593-cd58f53d239f", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/17", + "frame": "17" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "f611e37f-1136-4319-9f35-0035c3d3c55f", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 129, + "y": 604, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard170.js b/src/scenes/postcards/Postcard170.js new file mode 100644 index 00000000..829ee291 --- /dev/null +++ b/src/scenes/postcards/Postcard170.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard170 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/170", "170"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard170.scene b/src/scenes/postcards/Postcard170.scene new file mode 100644 index 00000000..cb6bd0db --- /dev/null +++ b/src/scenes/postcards/Postcard170.scene @@ -0,0 +1,45 @@ +{ + "id": "aa857afd-70e7-4f24-8d08-8e61a6da7c2a", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "e5ad0cf3-5ed1-4d0f-9180-1050a4b8bbfc", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "5b75580c-34ec-40ae-873d-ac54e1d4607c", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/170", + "frame": "170" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard171.js b/src/scenes/postcards/Postcard171.js new file mode 100644 index 00000000..6cdaa1e5 --- /dev/null +++ b/src/scenes/postcards/Postcard171.js @@ -0,0 +1,49 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard171 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.dateTxt; + /** @type {Phaser.GameObjects.Text} */ + this.penguin; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/171", "171"); + bg.setOrigin(0, 0); + this.add(bg); + + // dateTxt + const dateTxt = scene.add.text(348, 69, "", {}); + dateTxt.text = "undefined undefined, undefined"; + dateTxt.setStyle({ "color": "#000000", "fixedWidth":308,"fontFamily": "CCFaceFront", "fontSize": "28px" }); + dateTxt.setPadding({"left":5,"right":5}); + this.add(dateTxt); + + // penguin + const penguin = scene.add.text(118, 185, "", {}); + penguin.text = "undefined"; + penguin.setStyle({ "color": "#000000", "fixedWidth":360,"fontFamily": "Comic Sans MS", "fontSize": "34px", "fontStyle": "bold" }); + penguin.setPadding({"left":5,"right":5}); + this.add(penguin); + + this.dateTxt = dateTxt; + this.penguin = penguin; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard171.scene b/src/scenes/postcards/Postcard171.scene new file mode 100644 index 00000000..c8c52b19 --- /dev/null +++ b/src/scenes/postcards/Postcard171.scene @@ -0,0 +1,78 @@ +{ + "id": "20441709-9a63-4bc0-9bc9-5112764ba47e", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "92fa6880-27d7-4af3-b79b-7559e7b49f91", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "fe6ecedc-8839-43f7-b887-8a3d50c57cbb", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/171", + "frame": "171" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "2480614f-552a-4463-94b4-b8f00142de8a", + "label": "dateTxt", + "scope": "CLASS", + "components": [], + "x": 348, + "y": 69, + "text": "undefined undefined, undefined", + "fixedWidth": 308, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "28px", + "color": "#000000" + }, + { + "type": "Text", + "id": "c90e97d1-55f4-4388-97b1-90376091f161", + "label": "penguin", + "scope": "CLASS", + "components": [], + "x": 118, + "y": 185, + "text": "undefined", + "fixedWidth": 360, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "Comic Sans MS", + "fontSize": "34px", + "fontStyle": "bold", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard172.js b/src/scenes/postcards/Postcard172.js new file mode 100644 index 00000000..d12bbc11 --- /dev/null +++ b/src/scenes/postcards/Postcard172.js @@ -0,0 +1,49 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard172 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.dateTxt; + /** @type {Phaser.GameObjects.Text} */ + this.penguin; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/172", "172"); + bg.setOrigin(0, 0); + this.add(bg); + + // dateTxt + const dateTxt = scene.add.text(348, 69, "", {}); + dateTxt.text = "undefined undefined, undefined"; + dateTxt.setStyle({ "color": "#000000", "fixedWidth":308,"fontFamily": "CCFaceFront", "fontSize": "28px" }); + dateTxt.setPadding({"left":5,"right":5}); + this.add(dateTxt); + + // penguin + const penguin = scene.add.text(115, 187, "", {}); + penguin.text = "undefined"; + penguin.setStyle({ "color": "#000000", "fixedWidth":360,"fontFamily": "Comic Sans MS", "fontSize": "34px", "fontStyle": "bold" }); + penguin.setPadding({"left":5,"right":5}); + this.add(penguin); + + this.dateTxt = dateTxt; + this.penguin = penguin; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard172.scene b/src/scenes/postcards/Postcard172.scene new file mode 100644 index 00000000..b749d29a --- /dev/null +++ b/src/scenes/postcards/Postcard172.scene @@ -0,0 +1,78 @@ +{ + "id": "4863a3da-8cea-4df7-b766-a34d4189c173", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "efcaedfb-5a32-4477-ba52-afa1674f4af6", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "c9e8a1ed-1200-4a54-a344-17543d3d77c4", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/172", + "frame": "172" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "9510bc7c-7991-4b36-9fe0-b7769c85e66b", + "label": "dateTxt", + "scope": "CLASS", + "components": [], + "x": 348, + "y": 69, + "text": "undefined undefined, undefined", + "fixedWidth": 308, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "28px", + "color": "#000000" + }, + { + "type": "Text", + "id": "85605498-3222-4c6b-8519-03a92e347974", + "label": "penguin", + "scope": "CLASS", + "components": [], + "x": 115, + "y": 187, + "text": "undefined", + "fixedWidth": 360, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "Comic Sans MS", + "fontSize": "34px", + "fontStyle": "bold", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard173.js b/src/scenes/postcards/Postcard173.js new file mode 100644 index 00000000..8ac63258 --- /dev/null +++ b/src/scenes/postcards/Postcard173.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard173 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/173", "173"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard173.scene b/src/scenes/postcards/Postcard173.scene new file mode 100644 index 00000000..305ee5f9 --- /dev/null +++ b/src/scenes/postcards/Postcard173.scene @@ -0,0 +1,45 @@ +{ + "id": "6b9ac073-5c8d-4798-b95b-5d98a4d71271", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "08b41693-53a3-40a7-85b4-1b0fe4515a27", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "8c9f446c-2161-4c6c-8d4f-eefc457889f5", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/173", + "frame": "173" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard174.js b/src/scenes/postcards/Postcard174.js new file mode 100644 index 00000000..b011a1cd --- /dev/null +++ b/src/scenes/postcards/Postcard174.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard174 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/174", "174"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard174.scene b/src/scenes/postcards/Postcard174.scene new file mode 100644 index 00000000..a508033b --- /dev/null +++ b/src/scenes/postcards/Postcard174.scene @@ -0,0 +1,45 @@ +{ + "id": "c683a924-5c01-4eda-9e18-6f7dbdc5668e", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "592ca497-d3f3-433e-810e-2a96ae852eb8", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "f785bcd9-5730-4d57-9dc4-620e79eae4f3", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/174", + "frame": "174" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard175.js b/src/scenes/postcards/Postcard175.js new file mode 100644 index 00000000..e7b404fb --- /dev/null +++ b/src/scenes/postcards/Postcard175.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard175 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/175", "175"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 541, 612); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 806; + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard175.scene b/src/scenes/postcards/Postcard175.scene new file mode 100644 index 00000000..dc1acf64 --- /dev/null +++ b/src/scenes/postcards/Postcard175.scene @@ -0,0 +1,57 @@ +{ + "id": "d3f79504-108a-43cc-95b1-8e977353e7b8", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "8d732d27-7892-4ee2-9926-0ac178e72248", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "8ad05dbf-5ee7-4ec9-b5c4-6b884ac31733", + "label": "bg", + "texture": { + "key": "postcards/sprites/175", + "frame": "175" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "036787dd-2235-4e84-b522-06fab06a8278", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 806, + "x": 541, + "y": 612 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard176.js b/src/scenes/postcards/Postcard176.js new file mode 100644 index 00000000..2c1c9d1f --- /dev/null +++ b/src/scenes/postcards/Postcard176.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard176 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/176", "176"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 175, 545); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 320; + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard176.scene b/src/scenes/postcards/Postcard176.scene new file mode 100644 index 00000000..7f03d43d --- /dev/null +++ b/src/scenes/postcards/Postcard176.scene @@ -0,0 +1,57 @@ +{ + "id": "885e0558-bd13-4c09-ad12-454c105a4e0f", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "553c625e-ff3f-4c00-88f1-06df6d8adcfa", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "d9e75e83-e6f9-4d98-adfd-417170a43c35", + "label": "bg", + "texture": { + "key": "postcards/sprites/176", + "frame": "176" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "674b8df5-2928-451c-adb3-2d57742358fb", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 320, + "x": 175, + "y": 545 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard177.js b/src/scenes/postcards/Postcard177.js new file mode 100644 index 00000000..eb15aab5 --- /dev/null +++ b/src/scenes/postcards/Postcard177.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard177 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/177", "177"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard177.scene b/src/scenes/postcards/Postcard177.scene new file mode 100644 index 00000000..fa6514d3 --- /dev/null +++ b/src/scenes/postcards/Postcard177.scene @@ -0,0 +1,45 @@ +{ + "id": "5808a3a5-7541-4d4b-a2f1-1451c89f20f7", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "6e336c4c-be8f-4d80-94cb-509803d0459d", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "b3bd884f-61d6-4920-b550-52e7e9c31b4a", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/177", + "frame": "177" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard178.js b/src/scenes/postcards/Postcard178.js new file mode 100644 index 00000000..28057491 --- /dev/null +++ b/src/scenes/postcards/Postcard178.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard178 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/178", "178"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard178.scene b/src/scenes/postcards/Postcard178.scene new file mode 100644 index 00000000..fcc4860d --- /dev/null +++ b/src/scenes/postcards/Postcard178.scene @@ -0,0 +1,45 @@ +{ + "id": "469b9156-4569-41e2-989b-afef576de773", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "da4c8913-0907-48c6-b9c0-ff0908475402", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "de006415-1b07-41de-973e-db1859f0776a", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/178", + "frame": "178" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard179.js b/src/scenes/postcards/Postcard179.js new file mode 100644 index 00000000..dc3118ac --- /dev/null +++ b/src/scenes/postcards/Postcard179.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard179 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/179", "179"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 177, 487); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 320; + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard179.scene b/src/scenes/postcards/Postcard179.scene new file mode 100644 index 00000000..0db3baa8 --- /dev/null +++ b/src/scenes/postcards/Postcard179.scene @@ -0,0 +1,57 @@ +{ + "id": "43cfe1d5-e814-43ca-8d9b-08abd661618c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "bcbf8681-8d24-447b-ae5e-8d8eb396a9f8", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "9e4216ec-0008-4d94-aace-9a201e7dadb8", + "label": "bg", + "texture": { + "key": "postcards/sprites/179", + "frame": "179" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "9c57a620-99b5-46be-bdda-03fdf9f59588", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 320, + "x": 177, + "y": 487 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard180.js b/src/scenes/postcards/Postcard180.js new file mode 100644 index 00000000..7d1c7068 --- /dev/null +++ b/src/scenes/postcards/Postcard180.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard180 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/180", "180"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard180.scene b/src/scenes/postcards/Postcard180.scene new file mode 100644 index 00000000..c41687cf --- /dev/null +++ b/src/scenes/postcards/Postcard180.scene @@ -0,0 +1,45 @@ +{ + "id": "0021ee64-b48c-4314-8929-9813c1aec852", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "0837beb4-14a1-452d-84f9-1bd143eb4ba6", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "4df1eaf4-c335-4d7f-8b94-8d24a57b2ffd", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/180", + "frame": "180" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard181.js b/src/scenes/postcards/Postcard181.js new file mode 100644 index 00000000..01b72024 --- /dev/null +++ b/src/scenes/postcards/Postcard181.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard181 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/181", "181"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 383, 387); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 400; + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard181.scene b/src/scenes/postcards/Postcard181.scene new file mode 100644 index 00000000..f5f3e212 --- /dev/null +++ b/src/scenes/postcards/Postcard181.scene @@ -0,0 +1,57 @@ +{ + "id": "c84ebeb6-2b51-4176-a239-2b9fde43c972", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "ab37fc94-1321-4c84-a892-05dd8013c9cd", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "57d35f82-0bb5-4dd0-8120-ed0d03faad10", + "label": "bg", + "texture": { + "key": "postcards/sprites/181", + "frame": "181" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "da51af73-5f1f-4769-956c-c73078d9428e", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 400, + "x": 383, + "y": 387 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard182.js b/src/scenes/postcards/Postcard182.js new file mode 100644 index 00000000..deb7b840 --- /dev/null +++ b/src/scenes/postcards/Postcard182.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard182 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/182", "182"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard182.scene b/src/scenes/postcards/Postcard182.scene new file mode 100644 index 00000000..9edfe5f2 --- /dev/null +++ b/src/scenes/postcards/Postcard182.scene @@ -0,0 +1,45 @@ +{ + "id": "5a1dd8ba-7a0b-4413-b224-906ac1a7cc81", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "7cd2db7a-36c4-4732-9f27-5559294a5acd", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "12881fe4-b421-44fc-ba83-43c4528a9409", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/182", + "frame": "182" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard183.js b/src/scenes/postcards/Postcard183.js new file mode 100644 index 00000000..fa3c5784 --- /dev/null +++ b/src/scenes/postcards/Postcard183.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard183 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/183", "183"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard183.scene b/src/scenes/postcards/Postcard183.scene new file mode 100644 index 00000000..a85ad015 --- /dev/null +++ b/src/scenes/postcards/Postcard183.scene @@ -0,0 +1,45 @@ +{ + "id": "97f30d6c-d37d-4a0e-b0fa-a095fef732f5", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "2c602806-0c36-4bdf-8ccc-e9b1f0c13c5a", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "98465424-fc5d-4526-b669-a4a871c6857a", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/183", + "frame": "183" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard184.js b/src/scenes/postcards/Postcard184.js new file mode 100644 index 00000000..9e54a70f --- /dev/null +++ b/src/scenes/postcards/Postcard184.js @@ -0,0 +1,49 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard184 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.dateTxt; + /** @type {Phaser.GameObjects.Text} */ + this.penguin; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/184", "184"); + bg.setOrigin(0, 0); + this.add(bg); + + // dateTxt + const dateTxt = scene.add.text(611, 160, "", {}); + dateTxt.text = "undefined undefined, undefined"; + dateTxt.setStyle({ "color": "#09214b", "fixedWidth":304,"fontFamily": "Politica", "fontSize": "28px", "fontStyle": "bold" }); + dateTxt.setPadding({"left":5,"right":5}); + this.add(dateTxt); + + // penguin + const penguin = scene.add.text(182, 219, "", {}); + penguin.text = "undefined"; + penguin.setStyle({ "color": "#09214b", "fixedWidth":446,"fontFamily": "Politica", "fontSize": "52px", "fontStyle": "bold" }); + penguin.setPadding({"left":5,"right":5}); + this.add(penguin); + + this.dateTxt = dateTxt; + this.penguin = penguin; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard184.scene b/src/scenes/postcards/Postcard184.scene new file mode 100644 index 00000000..512b484e --- /dev/null +++ b/src/scenes/postcards/Postcard184.scene @@ -0,0 +1,79 @@ +{ + "id": "1819044b-fb48-4621-ac04-8184446b0489", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "b7bd0f9e-8560-4a93-9ed2-6de977c10351", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "9be49dba-0bdf-47d2-b86c-4792780e3ce8", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/184", + "frame": "184" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "61de43cf-e21f-45d7-a96c-40cf4f316379", + "label": "dateTxt", + "scope": "CLASS", + "components": [], + "x": 611, + "y": 160, + "text": "undefined undefined, undefined", + "fixedWidth": 304, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "Politica", + "fontSize": "28px", + "fontStyle": "bold", + "color": "#09214b" + }, + { + "type": "Text", + "id": "d32b169f-216b-40d7-8bc7-a72a6c3ca1aa", + "label": "penguin", + "scope": "CLASS", + "components": [], + "x": 182, + "y": 219, + "text": "undefined", + "fixedWidth": 446, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "Politica", + "fontSize": "52px", + "fontStyle": "bold", + "color": "#09214b" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard185.js b/src/scenes/postcards/Postcard185.js new file mode 100644 index 00000000..9eef1c06 --- /dev/null +++ b/src/scenes/postcards/Postcard185.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard185 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.puffle; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/185", "185"); + bg.setOrigin(0, 0); + this.add(bg); + + // puffle + const puffle = scene.add.text(45, 578, "", {}); + puffle.text = "undefined"; + puffle.setStyle({ "color": "#413460", "fixedWidth":874,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + puffle.setPadding({"left":5,"right":5}); + this.add(puffle); + + this.puffle = puffle; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard185.scene b/src/scenes/postcards/Postcard185.scene new file mode 100644 index 00000000..e9f08a44 --- /dev/null +++ b/src/scenes/postcards/Postcard185.scene @@ -0,0 +1,61 @@ +{ + "id": "0a66fedd-9cd7-4fb8-8bc1-3ca1385085c0", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "eb8f117f-ac17-497e-bde5-735eb4e58dcd", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "2e2e03de-d532-4da7-b106-d36f40e28b78", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/185", + "frame": "185" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "c56116b4-7048-4cfb-b402-513ba082aafc", + "label": "puffle", + "scope": "CLASS", + "components": [], + "x": 45, + "y": 578, + "text": "undefined", + "fixedWidth": 874, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#413460" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard186.js b/src/scenes/postcards/Postcard186.js new file mode 100644 index 00000000..90f1837b --- /dev/null +++ b/src/scenes/postcards/Postcard186.js @@ -0,0 +1,37 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard186 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/186", "186"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 528, 105); + this.add(goToButton); + + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard186.scene b/src/scenes/postcards/Postcard186.scene new file mode 100644 index 00000000..e847d727 --- /dev/null +++ b/src/scenes/postcards/Postcard186.scene @@ -0,0 +1,55 @@ +{ + "id": "dae72726-eea5-4277-b10a-5327f5bdd5bd", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "8be14059-2a36-419d-8e16-457cebd9d122", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "7da29dba-080e-464d-a5ed-64ab5d266d06", + "label": "bg", + "texture": { + "key": "postcards/sprites/186", + "frame": "186" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "059f1455-7ddd-4cb7-b70f-3e2495aeca76", + "unlock": [ + "x", + "y" + ], + "label": "goToButton", + "scope": "CLASS", + "x": 528, + "y": 105 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard19.js b/src/scenes/postcards/Postcard19.js new file mode 100644 index 00000000..6a6a135b --- /dev/null +++ b/src/scenes/postcards/Postcard19.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard19 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/19", "19"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(562, 599, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard19.scene b/src/scenes/postcards/Postcard19.scene new file mode 100644 index 00000000..0042ff40 --- /dev/null +++ b/src/scenes/postcards/Postcard19.scene @@ -0,0 +1,61 @@ +{ + "id": "c36155ca-7a77-4b9b-9735-8dfa6121984c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "86ec2c9f-073b-4e46-b06d-546abd7275ff", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "0507f160-79ef-4015-9051-9cf6087ab257", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/19", + "frame": "19" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "85319b5d-b44d-4b7e-b3eb-98df0331bebb", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 562, + "y": 599, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard2.js b/src/scenes/postcards/Postcard2.js new file mode 100644 index 00000000..39bd1883 --- /dev/null +++ b/src/scenes/postcards/Postcard2.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard2 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/2", "2"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(142, 604, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard2.scene b/src/scenes/postcards/Postcard2.scene new file mode 100644 index 00000000..ae05a0b6 --- /dev/null +++ b/src/scenes/postcards/Postcard2.scene @@ -0,0 +1,61 @@ +{ + "id": "4019dd4f-87f9-407a-a2af-64f52242751b", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "9ad1fdb0-fb50-4376-bb66-6133541a2314", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "3e357a7b-e1e8-4093-b1be-e1d7adb9558a", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/2", + "frame": "2" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "84085dfc-f12f-4093-a74e-54fa546fd605", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 142, + "y": 604, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard20.js b/src/scenes/postcards/Postcard20.js new file mode 100644 index 00000000..f20f6b06 --- /dev/null +++ b/src/scenes/postcards/Postcard20.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard20 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/20", "20"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(540, 421, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "align": "center", "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton + const goToButton = new GoToButton(scene, 719, 574); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 801; + + this.name = name; + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard20.scene b/src/scenes/postcards/Postcard20.scene new file mode 100644 index 00000000..c33339dd --- /dev/null +++ b/src/scenes/postcards/Postcard20.scene @@ -0,0 +1,73 @@ +{ + "id": "0082f781-1f5a-4f9c-8e48-3225ba935312", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "a89fa77f-565e-4cfe-84f1-9b6dfc651d6c", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "14f11625-b8c2-46f3-a817-f9686fcc66d5", + "label": "bg", + "texture": { + "key": "postcards/sprites/20", + "frame": "20" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "a42f518f-1a34-4a92-a664-e88a9c6b37fc", + "label": "name", + "scope": "CLASS", + "x": 540, + "y": 421, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "align": "center", + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "2ce37cf8-b7c9-4799-9df6-c39ed540a2ce", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 801, + "x": 719, + "y": 574 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard200.js b/src/scenes/postcards/Postcard200.js new file mode 100644 index 00000000..cc89a272 --- /dev/null +++ b/src/scenes/postcards/Postcard200.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard200 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/200", "200"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(131, 596, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton + const goToButton = new GoToButton(scene, 851, 616); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 810; + + this.name = name; + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard200.scene b/src/scenes/postcards/Postcard200.scene new file mode 100644 index 00000000..809868aa --- /dev/null +++ b/src/scenes/postcards/Postcard200.scene @@ -0,0 +1,72 @@ +{ + "id": "3d9d9d62-35e8-4c15-bbfb-cf3108c11684", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "c7a7eb26-f726-4dca-bc90-a28de2296517", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "1dc1f404-dbd2-4104-85cd-f682ac93af0b", + "label": "bg", + "texture": { + "key": "postcards/sprites/200", + "frame": "200" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "135bbeb9-d4e2-44a5-bff4-47184193b240", + "label": "name", + "scope": "CLASS", + "x": 131, + "y": 596, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#ffffff" + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "9acfcd9f-1aba-4ae1-aa89-6433149940f0", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 810, + "x": 851, + "y": 616 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard201.js b/src/scenes/postcards/Postcard201.js new file mode 100644 index 00000000..3dca8fc5 --- /dev/null +++ b/src/scenes/postcards/Postcard201.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard201 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/201", "201"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(149, 134, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":406,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard201.scene b/src/scenes/postcards/Postcard201.scene new file mode 100644 index 00000000..afe1963a --- /dev/null +++ b/src/scenes/postcards/Postcard201.scene @@ -0,0 +1,61 @@ +{ + "id": "152d8e26-a937-47f4-a21c-20795ed6ba58", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "75aabedb-3286-4dfa-b357-67f5c184dee1", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "e476a2cd-e5dd-4e34-8bca-40320be745c6", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/201", + "frame": "201" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "eb2888aa-9334-42f4-9a57-147314d8a01a", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 149, + "y": 134, + "text": "Penguin88888888", + "fixedWidth": 406, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard202.js b/src/scenes/postcards/Postcard202.js new file mode 100644 index 00000000..f1246b60 --- /dev/null +++ b/src/scenes/postcards/Postcard202.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard202 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // goToButton + const goToButton = new GoToButton(scene, 791, 582); + this.add(goToButton); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/202", "202"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(131, 604, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard202.scene b/src/scenes/postcards/Postcard202.scene new file mode 100644 index 00000000..d1fdf9a4 --- /dev/null +++ b/src/scenes/postcards/Postcard202.scene @@ -0,0 +1,72 @@ +{ + "id": "d7325ea1-4c4c-447a-84f4-a168f6673da8", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "942e84a9-d240-4b1a-921a-e7211fceabdd", + "label": "container_1", + "list": [ + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "3e88b221-4eae-406b-b328-b153eec26a22", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 791, + "y": 582 + }, + { + "type": "Image", + "id": "e27ef118-0129-4075-98aa-ec400167cb96", + "label": "bg", + "texture": { + "key": "postcards/sprites/202", + "frame": "202" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "0bfe539b-d1e8-4a4e-9308-69523fc67a22", + "label": "name", + "scope": "CLASS", + "x": 131, + "y": 604, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard203.js b/src/scenes/postcards/Postcard203.js new file mode 100644 index 00000000..51edc6cf --- /dev/null +++ b/src/scenes/postcards/Postcard203.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard203 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/203", "203"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(143, 117, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#006600", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard203.scene b/src/scenes/postcards/Postcard203.scene new file mode 100644 index 00000000..b691a463 --- /dev/null +++ b/src/scenes/postcards/Postcard203.scene @@ -0,0 +1,61 @@ +{ + "id": "4d12dbb8-6824-4d0c-8374-4441e4c597ff", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "23095619-6852-4a48-b339-81291bc4e5b0", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "3a0f691a-c5f5-4810-9110-d65988f1cc89", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/203", + "frame": "203" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "97f2a1c0-b07e-4e8d-bfd9-52f1111955f1", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 143, + "y": 117, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#006600" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard204.js b/src/scenes/postcards/Postcard204.js new file mode 100644 index 00000000..d6723db7 --- /dev/null +++ b/src/scenes/postcards/Postcard204.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard204 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/204", "204"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(152, 112, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#a76d0f", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard204.scene b/src/scenes/postcards/Postcard204.scene new file mode 100644 index 00000000..27ae40f5 --- /dev/null +++ b/src/scenes/postcards/Postcard204.scene @@ -0,0 +1,61 @@ +{ + "id": "eef5ab2a-adc5-444e-ba26-0d855ed972c2", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "14f81675-7f0f-41bd-a7e5-2ec2c66f0325", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "1306689d-2bd7-4c7b-a351-3837f351c11d", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/204", + "frame": "204" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "b818bbea-7742-4350-814e-ff47fac24469", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 152, + "y": 112, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#a76d0f" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard205.js b/src/scenes/postcards/Postcard205.js new file mode 100644 index 00000000..6f004e78 --- /dev/null +++ b/src/scenes/postcards/Postcard205.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard205 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/205", "205"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(268, 603, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#5f0000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard205.scene b/src/scenes/postcards/Postcard205.scene new file mode 100644 index 00000000..e5f18f36 --- /dev/null +++ b/src/scenes/postcards/Postcard205.scene @@ -0,0 +1,61 @@ +{ + "id": "cd9e7c75-d684-4c87-8c94-0bb6cd6f792b", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "a6db83d1-a8b7-4c11-9ac8-c00f2fb20e59", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "2d191e7f-3c11-4415-aab4-25a34ec5a485", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/205", + "frame": "205" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "907cb71e-8740-46fb-a34d-af8a2f319a95", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 268, + "y": 603, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#5f0000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard206.js b/src/scenes/postcards/Postcard206.js new file mode 100644 index 00000000..4e408f16 --- /dev/null +++ b/src/scenes/postcards/Postcard206.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard206 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // goToButton + const goToButton = new GoToButton(scene, 847, 613); + this.add(goToButton); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/206", "206"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(160, 114, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard206.scene b/src/scenes/postcards/Postcard206.scene new file mode 100644 index 00000000..7d0b5bdc --- /dev/null +++ b/src/scenes/postcards/Postcard206.scene @@ -0,0 +1,72 @@ +{ + "id": "032bbfe8-06dc-48b8-833e-dbbb327dba67", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "8e57cc3f-79d7-4980-babd-555607f2c750", + "label": "container_1", + "list": [ + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "5d802bc7-1655-45cc-bc81-faa9c8236364", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 847, + "y": 613 + }, + { + "type": "Image", + "id": "b6b1333f-98dd-4eb6-9be1-9a6211151fc5", + "label": "bg", + "texture": { + "key": "postcards/sprites/206", + "frame": "206" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "62e3e2df-c45e-4c48-b638-bab484c0d0c1", + "label": "name", + "scope": "CLASS", + "x": 160, + "y": 114, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard207.js b/src/scenes/postcards/Postcard207.js new file mode 100644 index 00000000..a01705e6 --- /dev/null +++ b/src/scenes/postcards/Postcard207.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard207 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/207", "207"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(131, 605, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#0000b5", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard207.scene b/src/scenes/postcards/Postcard207.scene new file mode 100644 index 00000000..e5ed1fc2 --- /dev/null +++ b/src/scenes/postcards/Postcard207.scene @@ -0,0 +1,61 @@ +{ + "id": "1c7e61e7-7f31-4000-89bb-e37095c8c234", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "c0177df0-e63b-461a-a23c-4baccb85d902", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "f696a8b5-13bc-436f-80dc-1dae635bb90a", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/207", + "frame": "207" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "dc56ec94-d91f-44d5-bde4-5c285d10b3f9", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 131, + "y": 605, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#0000b5" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard208.js b/src/scenes/postcards/Postcard208.js new file mode 100644 index 00000000..cd835e49 --- /dev/null +++ b/src/scenes/postcards/Postcard208.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard208 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/208", "208"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(566, 611, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#9a0000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard208.scene b/src/scenes/postcards/Postcard208.scene new file mode 100644 index 00000000..79fd4d05 --- /dev/null +++ b/src/scenes/postcards/Postcard208.scene @@ -0,0 +1,61 @@ +{ + "id": "192d089f-bff5-449a-8bde-dbab5903ed03", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "92982950-584b-4552-83b4-2d4d8e81099d", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "7f5cd83f-10ff-448c-937c-a5e5624a6d13", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/208", + "frame": "208" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "123296bb-84e0-48aa-8840-c1866ff58ade", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 566, + "y": 611, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#9a0000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard209.js b/src/scenes/postcards/Postcard209.js new file mode 100644 index 00000000..d9f8cc04 --- /dev/null +++ b/src/scenes/postcards/Postcard209.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard209 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/209", "209"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(150, 591, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#0c3f00", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard209.scene b/src/scenes/postcards/Postcard209.scene new file mode 100644 index 00000000..7236a207 --- /dev/null +++ b/src/scenes/postcards/Postcard209.scene @@ -0,0 +1,61 @@ +{ + "id": "997af25c-4b2c-4f95-b1e7-076f76a1dd36", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "3b0d8b4e-a5a3-46e2-ba72-9b14b82dad9b", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "b5b72d78-2d4c-44b1-a13b-76eeb01b6d9b", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/209", + "frame": "209" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "51dcffb2-56b1-4e3f-853e-2f577031e9d5", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 150, + "y": 591, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#0c3f00" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard21.js b/src/scenes/postcards/Postcard21.js new file mode 100644 index 00000000..f328c748 --- /dev/null +++ b/src/scenes/postcards/Postcard21.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard21 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/21", "21"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(44, 558, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000066", "fixedWidth":424,"fontFamily": "CCFaceFront", "fontSize": "40px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton + const goToButton = new GoToButton(scene, 847, 616); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 806; + + this.name = name; + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard21.scene b/src/scenes/postcards/Postcard21.scene new file mode 100644 index 00000000..333f6dba --- /dev/null +++ b/src/scenes/postcards/Postcard21.scene @@ -0,0 +1,72 @@ +{ + "id": "09150e11-f8ce-4d61-9d9b-f4c0b000f4d6", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "3193a897-8a6b-49a4-ab08-d46a822dabae", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "4dc64ba2-44c4-4741-ad6a-e1feb61b5e0d", + "label": "bg", + "texture": { + "key": "postcards/sprites/21", + "frame": "21" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "4387876f-aebb-4650-b63a-06598da62e4f", + "label": "name", + "scope": "CLASS", + "x": 44, + "y": 558, + "text": "penguin88888888", + "fixedWidth": 424, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "40px", + "color": "#000066" + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "ca8c0b40-7163-44ed-aee7-6a32fa673b74", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 806, + "x": 847, + "y": 616 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard210.js b/src/scenes/postcards/Postcard210.js new file mode 100644 index 00000000..f71bd42c --- /dev/null +++ b/src/scenes/postcards/Postcard210.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard210 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/210", "210"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(563, 596, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#323a74", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard210.scene b/src/scenes/postcards/Postcard210.scene new file mode 100644 index 00000000..9f600b19 --- /dev/null +++ b/src/scenes/postcards/Postcard210.scene @@ -0,0 +1,61 @@ +{ + "id": "e07affa7-2c2f-4a6d-85f6-de6b32675c3a", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "b342852c-a475-4b38-b5c7-b9d5f98b15c3", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "329ef651-a0a3-4f48-9674-cd17caa0dff1", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/210", + "frame": "210" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "dbcfae57-a1b0-4de8-884a-77f081ad7213", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 563, + "y": 596, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#323a74" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard211.js b/src/scenes/postcards/Postcard211.js new file mode 100644 index 00000000..2abfbd14 --- /dev/null +++ b/src/scenes/postcards/Postcard211.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard211 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // goToButton + const goToButton = new GoToButton(scene, 847, 613); + this.add(goToButton); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/211", "211"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(142, 595, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#512957", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard211.scene b/src/scenes/postcards/Postcard211.scene new file mode 100644 index 00000000..de620a52 --- /dev/null +++ b/src/scenes/postcards/Postcard211.scene @@ -0,0 +1,72 @@ +{ + "id": "cc4fff28-6a71-417c-bdc6-897a4c1bd40a", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "8711b880-59e3-495b-97f8-7d52141384e8", + "label": "container_1", + "list": [ + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "c2e58c76-4b15-497f-a388-9ed9a741b920", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 847, + "y": 613 + }, + { + "type": "Image", + "id": "5443e6a9-f855-48ae-b9a0-6366f92eb66c", + "label": "bg", + "texture": { + "key": "postcards/sprites/211", + "frame": "211" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "c211fdb3-a4bf-46c4-bcab-317b0f9d9747", + "label": "name", + "scope": "CLASS", + "x": 142, + "y": 595, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#512957" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard212.js b/src/scenes/postcards/Postcard212.js new file mode 100644 index 00000000..9a60b9a8 --- /dev/null +++ b/src/scenes/postcards/Postcard212.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard212 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/212", "212"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(140, 595, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#c94340", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton + const goToButton = new GoToButton(scene, 831, 611); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 802; + + this.name = name; + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard212.scene b/src/scenes/postcards/Postcard212.scene new file mode 100644 index 00000000..74ca6c23 --- /dev/null +++ b/src/scenes/postcards/Postcard212.scene @@ -0,0 +1,72 @@ +{ + "id": "fcf1352d-e070-4e3d-89b0-e1b098dcef0b", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "f7873cce-d365-49da-8cf6-b384af8f230e", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "6e52e116-1a71-45e2-8b5d-83a277620806", + "label": "bg", + "texture": { + "key": "postcards/sprites/212", + "frame": "212" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "d3ebfde4-dc54-4bb2-996a-17493d31680a", + "label": "name", + "scope": "CLASS", + "x": 140, + "y": 595, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#c94340" + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "745dc74d-1b0e-4709-b7d3-df457443f94e", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 802, + "x": 831, + "y": 611 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard213.js b/src/scenes/postcards/Postcard213.js new file mode 100644 index 00000000..1a1411e3 --- /dev/null +++ b/src/scenes/postcards/Postcard213.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard213 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/213", "213"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(152, 147, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard213.scene b/src/scenes/postcards/Postcard213.scene new file mode 100644 index 00000000..442cd4d3 --- /dev/null +++ b/src/scenes/postcards/Postcard213.scene @@ -0,0 +1,61 @@ +{ + "id": "912e50f4-deb8-489c-b2de-22e8d24ba26c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "5abed7d9-c33d-497d-990f-1e6f23294a8f", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "a7093b32-3f9c-4b72-bd43-6ab55d7bd775", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/213", + "frame": "213" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "ed9e46ce-6c83-4bcf-addf-0dd5257feb23", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 152, + "y": 147, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard216.js b/src/scenes/postcards/Postcard216.js new file mode 100644 index 00000000..6dc1a07e --- /dev/null +++ b/src/scenes/postcards/Postcard216.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard216 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/216", "216"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(182, 542, "", {}); + name.visible = false; + name.text = "penguin88888888"; + name.setStyle({ "color": "#a60008", "fixedWidth":266,"fontFamily": "CCFaceFront", "fontSize": "24px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard216.scene b/src/scenes/postcards/Postcard216.scene new file mode 100644 index 00000000..fd7ed8d3 --- /dev/null +++ b/src/scenes/postcards/Postcard216.scene @@ -0,0 +1,62 @@ +{ + "id": "21c7224e-e809-4735-bafd-07385de02367", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "6c8ea579-068a-4b04-b04f-93cd0190cd60", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "335a8aec-abcd-4903-9391-e527c6ae8bbc", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/216", + "frame": "216" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "99d086e1-27e0-43a3-a6e6-f91de2416b57", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 182, + "y": 542, + "visible": false, + "text": "penguin88888888", + "fixedWidth": 266, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "24px", + "color": "#a60008" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard217.js b/src/scenes/postcards/Postcard217.js new file mode 100644 index 00000000..9b5da05e --- /dev/null +++ b/src/scenes/postcards/Postcard217.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard217 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/217", "217"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(136, 588, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#592d00", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard217.scene b/src/scenes/postcards/Postcard217.scene new file mode 100644 index 00000000..d4fec102 --- /dev/null +++ b/src/scenes/postcards/Postcard217.scene @@ -0,0 +1,61 @@ +{ + "id": "4c724865-2116-4057-a137-f3526ccc2437", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "bb7ec3a8-0975-45b2-b7a1-6c1f1c248e08", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "93ea6556-b872-4bd2-a9ae-3b2773db2bf7", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/217", + "frame": "217" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "a6c4f071-1ac5-490d-88cb-250f4090541d", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 136, + "y": 588, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#592d00" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard218.js b/src/scenes/postcards/Postcard218.js new file mode 100644 index 00000000..a531be84 --- /dev/null +++ b/src/scenes/postcards/Postcard218.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard218 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/218", "218"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(148, 149, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard218.scene b/src/scenes/postcards/Postcard218.scene new file mode 100644 index 00000000..fa51ff39 --- /dev/null +++ b/src/scenes/postcards/Postcard218.scene @@ -0,0 +1,61 @@ +{ + "id": "2fd0cbdf-a821-4253-8a02-7b955034b84f", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "17a668f9-74aa-4c38-8f2b-18253c0523e8", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "29d08b88-d7d5-4ec3-95b0-2f1478fdc009", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/218", + "frame": "218" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "5918da3e-7fe0-40ac-9230-3218ec8b4b06", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 148, + "y": 149, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard219.js b/src/scenes/postcards/Postcard219.js new file mode 100644 index 00000000..3e368664 --- /dev/null +++ b/src/scenes/postcards/Postcard219.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard219 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/219", "219"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(562, 260, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":326,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard219.scene b/src/scenes/postcards/Postcard219.scene new file mode 100644 index 00000000..3dbadc9b --- /dev/null +++ b/src/scenes/postcards/Postcard219.scene @@ -0,0 +1,61 @@ +{ + "id": "d0ac0536-877e-4219-baab-a41660bcd1e0", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "c96df97d-9108-4d08-aab4-75bba69079e6", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "f7cf077d-caad-4a4e-915c-3e45e979fcba", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/219", + "frame": "219" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "5382add6-d671-4268-aa79-1d0b94febae3", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 562, + "y": 260, + "text": "penguin88888888", + "fixedWidth": 326, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard22.js b/src/scenes/postcards/Postcard22.js new file mode 100644 index 00000000..91551fdd --- /dev/null +++ b/src/scenes/postcards/Postcard22.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard22 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/22", "22"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(672, 593, "", {}); + name.text = "TEST NAME123"; + name.setStyle({ "color": "#ffffff", "fixedWidth":280,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard22.scene b/src/scenes/postcards/Postcard22.scene new file mode 100644 index 00000000..4d8188f2 --- /dev/null +++ b/src/scenes/postcards/Postcard22.scene @@ -0,0 +1,61 @@ +{ + "id": "3a2d86cd-aca1-455a-bf6e-ea6e173f5f0c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "bb2bf3c8-d7eb-4bbf-bcc4-29fb5aef87e3", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "d84e9540-698a-48dd-8d0c-dee8009024f1", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/22", + "frame": "22" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "ac3c4ca9-6930-42ff-94c1-096ae019baa5", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 672, + "y": 593, + "text": "TEST NAME123", + "fixedWidth": 280, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard220.js b/src/scenes/postcards/Postcard220.js new file mode 100644 index 00000000..89e0e774 --- /dev/null +++ b/src/scenes/postcards/Postcard220.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard220 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/220", "220"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(160, 580, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard220.scene b/src/scenes/postcards/Postcard220.scene new file mode 100644 index 00000000..4345f0b6 --- /dev/null +++ b/src/scenes/postcards/Postcard220.scene @@ -0,0 +1,61 @@ +{ + "id": "6773e849-4d98-493f-b756-8a9e31704785", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "761ada99-a5e9-49f9-9651-9564319951d7", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "87379ae9-e4f4-4e76-9fe2-e5fd5e6cf40e", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/220", + "frame": "220" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "9ff0f145-5071-4ed3-9c36-838370823720", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 160, + "y": 580, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard221.js b/src/scenes/postcards/Postcard221.js new file mode 100644 index 00000000..2f20c2e3 --- /dev/null +++ b/src/scenes/postcards/Postcard221.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard221 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/221", "221"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(152, 586, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#555977", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard221.scene b/src/scenes/postcards/Postcard221.scene new file mode 100644 index 00000000..36da3ff7 --- /dev/null +++ b/src/scenes/postcards/Postcard221.scene @@ -0,0 +1,61 @@ +{ + "id": "7290ed11-8bfe-475c-bffa-655f561c0be0", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "ececb6c2-16b1-42be-ab64-0084bf30db99", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "23818401-9cd4-48c0-b979-6c79ce4c8111", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/221", + "frame": "221" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "b6790f87-d5f9-40ac-b735-0a575f1e399d", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 152, + "y": 586, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#555977" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard222.js b/src/scenes/postcards/Postcard222.js new file mode 100644 index 00000000..ade37c88 --- /dev/null +++ b/src/scenes/postcards/Postcard222.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard222 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/222", "222"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(142, 606, "", {}); + name.text = "PENGUIN88888888"; + name.setStyle({ "color": "#660099", "fixedWidth":374,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard222.scene b/src/scenes/postcards/Postcard222.scene new file mode 100644 index 00000000..31514106 --- /dev/null +++ b/src/scenes/postcards/Postcard222.scene @@ -0,0 +1,61 @@ +{ + "id": "d520cf76-b33a-4a94-b340-2c3c6bb3d0d8", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "c5e47205-b652-4f34-9400-7fac250c145f", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "22dda839-cce1-4b9e-ae8e-b2d5401f03d5", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/222", + "frame": "222" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "bd159c3f-5398-4333-a967-aa74f687528f", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 142, + "y": 606, + "text": "PENGUIN88888888", + "fixedWidth": 374, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#660099" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard223.js b/src/scenes/postcards/Postcard223.js new file mode 100644 index 00000000..8e729b4e --- /dev/null +++ b/src/scenes/postcards/Postcard223.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard223 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/223", "223"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(143, 593, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard223.scene b/src/scenes/postcards/Postcard223.scene new file mode 100644 index 00000000..a466cb87 --- /dev/null +++ b/src/scenes/postcards/Postcard223.scene @@ -0,0 +1,61 @@ +{ + "id": "f13a5bff-f076-4694-a4d8-7e7fe8f37246", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "9bc6bb55-0775-4edd-a8f4-01b80dfd6448", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "1ad881d8-27db-4539-a07a-e71f86962ef6", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/223", + "frame": "223" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "ce79a4d4-5ec2-463d-b278-6c6139fddd41", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 143, + "y": 593, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard224.js b/src/scenes/postcards/Postcard224.js new file mode 100644 index 00000000..1e28a654 --- /dev/null +++ b/src/scenes/postcards/Postcard224.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard224 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/224", "224"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(143, 583, "", {}); + name.text = "Penguin88"; + name.setStyle({ "color": "#0052af", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard224.scene b/src/scenes/postcards/Postcard224.scene new file mode 100644 index 00000000..92419774 --- /dev/null +++ b/src/scenes/postcards/Postcard224.scene @@ -0,0 +1,61 @@ +{ + "id": "1f3e4225-cc1f-4f88-9be6-6cc4cac28240", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "4a21fca0-a7c3-4844-b202-209be06d3ede", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "aaf1f243-8ee6-4ac6-8466-b042229fa0ff", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/224", + "frame": "224" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "d9924ba5-309c-4774-9813-b757bc14e9f1", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 143, + "y": 583, + "text": "Penguin88", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#0052af" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard225.js b/src/scenes/postcards/Postcard225.js new file mode 100644 index 00000000..65529876 --- /dev/null +++ b/src/scenes/postcards/Postcard225.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard225 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/225", "225"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(132, 162, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard225.scene b/src/scenes/postcards/Postcard225.scene new file mode 100644 index 00000000..f6ec5c7d --- /dev/null +++ b/src/scenes/postcards/Postcard225.scene @@ -0,0 +1,61 @@ +{ + "id": "f3bc4530-3677-4588-af42-6eca70bb6c07", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "67b72ad2-b2a0-4705-90cb-6766dc2225c6", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "b49be915-db4e-41ed-b951-9185c150caf9", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/225", + "frame": "225" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "f46fb4e4-97b9-4a1d-a19a-226645fca7f5", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 132, + "y": 162, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard226.js b/src/scenes/postcards/Postcard226.js new file mode 100644 index 00000000..57baa9b9 --- /dev/null +++ b/src/scenes/postcards/Postcard226.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard226 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/226", "226"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(135, 107, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard226.scene b/src/scenes/postcards/Postcard226.scene new file mode 100644 index 00000000..88f6018c --- /dev/null +++ b/src/scenes/postcards/Postcard226.scene @@ -0,0 +1,61 @@ +{ + "id": "dac51000-482f-4d2a-bfd0-59e27cdaf1ac", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "ebfe0172-86e5-47c3-86bc-b12ff27fbddd", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "1eaf4d59-abfa-4b8d-ab61-fe2ecfaec886", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/226", + "frame": "226" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "2193e183-76af-4f5e-8eac-8292f94a26a6", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 135, + "y": 107, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard227.js b/src/scenes/postcards/Postcard227.js new file mode 100644 index 00000000..8fb8c665 --- /dev/null +++ b/src/scenes/postcards/Postcard227.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard227 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/227", "227"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(610, 580, "", {}); + name.text = "Penguin8888888"; + name.setStyle({ "color": "#3e2179", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard227.scene b/src/scenes/postcards/Postcard227.scene new file mode 100644 index 00000000..0ce52a16 --- /dev/null +++ b/src/scenes/postcards/Postcard227.scene @@ -0,0 +1,61 @@ +{ + "id": "ecb6bc72-458f-4491-bbc5-ae944f1b45af", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "0b2e9628-1790-447d-ad51-209592834d0d", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "3fe61d19-9a29-42da-9c89-2a7ff87a1121", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/227", + "frame": "227" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "640162e6-6795-41f8-a8f6-c5f1076b67b1", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 610, + "y": 580, + "text": "Penguin8888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#3e2179" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard228.js b/src/scenes/postcards/Postcard228.js new file mode 100644 index 00000000..bed3fd5b --- /dev/null +++ b/src/scenes/postcards/Postcard228.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard228 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/228", "228"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(145, 109, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard228.scene b/src/scenes/postcards/Postcard228.scene new file mode 100644 index 00000000..ebd8f9b2 --- /dev/null +++ b/src/scenes/postcards/Postcard228.scene @@ -0,0 +1,61 @@ +{ + "id": "f992f0bb-df2b-4321-afdf-ac84ad4b8429", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "05b4d88d-867d-4e0c-8441-61d7b3b64131", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "a706ffc6-7f78-4feb-98b2-adb53091554e", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/228", + "frame": "228" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "8ff49830-e1ba-493a-a83a-b19531fab4c1", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 145, + "y": 109, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard229.js b/src/scenes/postcards/Postcard229.js new file mode 100644 index 00000000..dea72e66 --- /dev/null +++ b/src/scenes/postcards/Postcard229.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard229 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // goToButton + const goToButton = new GoToButton(scene, 844, 606); + this.add(goToButton); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/229", "229"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(140, 589, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#465275", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 230; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard229.scene b/src/scenes/postcards/Postcard229.scene new file mode 100644 index 00000000..0725f9cb --- /dev/null +++ b/src/scenes/postcards/Postcard229.scene @@ -0,0 +1,72 @@ +{ + "id": "18e21f56-5060-41b6-99aa-c66a90f59cc3", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "53a32ed3-3b2a-4a08-8e5c-e66efd4ebd3e", + "label": "container_1", + "list": [ + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "ff0b5785-5b16-4844-8c71-86795c423b80", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 230, + "x": 844, + "y": 606 + }, + { + "type": "Image", + "id": "9f1fe5e5-e4ca-41b1-9133-bb97b0654d85", + "label": "bg", + "texture": { + "key": "postcards/sprites/229", + "frame": "229" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "4d41fdde-851f-464c-851c-d9a25aa7ff0d", + "label": "name", + "scope": "CLASS", + "x": 140, + "y": 589, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#465275" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard23.js b/src/scenes/postcards/Postcard23.js new file mode 100644 index 00000000..e7c1ceb2 --- /dev/null +++ b/src/scenes/postcards/Postcard23.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard23 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/23", "23"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(299, 57, "", {}); + name.text = "TEST NAME123"; + name.setStyle({ "align": "right", "color": "#ffffff", "fixedWidth":280,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard23.scene b/src/scenes/postcards/Postcard23.scene new file mode 100644 index 00000000..837358b4 --- /dev/null +++ b/src/scenes/postcards/Postcard23.scene @@ -0,0 +1,62 @@ +{ + "id": "25e36f8a-c37d-4daf-b6b7-4b101daba9b8", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "303bc76e-9fac-4294-9920-cf7839854d53", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "7a3ae86a-1c93-4f17-82d6-ca84f079301a", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/23", + "frame": "23" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "4842adcd-9604-44e3-9665-64264816856b", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 299, + "y": 57, + "text": "TEST NAME123", + "fixedWidth": 280, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard230.js b/src/scenes/postcards/Postcard230.js new file mode 100644 index 00000000..7b67ece1 --- /dev/null +++ b/src/scenes/postcards/Postcard230.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard230 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/230", "230"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(138, 576, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#565865", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard230.scene b/src/scenes/postcards/Postcard230.scene new file mode 100644 index 00000000..c4a6b1f6 --- /dev/null +++ b/src/scenes/postcards/Postcard230.scene @@ -0,0 +1,61 @@ +{ + "id": "1234ada2-e311-4e19-be01-9e3cdd6bdc70", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "5d641d45-1dd2-4c59-b899-764b312e7fed", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "aeaf38db-4a04-48c3-a896-3be11a66865f", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/230", + "frame": "230" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "36291de5-a938-4d04-a5e6-bac109841948", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 138, + "y": 576, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#565865" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard231.js b/src/scenes/postcards/Postcard231.js new file mode 100644 index 00000000..defdf6d4 --- /dev/null +++ b/src/scenes/postcards/Postcard231.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard231 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/231", "231"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(145, 610, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#330066", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard231.scene b/src/scenes/postcards/Postcard231.scene new file mode 100644 index 00000000..5c4c7d79 --- /dev/null +++ b/src/scenes/postcards/Postcard231.scene @@ -0,0 +1,61 @@ +{ + "id": "858fc0ec-2eef-4969-b791-31935532fae0", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "86167b76-5fe4-4671-a915-4fd9d3746e93", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "29a1659b-5637-49c9-a8d7-3a73a2035b0c", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/231", + "frame": "231" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "17309678-76b0-47b1-a266-3bcc18b89547", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 145, + "y": 610, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#330066" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard232.js b/src/scenes/postcards/Postcard232.js new file mode 100644 index 00000000..acbd6b08 --- /dev/null +++ b/src/scenes/postcards/Postcard232.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard232 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/232", "232"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(509, 582, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#fff29f", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard232.scene b/src/scenes/postcards/Postcard232.scene new file mode 100644 index 00000000..a2a77161 --- /dev/null +++ b/src/scenes/postcards/Postcard232.scene @@ -0,0 +1,61 @@ +{ + "id": "3baef4bb-e2b8-4d2f-af7f-6fd13fdf3268", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "71b8e550-136b-4b39-9b65-55a920ea30c6", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "494bdc31-b7af-4360-b787-8df6568fd8a8", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/232", + "frame": "232" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "846b4750-0c2e-453f-ba56-1c8ac456a1c2", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 509, + "y": 582, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#fff29f" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard233.js b/src/scenes/postcards/Postcard233.js new file mode 100644 index 00000000..91471234 --- /dev/null +++ b/src/scenes/postcards/Postcard233.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard233 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/233", "233"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 846, 611); + this.add(goToButton); + + // name + const name = scene.add.text(145, 596, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 806; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard233.scene b/src/scenes/postcards/Postcard233.scene new file mode 100644 index 00000000..d24544a3 --- /dev/null +++ b/src/scenes/postcards/Postcard233.scene @@ -0,0 +1,72 @@ +{ + "id": "88056df6-2ead-4f57-96c2-dd111e0a0c2a", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "be61aec0-871f-46ef-af2e-05967f5a6e51", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "dd201d00-c246-4187-8139-3e07dd6549c3", + "label": "bg", + "texture": { + "key": "postcards/sprites/233", + "frame": "233" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "51f534b6-f945-4261-a64f-a95d8644310d", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 806, + "x": 846, + "y": 611 + }, + { + "type": "Text", + "id": "f846dd29-9352-4072-bc21-145bf708a710", + "label": "name", + "scope": "CLASS", + "x": 145, + "y": 596, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard234.js b/src/scenes/postcards/Postcard234.js new file mode 100644 index 00000000..ebe4dd0d --- /dev/null +++ b/src/scenes/postcards/Postcard234.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard234 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/234", "234"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(146, 574, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard234.scene b/src/scenes/postcards/Postcard234.scene new file mode 100644 index 00000000..5d7168dc --- /dev/null +++ b/src/scenes/postcards/Postcard234.scene @@ -0,0 +1,61 @@ +{ + "id": "9a781b90-0cdc-4b59-809a-5a8799d3ccdf", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "465087d4-9e68-493e-bbf5-8b57073065c6", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "7e33587b-233e-4f64-b388-c46f9d104ac5", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/234", + "frame": "234" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "67b21459-0098-41fa-9a24-69fc2c96e96e", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 146, + "y": 574, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard235.js b/src/scenes/postcards/Postcard235.js new file mode 100644 index 00000000..88d1faf6 --- /dev/null +++ b/src/scenes/postcards/Postcard235.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard235 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/235", "235"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(585, 606, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard235.scene b/src/scenes/postcards/Postcard235.scene new file mode 100644 index 00000000..af3181d9 --- /dev/null +++ b/src/scenes/postcards/Postcard235.scene @@ -0,0 +1,61 @@ +{ + "id": "46f4c551-088f-4b3d-b712-226163e3af1d", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "1dd0a03d-77df-4178-9af9-64a08027de98", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "f7c044ce-3f7b-42d5-ae58-b266958f1044", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/235", + "frame": "235" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "c6d5f9c1-1260-46de-b7df-60ad2a0ba50b", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 585, + "y": 606, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard24.js b/src/scenes/postcards/Postcard24.js new file mode 100644 index 00000000..926bc480 --- /dev/null +++ b/src/scenes/postcards/Postcard24.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard24 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/24", "24"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(557, 633, "", {}); + name.text = "penguin888888888"; + name.setStyle({ "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard24.scene b/src/scenes/postcards/Postcard24.scene new file mode 100644 index 00000000..b162f63d --- /dev/null +++ b/src/scenes/postcards/Postcard24.scene @@ -0,0 +1,61 @@ +{ + "id": "0182ae35-5728-4a1f-9ebf-f2695d2c134a", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "0469525c-d44b-451b-927c-1212779bc8d6", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "be7f1d89-0cb5-4162-a0ba-434721f63b14", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/24", + "frame": "24" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "1b1a892d-a7d7-4c89-af26-69f357a07b6f", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 557, + "y": 633, + "text": "penguin888888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard25.js b/src/scenes/postcards/Postcard25.js new file mode 100644 index 00000000..a9644d1d --- /dev/null +++ b/src/scenes/postcards/Postcard25.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard25 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/25", "25"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(136, 130, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard25.scene b/src/scenes/postcards/Postcard25.scene new file mode 100644 index 00000000..0c0f8bd0 --- /dev/null +++ b/src/scenes/postcards/Postcard25.scene @@ -0,0 +1,61 @@ +{ + "id": "78cdec92-7aa8-4585-b89f-bc5deaab1cad", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "5cbabce2-0bf4-4be5-b7ee-c2d51c809dbc", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "3426d8de-93d5-4d03-8c76-5cbfb9ed21fb", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/25", + "frame": "25" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "debd65c1-727b-4a23-b85b-8fca9ff92864", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 136, + "y": 130, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard26.js b/src/scenes/postcards/Postcard26.js new file mode 100644 index 00000000..3338d0c9 --- /dev/null +++ b/src/scenes/postcards/Postcard26.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard26 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/26", "26"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(141, 132, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard26.scene b/src/scenes/postcards/Postcard26.scene new file mode 100644 index 00000000..e776ec48 --- /dev/null +++ b/src/scenes/postcards/Postcard26.scene @@ -0,0 +1,61 @@ +{ + "id": "350afaf5-d075-44b7-9313-40b8eef46fa5", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "a900b4f1-40e1-4bdc-bdca-a6182a8967c3", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "2755dc08-d5c6-4a74-975f-2547496746bb", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/26", + "frame": "26" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "140b39dc-1f99-47dc-931d-029ee4793654", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 141, + "y": 132, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard27.js b/src/scenes/postcards/Postcard27.js new file mode 100644 index 00000000..ba8d5140 --- /dev/null +++ b/src/scenes/postcards/Postcard27.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard27 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/27", "27"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(121, 604, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#0052af", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard27.scene b/src/scenes/postcards/Postcard27.scene new file mode 100644 index 00000000..8cd703f8 --- /dev/null +++ b/src/scenes/postcards/Postcard27.scene @@ -0,0 +1,61 @@ +{ + "id": "1cff416b-dad9-40fd-bc9e-3a04497d3864", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "f19cb543-e6e1-43b1-92dc-b9ddceff85b4", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "8434ddd9-b7ff-4ed9-a31f-918ca24eceee", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/27", + "frame": "27" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "421c0798-5784-4f6e-b10d-69745a6287dc", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 121, + "y": 604, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#0052af" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard28.js b/src/scenes/postcards/Postcard28.js new file mode 100644 index 00000000..3b95fb51 --- /dev/null +++ b/src/scenes/postcards/Postcard28.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard28 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/28", "28"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 833, 608); + this.add(goToButton); + + // name + const name = scene.add.text(135, 601, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":402,"fontFamily": "CCFaceFront", "fontSize": "36px", "fontStyle": "italic" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard28.scene b/src/scenes/postcards/Postcard28.scene new file mode 100644 index 00000000..7f504e86 --- /dev/null +++ b/src/scenes/postcards/Postcard28.scene @@ -0,0 +1,73 @@ +{ + "id": "dc07d528-2221-4464-9bc4-46f537614edc", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "1ae17454-2b4b-42d4-9a71-2a41ccbbda91", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "ecc273ce-45d3-4504-8a9c-17b402af427f", + "label": "bg", + "texture": { + "key": "postcards/sprites/28", + "frame": "28" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "494add7f-5ecf-4ce2-aea8-0bd7eb5a5c6a", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 833, + "y": 608 + }, + { + "type": "Text", + "id": "38ce7278-1997-4c1b-b25c-00e40a1f7e12", + "label": "name", + "scope": "CLASS", + "x": 135, + "y": 601, + "text": "penguin88888888", + "fixedWidth": 402, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "fontStyle": "italic", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard29.js b/src/scenes/postcards/Postcard29.js new file mode 100644 index 00000000..60c3ffeb --- /dev/null +++ b/src/scenes/postcards/Postcard29.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard29 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/29", "29"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(143, 114, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton + const goToButton = new GoToButton(scene, 828, 607); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 805; + + this.name = name; + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard29.scene b/src/scenes/postcards/Postcard29.scene new file mode 100644 index 00000000..df68229c --- /dev/null +++ b/src/scenes/postcards/Postcard29.scene @@ -0,0 +1,72 @@ +{ + "id": "b9252913-c0ca-4f33-80f1-364aed9cbd3a", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "1ba71772-c1b1-4ed5-a9b1-d6a054a15b7b", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "49330658-e545-4cea-8491-074c83a018b7", + "label": "bg", + "texture": { + "key": "postcards/sprites/29", + "frame": "29" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "8766f796-2dd2-4e9f-bf79-ffa497686668", + "label": "name", + "scope": "CLASS", + "x": 143, + "y": 114, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#ffffff" + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "e1dd8dea-6c40-4128-9585-178f6f99d558", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 805, + "x": 828, + "y": 607 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard3.js b/src/scenes/postcards/Postcard3.js new file mode 100644 index 00000000..ff632cc2 --- /dev/null +++ b/src/scenes/postcards/Postcard3.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard3 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/3", "3"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 830, 594); + this.add(goToButton); + + // name + const name = scene.add.text(169, 599, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#380000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard3.scene b/src/scenes/postcards/Postcard3.scene new file mode 100644 index 00000000..8d1dd3c8 --- /dev/null +++ b/src/scenes/postcards/Postcard3.scene @@ -0,0 +1,72 @@ +{ + "id": "72d7bfe5-4fec-450a-9862-e33a46c18469", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "462afd9e-bd29-4b90-b3e2-84cc85370238", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "e5a0f98d-9478-47a8-9fc5-da6d9c73cbd7", + "label": "bg", + "texture": { + "key": "postcards/sprites/3", + "frame": "3" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "280a1f75-d7c8-4c9e-b230-da7fcee1876e", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 830, + "y": 594 + }, + { + "type": "Text", + "id": "bbb591ae-82e0-4206-8574-cf8c125fbd9e", + "label": "name", + "scope": "CLASS", + "x": 169, + "y": 599, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#380000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard30.js b/src/scenes/postcards/Postcard30.js new file mode 100644 index 00000000..37566a63 --- /dev/null +++ b/src/scenes/postcards/Postcard30.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard30 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/30", "30"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 827, 612); + this.add(goToButton); + + // name + const name = scene.add.text(155, 112, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 814; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard30.scene b/src/scenes/postcards/Postcard30.scene new file mode 100644 index 00000000..a3b28579 --- /dev/null +++ b/src/scenes/postcards/Postcard30.scene @@ -0,0 +1,72 @@ +{ + "id": "fb60b896-622a-4b4a-b318-0c52d56d5005", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "1054a412-5a7b-45f3-a5d1-db62f0aa6987", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "5debc555-988d-44f3-8916-0e99d39bd38a", + "label": "bg", + "texture": { + "key": "postcards/sprites/30", + "frame": "30" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "82c800ab-1f51-4405-9fcf-8455b20c9cff", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 814, + "x": 827, + "y": 612 + }, + { + "type": "Text", + "id": "fbd78fa7-cb6e-418c-9be5-dea3ee26282e", + "label": "name", + "scope": "CLASS", + "x": 155, + "y": 112, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard31.js b/src/scenes/postcards/Postcard31.js new file mode 100644 index 00000000..bee3e773 --- /dev/null +++ b/src/scenes/postcards/Postcard31.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard31 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/31", "31"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(303, 188, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "align": "center", "color": "#0e2828", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton + const goToButton = new GoToButton(scene, 831, 611); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.name = name; + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard31.scene b/src/scenes/postcards/Postcard31.scene new file mode 100644 index 00000000..caee1e3a --- /dev/null +++ b/src/scenes/postcards/Postcard31.scene @@ -0,0 +1,73 @@ +{ + "id": "21dc52fb-b809-46d0-ab93-3bbdb2df9145", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "260c0e8d-aaa4-4cfb-baaf-422b87135f93", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "f88df0fc-9862-4dcd-84d1-459f60791924", + "label": "bg", + "texture": { + "key": "postcards/sprites/31", + "frame": "31" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "f0051a2b-138a-46fa-a85a-b10c33df9ceb", + "label": "name", + "scope": "CLASS", + "x": 303, + "y": 188, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "align": "center", + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#0e2828" + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "4dcd4c69-f275-4961-a0bb-0bef5b3f84c9", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 831, + "y": 611 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard32.js b/src/scenes/postcards/Postcard32.js new file mode 100644 index 00000000..3447fca9 --- /dev/null +++ b/src/scenes/postcards/Postcard32.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard32 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/32", "32"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(589, 516, "", {}); + name.text = "PENGUIN88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":350,"fontFamily": "CCFaceFront", "fontSize": "30px", "fontStyle": "italic" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard32.scene b/src/scenes/postcards/Postcard32.scene new file mode 100644 index 00000000..bc9966b6 --- /dev/null +++ b/src/scenes/postcards/Postcard32.scene @@ -0,0 +1,62 @@ +{ + "id": "5f086646-5f71-4ded-9fac-1e4934b7dc92", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "fc0cf02d-bb6a-4eb1-b7f6-1cde015009a1", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "71805935-e5c8-4e84-9857-53ed7271c02f", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/32", + "frame": "32" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "d8374236-852f-4e6c-b825-c84cb81b0342", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 589, + "y": 516, + "text": "PENGUIN88888888", + "fixedWidth": 350, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "fontStyle": "italic", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard33.js b/src/scenes/postcards/Postcard33.js new file mode 100644 index 00000000..b820950f --- /dev/null +++ b/src/scenes/postcards/Postcard33.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard33 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/33", "33"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 481, 601); + this.add(goToButton); + + // name + const name = scene.add.text(67, 495, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#0e2828", "fixedWidth":464,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 800; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard33.scene b/src/scenes/postcards/Postcard33.scene new file mode 100644 index 00000000..7932233c --- /dev/null +++ b/src/scenes/postcards/Postcard33.scene @@ -0,0 +1,72 @@ +{ + "id": "070ccd3b-7093-4dee-af58-5954c256326c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "5eb578e8-c0ae-4caa-a315-3193e0a0f130", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "9b45aa7c-c621-46fb-bbac-7c34cf0647b7", + "label": "bg", + "texture": { + "key": "postcards/sprites/33", + "frame": "33" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "0588ace7-1a5e-4f35-ad44-383568f6e09d", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 800, + "x": 481, + "y": 601 + }, + { + "type": "Text", + "id": "abdfb040-bb19-4fd7-8127-b47ecfeb9a2c", + "label": "name", + "scope": "CLASS", + "x": 67, + "y": 495, + "text": "penguin88888888", + "fixedWidth": 464, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#0e2828" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard34.js b/src/scenes/postcards/Postcard34.js new file mode 100644 index 00000000..a17f4ed0 --- /dev/null +++ b/src/scenes/postcards/Postcard34.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard34 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/34", "34"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 845, 619); + this.add(goToButton); + + // name + const name = scene.add.text(136, 597, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "38px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 808; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard34.scene b/src/scenes/postcards/Postcard34.scene new file mode 100644 index 00000000..01a8b5e8 --- /dev/null +++ b/src/scenes/postcards/Postcard34.scene @@ -0,0 +1,72 @@ +{ + "id": "c2e16947-e8b4-465f-8094-9027eb20ddbf", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "b663f9d2-b7c1-4194-a79f-206894a1a312", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "d3bab194-d978-4114-8322-2630a41f3366", + "label": "bg", + "texture": { + "key": "postcards/sprites/34", + "frame": "34" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "2a6a5a04-ed49-4508-9982-2a86df922b34", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 808, + "x": 845, + "y": 619 + }, + { + "type": "Text", + "id": "ca4d99a9-ee03-412a-b477-bdce9e873890", + "label": "name", + "scope": "CLASS", + "x": 136, + "y": 597, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "38px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard35.js b/src/scenes/postcards/Postcard35.js new file mode 100644 index 00000000..77382a52 --- /dev/null +++ b/src/scenes/postcards/Postcard35.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard35 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // goToButton + const goToButton = new GoToButton(scene, 847, 613); + this.add(goToButton); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/35", "35"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(137, 111, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":420,"fontFamily": "CCFaceFront", "fontSize": "40px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard35.scene b/src/scenes/postcards/Postcard35.scene new file mode 100644 index 00000000..dce71232 --- /dev/null +++ b/src/scenes/postcards/Postcard35.scene @@ -0,0 +1,72 @@ +{ + "id": "a8a1001e-7f2d-4d7e-a75c-e67dcaec1fb5", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "6106539a-39ef-4bd3-853e-0bb596447949", + "label": "container_1", + "list": [ + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "ff83d899-8fa1-4946-bfb2-f8fa85f4d1f4", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 847, + "y": 613 + }, + { + "type": "Image", + "id": "cf566c12-46f3-4eb6-97a0-5b255db5803b", + "label": "bg", + "texture": { + "key": "postcards/sprites/35", + "frame": "35" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "fba74f76-f0f3-4156-acee-c6995907042e", + "label": "name", + "scope": "CLASS", + "x": 137, + "y": 111, + "text": "penguin88888888", + "fixedWidth": 420, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "40px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard36.js b/src/scenes/postcards/Postcard36.js new file mode 100644 index 00000000..c747d5a6 --- /dev/null +++ b/src/scenes/postcards/Postcard36.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard36 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/36", "36"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(151, 591, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#330067", "fixedWidth":448,"fontFamily": "CCFaceFront", "fontSize": "40px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard36.scene b/src/scenes/postcards/Postcard36.scene new file mode 100644 index 00000000..a4a9cf1a --- /dev/null +++ b/src/scenes/postcards/Postcard36.scene @@ -0,0 +1,61 @@ +{ + "id": "ce9b506c-91ed-41d6-8659-d0c55c5d860b", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "25d383b0-19d3-4f57-89d5-4c50c96696b9", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "ee615185-aa0a-4f17-a531-7fde1913c628", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/36", + "frame": "36" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "b58867fc-6b83-463a-b46b-4d8237e6942f", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 151, + "y": 591, + "text": "penguin88888888", + "fixedWidth": 448, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "40px", + "color": "#330067" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard37.js b/src/scenes/postcards/Postcard37.js new file mode 100644 index 00000000..2bacba6d --- /dev/null +++ b/src/scenes/postcards/Postcard37.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard37 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // goToButton + const goToButton = new GoToButton(scene, 847, 613); + this.add(goToButton); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/37", "37"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(138, 586, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#093c00", "fixedWidth":424,"fontFamily": "CCFaceFront", "fontSize": "40px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard37.scene b/src/scenes/postcards/Postcard37.scene new file mode 100644 index 00000000..da09a56a --- /dev/null +++ b/src/scenes/postcards/Postcard37.scene @@ -0,0 +1,72 @@ +{ + "id": "793212cd-95db-4ec9-91ae-a3800a091071", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "fb2e6675-64bb-4c96-be07-a3569264ed52", + "label": "container_1", + "list": [ + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "7b096538-f528-4af3-a9c5-ee1483a25156", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 847, + "y": 613 + }, + { + "type": "Image", + "id": "06388daf-0368-41f5-8f04-a21d78eb867d", + "label": "bg", + "texture": { + "key": "postcards/sprites/37", + "frame": "37" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "ba9ceb73-2b17-44dc-8699-77de6aca0a19", + "label": "name", + "scope": "CLASS", + "x": 138, + "y": 586, + "text": "penguin88888888", + "fixedWidth": 424, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "40px", + "color": "#093c00" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard38.js b/src/scenes/postcards/Postcard38.js new file mode 100644 index 00000000..8e00bb03 --- /dev/null +++ b/src/scenes/postcards/Postcard38.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard38 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/38", "38"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 847, 612); + this.add(goToButton); + + // name + const name = scene.add.text(131, 110, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 807; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard38.scene b/src/scenes/postcards/Postcard38.scene new file mode 100644 index 00000000..8187f17b --- /dev/null +++ b/src/scenes/postcards/Postcard38.scene @@ -0,0 +1,72 @@ +{ + "id": "d91ad4ab-c5d9-409c-be52-3fc376987329", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "567388c5-585d-4b5c-99bc-5c482e1d2cb6", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "7a7d9dfa-49e6-4a5d-9576-bd4895a3ef32", + "label": "bg", + "texture": { + "key": "postcards/sprites/38", + "frame": "38" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "10b75e72-48f0-45cd-a4ee-0e47e3504555", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 807, + "x": 847, + "y": 612 + }, + { + "type": "Text", + "id": "40510ce4-7147-4345-9777-eb3d87c2b5ba", + "label": "name", + "scope": "CLASS", + "x": 131, + "y": 110, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard39.js b/src/scenes/postcards/Postcard39.js new file mode 100644 index 00000000..b46ca784 --- /dev/null +++ b/src/scenes/postcards/Postcard39.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard39 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/39", "39"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 850, 619); + this.add(goToButton); + + // name + const name = scene.add.text(132, 100, "", {}); + name.text = "Penguin888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":346,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 230; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard39.scene b/src/scenes/postcards/Postcard39.scene new file mode 100644 index 00000000..e2a0571d --- /dev/null +++ b/src/scenes/postcards/Postcard39.scene @@ -0,0 +1,72 @@ +{ + "id": "0f0ae4f1-bdfc-4224-b66b-f0d37b238818", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "ccc4b254-947f-488f-9eae-802a04edb687", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "0644fa90-1664-4834-8cdc-c6a0b6034ed9", + "label": "bg", + "texture": { + "key": "postcards/sprites/39", + "frame": "39" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "83bf01e5-93e8-44ee-a08a-420ddc2f92c4", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 230, + "x": 850, + "y": 619 + }, + { + "type": "Text", + "id": "3fb12b34-1a0b-49d0-8cb3-f6ee9bf3c29e", + "label": "name", + "scope": "CLASS", + "x": 132, + "y": 100, + "text": "Penguin888888", + "fixedWidth": 346, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard4.js b/src/scenes/postcards/Postcard4.js new file mode 100644 index 00000000..6c354dd5 --- /dev/null +++ b/src/scenes/postcards/Postcard4.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard4 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/4", "4"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 831, 598); + this.add(goToButton); + + // name + const name = scene.add.text(128, 599, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 110; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard4.scene b/src/scenes/postcards/Postcard4.scene new file mode 100644 index 00000000..00927f18 --- /dev/null +++ b/src/scenes/postcards/Postcard4.scene @@ -0,0 +1,72 @@ +{ + "id": "09bcd48c-039c-4f2f-9542-a6b42156bb0f", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "5b299050-035a-4bc5-a2a9-641b346f0b15", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "834cd107-281b-4301-b0ae-a99626d57a41", + "label": "bg", + "texture": { + "key": "postcards/sprites/4", + "frame": "4" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "4e6afbe4-6e3a-4c59-b956-0a52604af1d3", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 110, + "x": 831, + "y": 598 + }, + { + "type": "Text", + "id": "ea4475e2-74b6-4e72-9d24-dad042c2aaae", + "label": "name", + "scope": "CLASS", + "x": 128, + "y": 599, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard40.js b/src/scenes/postcards/Postcard40.js new file mode 100644 index 00000000..073771e4 --- /dev/null +++ b/src/scenes/postcards/Postcard40.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard40 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/40", "40"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(490, 553, "", {}); + name.text = "TEST NAME123"; + name.setStyle({ "align": "right", "color": "#000000", "fixedWidth":346,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard40.scene b/src/scenes/postcards/Postcard40.scene new file mode 100644 index 00000000..e2563182 --- /dev/null +++ b/src/scenes/postcards/Postcard40.scene @@ -0,0 +1,62 @@ +{ + "id": "6bbd5dfd-55a6-4f7f-a662-41c058e93691", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "7e80c11e-a044-413d-8ad8-9f9b7319dae5", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "a746bd71-bafa-49a2-aee8-f915cd9d9a04", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/40", + "frame": "40" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "2bd18d52-e340-4e24-a639-bb6343a0bc74", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 490, + "y": 553, + "text": "TEST NAME123", + "fixedWidth": 346, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard41.js b/src/scenes/postcards/Postcard41.js new file mode 100644 index 00000000..770ddbcb --- /dev/null +++ b/src/scenes/postcards/Postcard41.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard41 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/41", "41"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(126, 199, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#2b575b", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard41.scene b/src/scenes/postcards/Postcard41.scene new file mode 100644 index 00000000..c61724d7 --- /dev/null +++ b/src/scenes/postcards/Postcard41.scene @@ -0,0 +1,61 @@ +{ + "id": "2107a17c-09f4-43e2-9bed-c7d31f7dbd16", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "c24270c2-012a-4f2e-8447-6da9bdd046de", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "1114eb97-a3b9-41d8-a92d-0abf137517f9", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/41", + "frame": "41" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "2b7871b5-3700-44ac-8351-a4e9970fc61a", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 126, + "y": 199, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#2b575b" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard42.js b/src/scenes/postcards/Postcard42.js new file mode 100644 index 00000000..24764a29 --- /dev/null +++ b/src/scenes/postcards/Postcard42.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard42 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/42", "42"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(609, 631, "", {}); + name.text = "penguin888888"; + name.setStyle({ "color": "#000000", "fixedWidth":344,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard42.scene b/src/scenes/postcards/Postcard42.scene new file mode 100644 index 00000000..a12a877e --- /dev/null +++ b/src/scenes/postcards/Postcard42.scene @@ -0,0 +1,61 @@ +{ + "id": "730dccc9-a721-48f8-a150-1f9165cb82af", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "5035efd9-f987-4c74-a5c8-d15bd3125dfa", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "b6dc82f0-2493-42c2-baf8-07ced53303f0", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/42", + "frame": "42" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "8ce06c70-334b-473c-94a6-9a61601ef85a", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 609, + "y": 631, + "text": "penguin888888", + "fixedWidth": 344, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard43.js b/src/scenes/postcards/Postcard43.js new file mode 100644 index 00000000..ab87c80e --- /dev/null +++ b/src/scenes/postcards/Postcard43.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard43 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/43", "43"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(576, 641, "", {}); + name.text = "PENGUIN88888888"; + name.setStyle({ "color": "#2b498d", "fixedWidth":374,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard43.scene b/src/scenes/postcards/Postcard43.scene new file mode 100644 index 00000000..68342c3f --- /dev/null +++ b/src/scenes/postcards/Postcard43.scene @@ -0,0 +1,61 @@ +{ + "id": "e5006800-1d65-4c24-9476-1bf7be5f744d", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "2a1a6335-ca75-4994-8e32-a1029be9d15d", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "ddaa7b2e-84ce-4c2f-be09-d6b41fb609f6", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/43", + "frame": "43" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "e6d8bde0-a184-406c-82b7-96d8cdec9eed", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 576, + "y": 641, + "text": "PENGUIN88888888", + "fixedWidth": 374, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#2b498d" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard44.js b/src/scenes/postcards/Postcard44.js new file mode 100644 index 00000000..1a6d2575 --- /dev/null +++ b/src/scenes/postcards/Postcard44.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard44 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/44", "44"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(608, 321, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":326,"fontFamily": "CCFaceFront", "fontSize": "28px", "fontStyle": "italic" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard44.scene b/src/scenes/postcards/Postcard44.scene new file mode 100644 index 00000000..44cb8e09 --- /dev/null +++ b/src/scenes/postcards/Postcard44.scene @@ -0,0 +1,62 @@ +{ + "id": "19e4ea13-d9d7-4a8c-9248-b8e219543fd6", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "ab14f77d-dfdb-4892-9864-076528a45a32", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "405e7cf7-af42-45d0-8153-454fc8df7a0c", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/44", + "frame": "44" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "98f51acc-8d89-4b9f-8ab0-11de65d29930", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 608, + "y": 321, + "text": "penguin88888888", + "fixedWidth": 326, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "28px", + "fontStyle": "italic", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard45.js b/src/scenes/postcards/Postcard45.js new file mode 100644 index 00000000..7dc172ac --- /dev/null +++ b/src/scenes/postcards/Postcard45.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard45 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/45", "45"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(559, 603, "", {}); + name.text = "penguin888888888"; + name.setStyle({ "color": "#000066", "fixedWidth":396,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard45.scene b/src/scenes/postcards/Postcard45.scene new file mode 100644 index 00000000..a454bfa5 --- /dev/null +++ b/src/scenes/postcards/Postcard45.scene @@ -0,0 +1,61 @@ +{ + "id": "d5203009-e147-49cd-9a7b-54820d693a9c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "099c457b-2a52-4e43-ba53-7b6f0300a9aa", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "6230f0f9-1df1-46f9-9b65-f470fe356865", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/45", + "frame": "45" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "cd0284cd-5d03-48f2-9f8a-02134fa3a1b9", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 559, + "y": 603, + "text": "penguin888888888", + "fixedWidth": 396, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000066" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard46.js b/src/scenes/postcards/Postcard46.js new file mode 100644 index 00000000..4ae62bf4 --- /dev/null +++ b/src/scenes/postcards/Postcard46.js @@ -0,0 +1,40 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard46 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/46", "46"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(668, 585, "", {}); + name.angle = -15; + name.text = "TEST NAME123"; + name.setStyle({ "color": "#000000", "fixedWidth":354,"fontFamily": "Comic Sans MS", "fontSize": "28px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard46.scene b/src/scenes/postcards/Postcard46.scene new file mode 100644 index 00000000..838caa6e --- /dev/null +++ b/src/scenes/postcards/Postcard46.scene @@ -0,0 +1,62 @@ +{ + "id": "2e2fb12d-7e8c-439c-a60a-a54d0dfa9f1c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "d6346075-6707-4f0a-b11e-85939a268513", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "1a6476cb-d23b-4f63-a295-a097dc09a0db", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/46", + "frame": "46" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "7aae381a-4807-4383-b726-edbdac57ffba", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 668, + "y": 585, + "angle": -15, + "text": "TEST NAME123", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "Comic Sans MS", + "fontSize": "28px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard47.js b/src/scenes/postcards/Postcard47.js new file mode 100644 index 00000000..94527714 --- /dev/null +++ b/src/scenes/postcards/Postcard47.js @@ -0,0 +1,25 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard47 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/47", "47"); + bg.setOrigin(0, 0); + this.add(bg); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard47.scene b/src/scenes/postcards/Postcard47.scene new file mode 100644 index 00000000..aaf6ca2c --- /dev/null +++ b/src/scenes/postcards/Postcard47.scene @@ -0,0 +1,45 @@ +{ + "id": "6523ac1a-9321-4a61-8ce3-8010f32e0f49", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "82ff3dd2-9764-4dd1-9590-1e3d850989ed", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "676a1a66-d410-4ce7-af41-924173a5fda7", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/47", + "frame": "47" + }, + "originX": 0, + "originY": 0 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard48.js b/src/scenes/postcards/Postcard48.js new file mode 100644 index 00000000..f73ea7bb --- /dev/null +++ b/src/scenes/postcards/Postcard48.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard48 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/48", "48"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(621, 595, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#1977c1", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard48.scene b/src/scenes/postcards/Postcard48.scene new file mode 100644 index 00000000..fe88df73 --- /dev/null +++ b/src/scenes/postcards/Postcard48.scene @@ -0,0 +1,61 @@ +{ + "id": "e0811db0-3bc8-4c74-8261-9af1cb78c9bc", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "8c4b1bab-3c61-4f2a-abfe-fc9e0843c118", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "7181396c-a9dc-4e9b-88de-79631f56e54e", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/48", + "frame": "48" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "c91bedaa-0332-4fe2-9ebf-03a36b725a51", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 621, + "y": 595, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#1977c1" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard49.js b/src/scenes/postcards/Postcard49.js new file mode 100644 index 00000000..6b2004dc --- /dev/null +++ b/src/scenes/postcards/Postcard49.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard49 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/49", "49"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(127, 601, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton + const goToButton = new GoToButton(scene, 563, 620); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 120; + + this.name = name; + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard49.scene b/src/scenes/postcards/Postcard49.scene new file mode 100644 index 00000000..b444369f --- /dev/null +++ b/src/scenes/postcards/Postcard49.scene @@ -0,0 +1,72 @@ +{ + "id": "2bd2aad3-a366-4352-b505-e3f3389c07f2", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "77f54bf4-ac0c-4b65-bdaa-d38d4c48e655", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "99b9644c-9eea-4de5-aebd-61efa8fc83b5", + "label": "bg", + "texture": { + "key": "postcards/sprites/49", + "frame": "49" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "e7dc3299-86cb-4505-aa27-d005b79d29c2", + "label": "name", + "scope": "CLASS", + "x": 127, + "y": 601, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#ffffff" + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "36508ce9-8925-495c-954f-b1752f0c256d", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 120, + "x": 563, + "y": 620 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard5.js b/src/scenes/postcards/Postcard5.js new file mode 100644 index 00000000..71d0ea40 --- /dev/null +++ b/src/scenes/postcards/Postcard5.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard5 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/5", "5"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 851, 646); + this.add(goToButton); + + // name + const name = scene.add.text(417, 625, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 330; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard5.scene b/src/scenes/postcards/Postcard5.scene new file mode 100644 index 00000000..da743d21 --- /dev/null +++ b/src/scenes/postcards/Postcard5.scene @@ -0,0 +1,72 @@ +{ + "id": "e03fd9ec-5532-48ce-a98f-251c968e6c23", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "0aa567e2-d5b4-4ada-820a-77ab64184be0", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "f8351de8-0291-4278-b6ee-fba748fba1a2", + "label": "bg", + "texture": { + "key": "postcards/sprites/5", + "frame": "5" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "16c5f8b5-0dc3-4f30-934a-d4710a5885b3", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 330, + "x": 851, + "y": 646 + }, + { + "type": "Text", + "id": "8d179de7-4f2a-4e7c-bf98-5af3afbf0ebe", + "label": "name", + "scope": "CLASS", + "x": 417, + "y": 625, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard50.js b/src/scenes/postcards/Postcard50.js new file mode 100644 index 00000000..ad1bd2f6 --- /dev/null +++ b/src/scenes/postcards/Postcard50.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard50 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/50", "50"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(127, 596, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard50.scene b/src/scenes/postcards/Postcard50.scene new file mode 100644 index 00000000..e0f27724 --- /dev/null +++ b/src/scenes/postcards/Postcard50.scene @@ -0,0 +1,61 @@ +{ + "id": "e77c7a12-ba49-40ca-b39e-54358fc73135", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "7bb3f4a7-0371-4aa5-b443-0e694f570f40", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "8f0fa954-6fff-4232-ab51-15854a6e3c48", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/50", + "frame": "50" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "71e4c875-959e-4409-aab8-65a523478eb7", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 127, + "y": 596, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard51.js b/src/scenes/postcards/Postcard51.js new file mode 100644 index 00000000..9652650c --- /dev/null +++ b/src/scenes/postcards/Postcard51.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard51 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/51", "51"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 854, 619); + this.add(goToButton); + + // name + const name = scene.add.text(146, 95, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":316,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 411; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard51.scene b/src/scenes/postcards/Postcard51.scene new file mode 100644 index 00000000..70a9f006 --- /dev/null +++ b/src/scenes/postcards/Postcard51.scene @@ -0,0 +1,72 @@ +{ + "id": "d97e5ce8-8c0a-4e4c-bcc8-4959f4409d3b", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "5ec0834c-b611-4224-91bf-efa902a8c10d", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "718872f3-68b8-4a68-bc60-e8f4c75f5292", + "label": "bg", + "texture": { + "key": "postcards/sprites/51", + "frame": "51" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "12838082-cf57-4133-89d9-5ba086d68f7b", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 411, + "x": 854, + "y": 619 + }, + { + "type": "Text", + "id": "b5872be8-be74-4f5e-ae15-026d062e7a2e", + "label": "name", + "scope": "CLASS", + "x": 146, + "y": 95, + "text": "penguin88888888", + "fixedWidth": 316, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard52.js b/src/scenes/postcards/Postcard52.js new file mode 100644 index 00000000..2bd61b8b --- /dev/null +++ b/src/scenes/postcards/Postcard52.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard52 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/52", "52"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 847, 612); + this.add(goToButton); + + // name + const name = scene.add.text(132, 143, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 230; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard52.scene b/src/scenes/postcards/Postcard52.scene new file mode 100644 index 00000000..71ea0ebb --- /dev/null +++ b/src/scenes/postcards/Postcard52.scene @@ -0,0 +1,72 @@ +{ + "id": "b22841f7-da0e-4ba4-b4cb-0455bb14045d", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "23cd0cc6-4a1e-44bc-9678-990485bca14c", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "6de46e95-2d9c-48f1-b4ac-a98f1691c283", + "label": "bg", + "texture": { + "key": "postcards/sprites/52", + "frame": "52" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "27e85ded-ce1c-470c-8d34-3cb66bcf6734", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 230, + "x": 847, + "y": 612 + }, + { + "type": "Text", + "id": "994276ea-c3d9-4e91-9609-e20bcbb9e2c7", + "label": "name", + "scope": "CLASS", + "x": 132, + "y": 143, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard53.js b/src/scenes/postcards/Postcard53.js new file mode 100644 index 00000000..2d9a5217 --- /dev/null +++ b/src/scenes/postcards/Postcard53.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard53 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/53", "53"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 495, 126); + this.add(goToButton); + + // name + const name = scene.add.text(117, 160, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#003399", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 410; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard53.scene b/src/scenes/postcards/Postcard53.scene new file mode 100644 index 00000000..0d2110ce --- /dev/null +++ b/src/scenes/postcards/Postcard53.scene @@ -0,0 +1,72 @@ +{ + "id": "71035654-f668-4cb6-b1eb-15c24da6f7af", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "c88d2001-22c2-4cc5-8732-55612ba74d24", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "27d62435-aa8e-4d0c-b9a6-f752d0c86ab0", + "label": "bg", + "texture": { + "key": "postcards/sprites/53", + "frame": "53" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "894a8685-26db-441a-9371-9f6fca8b299f", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 410, + "x": 495, + "y": 126 + }, + { + "type": "Text", + "id": "8c757f68-0bbd-43f3-a521-9013164e2cfb", + "label": "name", + "scope": "CLASS", + "x": 117, + "y": 160, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#003399" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard54.js b/src/scenes/postcards/Postcard54.js new file mode 100644 index 00000000..3543c9d4 --- /dev/null +++ b/src/scenes/postcards/Postcard54.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard54 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/54", "54"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 840, 613); + this.add(goToButton); + + // name + const name = scene.add.text(121, 605, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard54.scene b/src/scenes/postcards/Postcard54.scene new file mode 100644 index 00000000..45d4ba8e --- /dev/null +++ b/src/scenes/postcards/Postcard54.scene @@ -0,0 +1,72 @@ +{ + "id": "754a8320-54c6-4041-aee1-915bec347aff", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "305aa374-8519-45c5-a7e5-738df5e47449", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "c511212f-ddd3-4f9f-b5e0-f4fc951811f5", + "label": "bg", + "texture": { + "key": "postcards/sprites/54", + "frame": "54" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "8b8ac144-ec6a-4e50-9c3c-16c9501e62ff", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 840, + "y": 613 + }, + { + "type": "Text", + "id": "c4ff9fb3-1b67-477f-b7c1-f82cc97a779e", + "label": "name", + "scope": "CLASS", + "x": 121, + "y": 605, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard55.js b/src/scenes/postcards/Postcard55.js new file mode 100644 index 00000000..35010074 --- /dev/null +++ b/src/scenes/postcards/Postcard55.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard55 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/55", "55"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 835, 656); + this.add(goToButton); + + // name + const name = scene.add.text(367, 633, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":402,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 320; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard55.scene b/src/scenes/postcards/Postcard55.scene new file mode 100644 index 00000000..6b1c9c9e --- /dev/null +++ b/src/scenes/postcards/Postcard55.scene @@ -0,0 +1,72 @@ +{ + "id": "dfc95098-03ac-4b5c-8bc4-3d7a6131ec07", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "0a37c737-9ff5-43a1-8550-14fc9ba0d878", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "7952b0fb-3faf-4a1b-b448-5dbaf2afe814", + "label": "bg", + "texture": { + "key": "postcards/sprites/55", + "frame": "55" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "98467e9a-8368-4412-94e8-188080037325", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 320, + "x": 835, + "y": 656 + }, + { + "type": "Text", + "id": "2862fc59-a0ad-4840-ad3e-bee496e766ce", + "label": "name", + "scope": "CLASS", + "x": 367, + "y": 633, + "text": "penguin88888888", + "fixedWidth": 402, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard56.js b/src/scenes/postcards/Postcard56.js new file mode 100644 index 00000000..4361f2e0 --- /dev/null +++ b/src/scenes/postcards/Postcard56.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard56 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/56", "56"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(125, 589, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#333333", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard56.scene b/src/scenes/postcards/Postcard56.scene new file mode 100644 index 00000000..d5c9b34c --- /dev/null +++ b/src/scenes/postcards/Postcard56.scene @@ -0,0 +1,61 @@ +{ + "id": "6c734ff9-3ecc-4e2d-8746-1350283bb3c3", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "4c303e1c-50d6-4c75-ac16-f8703ed853ab", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "a68cca84-8781-4a0f-9a3f-7f7d26eb13d5", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/56", + "frame": "56" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "60bccbfa-c86d-4ca1-b3ab-045156fcf101", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 125, + "y": 589, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#333333" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard57.js b/src/scenes/postcards/Postcard57.js new file mode 100644 index 00000000..a7b6ffff --- /dev/null +++ b/src/scenes/postcards/Postcard57.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard57 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/57", "57"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(576, 603, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#0052af", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard57.scene b/src/scenes/postcards/Postcard57.scene new file mode 100644 index 00000000..7984d850 --- /dev/null +++ b/src/scenes/postcards/Postcard57.scene @@ -0,0 +1,61 @@ +{ + "id": "ab19addd-1455-47f1-8850-31dcef21b414", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "294a9044-8e3d-439f-a173-1468cf2478a4", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "492db03f-4b28-4e60-891f-987e376471e9", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/57", + "frame": "57" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "48050c73-896c-44be-a9b4-2e5f5b0611f7", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 576, + "y": 603, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#0052af" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard58.js b/src/scenes/postcards/Postcard58.js new file mode 100644 index 00000000..f778f9d2 --- /dev/null +++ b/src/scenes/postcards/Postcard58.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard58 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/58", "58"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 804, 617); + this.add(goToButton); + + // name + const name = scene.add.text(173, 567, "", {}); + name.text = "TEST NAME123"; + name.setStyle({ "color": "#ffffff", "fixedWidth":412,"fontFamily": "CCFaceFront", "fontSize": "32px", "fontStyle": "italic" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 808; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard58.scene b/src/scenes/postcards/Postcard58.scene new file mode 100644 index 00000000..43e34beb --- /dev/null +++ b/src/scenes/postcards/Postcard58.scene @@ -0,0 +1,73 @@ +{ + "id": "81ecc20b-cb7a-4230-ab11-5195b9124b30", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "9d2fb490-b331-4d85-a371-66a08f5674b6", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "792ca407-c0f5-483c-a30f-b93599c814cc", + "label": "bg", + "texture": { + "key": "postcards/sprites/58", + "frame": "58" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "077ddf9b-ce49-4734-8d47-8052d58a266f", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 808, + "x": 804, + "y": 617 + }, + { + "type": "Text", + "id": "b963976a-2e69-4b15-b26d-c872e6a9707f", + "label": "name", + "scope": "CLASS", + "x": 173, + "y": 567, + "text": "TEST NAME123", + "fixedWidth": 412, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "fontStyle": "italic", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard59.js b/src/scenes/postcards/Postcard59.js new file mode 100644 index 00000000..1604f8af --- /dev/null +++ b/src/scenes/postcards/Postcard59.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard59 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + /** @type {GoToButton} */ + this.goToButton; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/59", "59"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(51, 558, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton + const goToButton = new GoToButton(scene, 521, 609); + this.add(goToButton); + + // goToButton (prefab fields) + goToButton.roomId = 220; + + this.name = name; + this.goToButton = goToButton; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard59.scene b/src/scenes/postcards/Postcard59.scene new file mode 100644 index 00000000..81c6065d --- /dev/null +++ b/src/scenes/postcards/Postcard59.scene @@ -0,0 +1,72 @@ +{ + "id": "ceea7779-0b03-4719-a29d-5b7b551eb45c", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "756c6daf-38be-4d66-880a-836dba71cba7", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "e9a3570f-e9af-405c-a63d-611b9d7b500a", + "label": "bg", + "texture": { + "key": "postcards/sprites/59", + "frame": "59" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "bf1b6183-5a21-45e2-89c5-a139742803ea", + "label": "name", + "scope": "CLASS", + "x": 51, + "y": 558, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000000" + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "04b50178-c64d-49ce-81c8-89b258f18b98", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 220, + "x": 521, + "y": 609 + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard6.js b/src/scenes/postcards/Postcard6.js new file mode 100644 index 00000000..d3dbd0b3 --- /dev/null +++ b/src/scenes/postcards/Postcard6.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard6 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/6", "6"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(466, 525, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "align": "right", "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard6.scene b/src/scenes/postcards/Postcard6.scene new file mode 100644 index 00000000..468185b7 --- /dev/null +++ b/src/scenes/postcards/Postcard6.scene @@ -0,0 +1,62 @@ +{ + "id": "bf69f855-f597-4000-b21c-e345d7183289", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "17c0993d-6e7d-43af-9fe9-951aaf068ecd", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "b39dffb1-e780-4e54-8215-5b93379a7060", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/6", + "frame": "6" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "49d0c068-57b2-4232-8cc5-ec4072bfe6de", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 466, + "y": 525, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard60.js b/src/scenes/postcards/Postcard60.js new file mode 100644 index 00000000..2481ad15 --- /dev/null +++ b/src/scenes/postcards/Postcard60.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard60 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/60", "60"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 855, 614); + this.add(goToButton); + + // name + const name = scene.add.text(24, 605, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "align": "right", "color": "#000000", "fixedWidth":314,"fontFamily": "CCFaceFront", "fontSize": "28px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 802; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard60.scene b/src/scenes/postcards/Postcard60.scene new file mode 100644 index 00000000..aa6b4f1b --- /dev/null +++ b/src/scenes/postcards/Postcard60.scene @@ -0,0 +1,73 @@ +{ + "id": "9fb54311-b561-42a8-8ba8-4ad9a24125cb", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "448a7b03-b15e-4e32-88b0-f68f965250ad", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "9e8ddd66-033e-4b42-9e6a-055cc351e66d", + "label": "bg", + "texture": { + "key": "postcards/sprites/60", + "frame": "60" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "94503285-620a-463d-bb6b-ac2bc6a02abe", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 802, + "x": 855, + "y": 614 + }, + { + "type": "Text", + "id": "ec2e5417-3b3d-469e-a818-b66ecd5b0463", + "label": "name", + "scope": "CLASS", + "x": 24, + "y": 605, + "text": "Penguin88888888", + "fixedWidth": 314, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "28px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard61.js b/src/scenes/postcards/Postcard61.js new file mode 100644 index 00000000..18db4021 --- /dev/null +++ b/src/scenes/postcards/Postcard61.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard61 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/61", "61"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(130, 114, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#001a33", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard61.scene b/src/scenes/postcards/Postcard61.scene new file mode 100644 index 00000000..b875a123 --- /dev/null +++ b/src/scenes/postcards/Postcard61.scene @@ -0,0 +1,61 @@ +{ + "id": "81b3a22e-6c91-4866-b32a-fe533d38c6ab", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "7cfdba4e-37b8-4634-8ccf-ef04bd641911", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "6517cbe1-08bc-4210-b4c0-83ee0b2b80c9", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/61", + "frame": "61" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "f21479b5-0e18-4a8d-b9c2-748beb4f0b72", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 130, + "y": 114, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#001a33" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard62.js b/src/scenes/postcards/Postcard62.js new file mode 100644 index 00000000..5564b2fd --- /dev/null +++ b/src/scenes/postcards/Postcard62.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard62 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/62", "62"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(138, 119, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard62.scene b/src/scenes/postcards/Postcard62.scene new file mode 100644 index 00000000..726d7bd3 --- /dev/null +++ b/src/scenes/postcards/Postcard62.scene @@ -0,0 +1,61 @@ +{ + "id": "513cecae-8159-4ba3-9029-ff7722afb8a8", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "dd73d50b-5bb6-4967-9383-1a50ade03a9e", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "b16249c1-2ef4-4cf2-878c-2f3f3ee78d8a", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/62", + "frame": "62" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "8ef0fdf0-b02a-4986-b95d-61849d3ac3c2", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 138, + "y": 119, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard63.js b/src/scenes/postcards/Postcard63.js new file mode 100644 index 00000000..06b63032 --- /dev/null +++ b/src/scenes/postcards/Postcard63.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard63 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/63", "63"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 127, 178); + this.add(goToButton); + + // name + const name = scene.add.text(122, 100, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#330066", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 120; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard63.scene b/src/scenes/postcards/Postcard63.scene new file mode 100644 index 00000000..b31be160 --- /dev/null +++ b/src/scenes/postcards/Postcard63.scene @@ -0,0 +1,72 @@ +{ + "id": "f1b41eb0-2993-4ded-92ac-2e0966ee7a60", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "8861333a-21e2-46c8-ac07-d32e0ff8a3d8", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "764d23d2-97d7-4c1f-bc1e-ff462c5ceaa5", + "label": "bg", + "texture": { + "key": "postcards/sprites/63", + "frame": "63" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "3fa2946e-18f1-4ce2-96fb-90eea4166307", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 120, + "x": 127, + "y": 178 + }, + { + "type": "Text", + "id": "f6eb6306-2535-4622-bc2d-6f0fc6df7ace", + "label": "name", + "scope": "CLASS", + "x": 122, + "y": 100, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#330066" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard64.js b/src/scenes/postcards/Postcard64.js new file mode 100644 index 00000000..ff401996 --- /dev/null +++ b/src/scenes/postcards/Postcard64.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard64 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/64", "64"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(572, 640, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#043d08", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard64.scene b/src/scenes/postcards/Postcard64.scene new file mode 100644 index 00000000..6ed14d29 --- /dev/null +++ b/src/scenes/postcards/Postcard64.scene @@ -0,0 +1,61 @@ +{ + "id": "d5694669-ffb0-4f87-8832-43c623995615", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "2d3dbfad-0c97-4999-81c6-5d8977a65ffc", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "d8c885bb-9dff-428b-ac7b-b12d96e2d94c", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/64", + "frame": "64" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "bf3093de-cb08-4472-9d95-5d4029960e8e", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 572, + "y": 640, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#043d08" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard65.js b/src/scenes/postcards/Postcard65.js new file mode 100644 index 00000000..98725061 --- /dev/null +++ b/src/scenes/postcards/Postcard65.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard65 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/65", "65"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 837, 614); + this.add(goToButton); + + // name + const name = scene.add.text(47, 559, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":442,"fontFamily": "CCFaceFront", "fontSize": "36px", "fontStyle": "bold italic" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 802; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard65.scene b/src/scenes/postcards/Postcard65.scene new file mode 100644 index 00000000..1a8f11e1 --- /dev/null +++ b/src/scenes/postcards/Postcard65.scene @@ -0,0 +1,73 @@ +{ + "id": "e2ca4b78-e9d4-4223-989f-282bf3004609", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "a9309f57-749b-444e-839a-6cf92c706ea7", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "9ce0c0ea-6805-4aa4-9180-e2b23051352d", + "label": "bg", + "texture": { + "key": "postcards/sprites/65", + "frame": "65" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "16a9ac4d-30c0-4fa4-a03f-36fca6aaece5", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 802, + "x": 837, + "y": 614 + }, + { + "type": "Text", + "id": "64fd0abd-299b-487d-a4b7-5a9f5ffc9e67", + "label": "name", + "scope": "CLASS", + "x": 47, + "y": 559, + "text": "penguin88888888", + "fixedWidth": 442, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "fontStyle": "bold italic", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard66.js b/src/scenes/postcards/Postcard66.js new file mode 100644 index 00000000..32f8f848 --- /dev/null +++ b/src/scenes/postcards/Postcard66.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard66 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/66", "66"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 856, 624); + this.add(goToButton); + + // name + const name = scene.add.text(46, 49, "", {}); + name.text = "TESTNAME 123"; + name.setStyle({ "color": "#dcce84", "fixedWidth":436,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard66.scene b/src/scenes/postcards/Postcard66.scene new file mode 100644 index 00000000..bd5c0f3d --- /dev/null +++ b/src/scenes/postcards/Postcard66.scene @@ -0,0 +1,72 @@ +{ + "id": "342fe1a1-60ce-4c76-ac0a-51405e26c360", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "3429350e-8a18-4bb2-98a2-802447c92d67", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "60f64836-49f8-468b-8d55-fd6f556d1c70", + "label": "bg", + "texture": { + "key": "postcards/sprites/66", + "frame": "66" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "4c300aa9-a5c7-450e-a52f-7b79553b395e", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 856, + "y": 624 + }, + { + "type": "Text", + "id": "f46ea879-35a4-4f6c-91c8-500071205e41", + "label": "name", + "scope": "CLASS", + "x": 46, + "y": 49, + "text": "TESTNAME 123", + "fixedWidth": 436, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#dcce84" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard67.js b/src/scenes/postcards/Postcard67.js new file mode 100644 index 00000000..9880a718 --- /dev/null +++ b/src/scenes/postcards/Postcard67.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard67 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/67", "67"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 778, 639); + this.add(goToButton); + + // name + const name = scene.add.text(33, 607, "", {}); + name.text = "TESTNAME123"; + name.setStyle({ "align": "right", "color": "#100537", "fixedWidth":238,"fontFamily": "CCFaceFront", "fontSize": "28px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard67.scene b/src/scenes/postcards/Postcard67.scene new file mode 100644 index 00000000..f1188d41 --- /dev/null +++ b/src/scenes/postcards/Postcard67.scene @@ -0,0 +1,73 @@ +{ + "id": "2d7828e2-959e-4541-902a-c8283ed5725d", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "d1a3f985-6d35-416e-b9c9-8bcd32cb2e39", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "69f2638f-f583-4c2f-9ccf-851d9fed7986", + "label": "bg", + "texture": { + "key": "postcards/sprites/67", + "frame": "67" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "991bdc3c-f1c8-4324-bbce-486b575642c4", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 778, + "y": 639 + }, + { + "type": "Text", + "id": "fd67dfee-2dfd-48ba-9645-9baf0066c374", + "label": "name", + "scope": "CLASS", + "x": 33, + "y": 607, + "text": "TESTNAME123", + "fixedWidth": 238, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "28px", + "color": "#100537" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard68.js b/src/scenes/postcards/Postcard68.js new file mode 100644 index 00000000..c5a0c99f --- /dev/null +++ b/src/scenes/postcards/Postcard68.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard68 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/68", "68"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 843, 622); + this.add(goToButton); + + // name + const name = scene.add.text(27, 613, "", {}); + name.text = "TEST NAME123"; + name.setStyle({ "align": "right", "color": "#592113", "fixedWidth":266,"fontFamily": "CCFaceFront", "fontSize": "28px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 422; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard68.scene b/src/scenes/postcards/Postcard68.scene new file mode 100644 index 00000000..8130d04f --- /dev/null +++ b/src/scenes/postcards/Postcard68.scene @@ -0,0 +1,73 @@ +{ + "id": "195306fc-14b4-47b7-8384-f53f318007d7", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "74e7ff3a-5f3c-47c3-9e89-6abec64dc1b4", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "9dbc945d-23e1-4d1d-b2c0-751e0154089f", + "label": "bg", + "texture": { + "key": "postcards/sprites/68", + "frame": "68" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "640081e8-0d26-4af4-bb4c-88d9b15e90fc", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 422, + "x": 843, + "y": 622 + }, + { + "type": "Text", + "id": "31723587-11c5-48bb-b104-2bdee234db7c", + "label": "name", + "scope": "CLASS", + "x": 27, + "y": 613, + "text": "TEST NAME123", + "fixedWidth": 266, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "28px", + "color": "#592113" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard69.js b/src/scenes/postcards/Postcard69.js new file mode 100644 index 00000000..d1b41e3c --- /dev/null +++ b/src/scenes/postcards/Postcard69.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard69 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/69", "69"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 857, 633); + this.add(goToButton); + + // name + const name = scene.add.text(27, 50, "", {}); + name.text = "TEST NAME123"; + name.setStyle({ "align": "right", "color": "#ffffff", "fixedWidth":280,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 805; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard69.scene b/src/scenes/postcards/Postcard69.scene new file mode 100644 index 00000000..99c7cee0 --- /dev/null +++ b/src/scenes/postcards/Postcard69.scene @@ -0,0 +1,73 @@ +{ + "id": "78983add-bbc9-4d30-bd03-0efdf9b347d3", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "8d611cb1-d620-4525-899e-e2a1f0269d69", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "da4a74a3-9f92-4031-a591-3516fb554952", + "label": "bg", + "texture": { + "key": "postcards/sprites/69", + "frame": "69" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "3b670f7f-c794-446a-a6e3-b56a0fb341e3", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 805, + "x": 857, + "y": 633 + }, + { + "type": "Text", + "id": "29c6cc77-c260-4cae-9bcb-049cd7d27e41", + "label": "name", + "scope": "CLASS", + "x": 27, + "y": 50, + "text": "TEST NAME123", + "fixedWidth": 280, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard7.js b/src/scenes/postcards/Postcard7.js new file mode 100644 index 00000000..550dfb63 --- /dev/null +++ b/src/scenes/postcards/Postcard7.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard7 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/7", "7"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(606, 608, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#f99108", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard7.scene b/src/scenes/postcards/Postcard7.scene new file mode 100644 index 00000000..6542f441 --- /dev/null +++ b/src/scenes/postcards/Postcard7.scene @@ -0,0 +1,61 @@ +{ + "id": "03722c18-4761-40ed-b029-515f58bc8c17", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "d941bd3e-cbe2-475e-8450-fbbe3e97755f", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "14c58820-5ce6-4cbe-9bca-5eb89a6d2383", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/7", + "frame": "7" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "d729077a-1413-4e63-aa97-72561d626fe7", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 606, + "y": 608, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#f99108" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard70.js b/src/scenes/postcards/Postcard70.js new file mode 100644 index 00000000..62badfeb --- /dev/null +++ b/src/scenes/postcards/Postcard70.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard70 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/70", "70"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(139, 606, "", {}); + name.text = "Penguin888888"; + name.setStyle({ "color": "#3d0071", "fixedWidth":324,"fontFamily": "CCFaceFront", "fontSize": "32px", "fontStyle": "bold" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard70.scene b/src/scenes/postcards/Postcard70.scene new file mode 100644 index 00000000..357aafb8 --- /dev/null +++ b/src/scenes/postcards/Postcard70.scene @@ -0,0 +1,62 @@ +{ + "id": "1ad48b9c-3859-499c-b9c3-c18a2e02ce79", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "b0e9c7fa-db96-418d-99a3-d36e0c4b3c41", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "bc3bd1d3-5c9e-46f6-aa0a-dee311704a21", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/70", + "frame": "70" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "dce542a6-8c0b-40d8-9c69-ca04c9be901f", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 139, + "y": 606, + "text": "Penguin888888", + "fixedWidth": 324, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "fontStyle": "bold", + "color": "#3d0071" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard71.js b/src/scenes/postcards/Postcard71.js new file mode 100644 index 00000000..1f56b3b2 --- /dev/null +++ b/src/scenes/postcards/Postcard71.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard71 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/71", "71"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 645, 83); + this.add(goToButton); + + // name + const name = scene.add.text(233, 87, "", {}); + name.text = "Testname123"; + name.setStyle({ "color": "#ffffff", "fixedWidth":282,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard71.scene b/src/scenes/postcards/Postcard71.scene new file mode 100644 index 00000000..19ee0ad9 --- /dev/null +++ b/src/scenes/postcards/Postcard71.scene @@ -0,0 +1,72 @@ +{ + "id": "df168a5c-929f-4ee8-af0b-fadf917c659e", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "fa2f47c0-d623-41a1-8df2-9e54c070e141", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "92e30f6f-d9f3-4ef1-87bd-d8828b6662b4", + "label": "bg", + "texture": { + "key": "postcards/sprites/71", + "frame": "71" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "e6dcac6d-6a5a-432d-8e0b-9d5af281b7f4", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 645, + "y": 83 + }, + { + "type": "Text", + "id": "40ea73e6-3079-4194-ad03-8d06a31f77b9", + "label": "name", + "scope": "CLASS", + "x": 233, + "y": 87, + "text": "Testname123", + "fixedWidth": 282, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard72.js b/src/scenes/postcards/Postcard72.js new file mode 100644 index 00000000..5f5698f5 --- /dev/null +++ b/src/scenes/postcards/Postcard72.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard72 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/72", "72"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 631, 622); + this.add(goToButton); + + // name + const name = scene.add.text(24, 554, "", {}); + name.text = "PENGUIN888888"; + name.setStyle({ "align": "right", "color": "#ffffff", "fixedWidth":346,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 120; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard72.scene b/src/scenes/postcards/Postcard72.scene new file mode 100644 index 00000000..00319176 --- /dev/null +++ b/src/scenes/postcards/Postcard72.scene @@ -0,0 +1,73 @@ +{ + "id": "d97a82f9-7a7e-485c-b4c9-364ce2b79837", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "52f933cc-46ae-4e18-bc10-8c722e8edc46", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "0493e054-e471-4f7d-a098-5a69b6bbb98a", + "label": "bg", + "texture": { + "key": "postcards/sprites/72", + "frame": "72" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "0b25d954-d8e9-4ded-8075-a91380421e3f", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 120, + "x": 631, + "y": 622 + }, + { + "type": "Text", + "id": "35bdded0-eb34-4742-9051-6a0ca0c41117", + "label": "name", + "scope": "CLASS", + "x": 24, + "y": 554, + "text": "PENGUIN888888", + "fixedWidth": 346, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard73.js b/src/scenes/postcards/Postcard73.js new file mode 100644 index 00000000..23dfe321 --- /dev/null +++ b/src/scenes/postcards/Postcard73.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard73 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/73", "73"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(441, 621, "", {}); + name.text = "TEST NAME123"; + name.setStyle({ "color": "#ffffff", "fixedWidth":390,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard73.scene b/src/scenes/postcards/Postcard73.scene new file mode 100644 index 00000000..9ef6698d --- /dev/null +++ b/src/scenes/postcards/Postcard73.scene @@ -0,0 +1,61 @@ +{ + "id": "aa3b6303-c59d-4f34-ad43-3c511832cef1", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "4aeb6963-da5e-46db-bedd-c1453b2aec93", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "c29e7446-a29c-486d-9ed7-ab53069ed2f6", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/73", + "frame": "73" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "3c2ac790-933c-413e-8b34-2632bbe4072c", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 441, + "y": 621, + "text": "TEST NAME123", + "fixedWidth": 390, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard74.js b/src/scenes/postcards/Postcard74.js new file mode 100644 index 00000000..987222f0 --- /dev/null +++ b/src/scenes/postcards/Postcard74.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard74 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/74", "74"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 528, 610); + this.add(goToButton); + + // name + const name = scene.add.text(53, 507, "", {}); + name.text = "TEST NAME123"; + name.setStyle({ "color": "#000066", "fixedWidth":302,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard74.scene b/src/scenes/postcards/Postcard74.scene new file mode 100644 index 00000000..80d7ad6e --- /dev/null +++ b/src/scenes/postcards/Postcard74.scene @@ -0,0 +1,72 @@ +{ + "id": "98c9cc03-2a78-4f46-a2e1-4abbce2439cf", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "93a95eb4-2e72-421d-8a08-fcc173e7f119", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "6f68f394-ec68-49d7-b263-249af2e0687a", + "label": "bg", + "texture": { + "key": "postcards/sprites/74", + "frame": "74" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "f9f95b2d-937b-473b-a32a-a655b45dabf6", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 528, + "y": 610 + }, + { + "type": "Text", + "id": "cfde33a6-42b6-4ac0-932b-d8421bc4d2f9", + "label": "name", + "scope": "CLASS", + "x": 53, + "y": 507, + "text": "TEST NAME123", + "fixedWidth": 302, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#000066" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard75.js b/src/scenes/postcards/Postcard75.js new file mode 100644 index 00000000..464dd183 --- /dev/null +++ b/src/scenes/postcards/Postcard75.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard75 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/75", "75"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 836, 626); + this.add(goToButton); + + // name + const name = scene.add.text(70, 43, "", {}); + name.text = "PENGUIN888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":534,"fontFamily": "Comic Sans MS", "fontSize": "40px", "fontStyle": "bold" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 320; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard75.scene b/src/scenes/postcards/Postcard75.scene new file mode 100644 index 00000000..e1893637 --- /dev/null +++ b/src/scenes/postcards/Postcard75.scene @@ -0,0 +1,73 @@ +{ + "id": "a09dca9f-989c-458f-8efa-8264d9856f93", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "f1426928-0fda-48d0-b0db-0bd72c4098b1", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "14d587c7-bab5-4265-af76-87225f234a0f", + "label": "bg", + "texture": { + "key": "postcards/sprites/75", + "frame": "75" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "ece54f09-15c8-47f2-a059-dc61ec606241", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 320, + "x": 836, + "y": 626 + }, + { + "type": "Text", + "id": "f32d01ae-16bc-4c99-a847-f928126eaa3d", + "label": "name", + "scope": "CLASS", + "x": 70, + "y": 43, + "text": "PENGUIN888888", + "fixedWidth": 534, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "Comic Sans MS", + "fontSize": "40px", + "fontStyle": "bold", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard76.js b/src/scenes/postcards/Postcard76.js new file mode 100644 index 00000000..99f00dac --- /dev/null +++ b/src/scenes/postcards/Postcard76.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard76 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/76", "76"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(20, 569, "", {}); + name.text = "Penguin8888888"; + name.setStyle({ "align": "right", "color": "#32005d", "fixedWidth":340,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard76.scene b/src/scenes/postcards/Postcard76.scene new file mode 100644 index 00000000..580024bf --- /dev/null +++ b/src/scenes/postcards/Postcard76.scene @@ -0,0 +1,62 @@ +{ + "id": "cf7094b8-4f24-4a01-9583-f252c96f5285", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "b6bccf37-60b8-4bea-a722-459f70c7d7aa", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "778f5513-f652-4875-b05d-b08f1b04f5e3", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/76", + "frame": "76" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "83e1cb15-0b72-488a-920d-4a8446a2dbd8", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 20, + "y": 569, + "text": "Penguin8888888", + "fixedWidth": 340, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#32005d" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard77.js b/src/scenes/postcards/Postcard77.js new file mode 100644 index 00000000..f6427fcd --- /dev/null +++ b/src/scenes/postcards/Postcard77.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard77 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/77", "77"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(576, 598, "", {}); + name.text = "PENGUIN888888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":352,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard77.scene b/src/scenes/postcards/Postcard77.scene new file mode 100644 index 00000000..04456c21 --- /dev/null +++ b/src/scenes/postcards/Postcard77.scene @@ -0,0 +1,61 @@ +{ + "id": "a07538ec-eff8-4aa3-b1bb-fdd06b78dbcf", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "aa6f8a81-1858-43ef-a8a1-13ca29d26ea4", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "eaf3cfb0-f0fb-4e74-94a6-fc31668cef19", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/77", + "frame": "77" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "e8d5fe29-702b-4472-a3b5-24f9c34b1339", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 576, + "y": 598, + "text": "PENGUIN888888888", + "fixedWidth": 352, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard78.js b/src/scenes/postcards/Postcard78.js new file mode 100644 index 00000000..d730fa31 --- /dev/null +++ b/src/scenes/postcards/Postcard78.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard78 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/78", "78"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(580, 640, "", {}); + name.text = "PENGUIN88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":358,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard78.scene b/src/scenes/postcards/Postcard78.scene new file mode 100644 index 00000000..232e052b --- /dev/null +++ b/src/scenes/postcards/Postcard78.scene @@ -0,0 +1,61 @@ +{ + "id": "efb74b76-37ae-4928-8712-40a9453adf19", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "400c991d-170c-43df-8ee4-e167cb8c00af", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "b4cb9cc8-e6dd-4061-8b60-4af481e072e7", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/78", + "frame": "78" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "197e9170-58c1-4e9b-a6d3-b39304a2f70b", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 580, + "y": 640, + "text": "PENGUIN88888888", + "fixedWidth": 358, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard79.js b/src/scenes/postcards/Postcard79.js new file mode 100644 index 00000000..7403dcbc --- /dev/null +++ b/src/scenes/postcards/Postcard79.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard79 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/79", "79"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(151, 612, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#333333", "fixedWidth":354,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard79.scene b/src/scenes/postcards/Postcard79.scene new file mode 100644 index 00000000..3e2eb3c7 --- /dev/null +++ b/src/scenes/postcards/Postcard79.scene @@ -0,0 +1,61 @@ +{ + "id": "e708b036-a7f6-4326-b894-258567ef0050", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "b5f198b6-0f16-40fd-9b5a-053f249073b7", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "f0d26f7c-f3ff-4fd5-b50e-b36cd3df90f9", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/79", + "frame": "79" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "c3e15e59-efe8-49b0-9068-7b3dc3ea36fe", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 151, + "y": 612, + "text": "Penguin88888888", + "fixedWidth": 354, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#333333" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard8.js b/src/scenes/postcards/Postcard8.js new file mode 100644 index 00000000..465b3be7 --- /dev/null +++ b/src/scenes/postcards/Postcard8.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard8 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/8", "8"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 135, 165); + this.add(goToButton); + + // name + const name = scene.add.text(137, 92, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard8.scene b/src/scenes/postcards/Postcard8.scene new file mode 100644 index 00000000..52354823 --- /dev/null +++ b/src/scenes/postcards/Postcard8.scene @@ -0,0 +1,72 @@ +{ + "id": "a08ace9f-4a1a-463a-a59b-a8e71b28ac47", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "ebb59f68-8577-48b0-9a7b-fe17f58c3d27", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "bd8bf974-8f86-4150-a7f0-27345cfa868d", + "label": "bg", + "texture": { + "key": "postcards/sprites/8", + "frame": "8" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "3fe12263-3eb8-4f31-8f60-48b6b3fe1197", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 135, + "y": 165 + }, + { + "type": "Text", + "id": "4b2f145b-11d7-4e83-b766-9dd12af12988", + "label": "name", + "scope": "CLASS", + "x": 137, + "y": 92, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard80.js b/src/scenes/postcards/Postcard80.js new file mode 100644 index 00000000..b07d7c92 --- /dev/null +++ b/src/scenes/postcards/Postcard80.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard80 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/80", "80"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 137, 626); + this.add(goToButton); + + // name + const name = scene.add.text(27, 47, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "align": "right", "color": "#333333", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 120; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard80.scene b/src/scenes/postcards/Postcard80.scene new file mode 100644 index 00000000..180ec786 --- /dev/null +++ b/src/scenes/postcards/Postcard80.scene @@ -0,0 +1,73 @@ +{ + "id": "70f3c1f4-fbdc-4be0-a3ce-2a7c81c2f7a0", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "1710311a-b84f-46db-9903-1cbd0005fc88", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "debb17d9-3778-4d69-a5be-4bdcc8d709e7", + "label": "bg", + "texture": { + "key": "postcards/sprites/80", + "frame": "80" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "a378bc56-5ce4-4ac2-b0fa-89c1485dac7f", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 120, + "x": 137, + "y": 626 + }, + { + "type": "Text", + "id": "edf8eb58-fb02-4c63-94df-dfcaf62fa9ce", + "label": "name", + "scope": "CLASS", + "x": 27, + "y": 47, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "align": "right", + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#333333" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard81.js b/src/scenes/postcards/Postcard81.js new file mode 100644 index 00000000..01c9d2a6 --- /dev/null +++ b/src/scenes/postcards/Postcard81.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard81 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/81", "81"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 834, 620); + this.add(goToButton); + + // name + const name = scene.add.text(428, 602, "", {}); + name.text = "Penguin88888888"; + name.setStyle({ "color": "#a6d1fb", "fixedWidth":360,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard81.scene b/src/scenes/postcards/Postcard81.scene new file mode 100644 index 00000000..b252f959 --- /dev/null +++ b/src/scenes/postcards/Postcard81.scene @@ -0,0 +1,72 @@ +{ + "id": "a3efc31f-dbdf-4455-a399-2e49c52f6795", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "cfae7ea4-f00f-4a30-b47e-5359f665ae41", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "2640bf0f-172a-459c-8960-7f76cda52214", + "label": "bg", + "texture": { + "key": "postcards/sprites/81", + "frame": "81" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "d0b3bd02-ab3c-4eb2-8613-c3ad33add841", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 834, + "y": 620 + }, + { + "type": "Text", + "id": "129dd907-d49a-4270-9af8-a0431a91ffdd", + "label": "name", + "scope": "CLASS", + "x": 428, + "y": 602, + "text": "Penguin88888888", + "fixedWidth": 360, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#a6d1fb" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard82.js b/src/scenes/postcards/Postcard82.js new file mode 100644 index 00000000..be2aefbe --- /dev/null +++ b/src/scenes/postcards/Postcard82.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard82 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/82", "82"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(590, 625, "", {}); + name.text = "PENGUIN88888888"; + name.setStyle({ "color": "#10285f", "fixedWidth":394,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard82.scene b/src/scenes/postcards/Postcard82.scene new file mode 100644 index 00000000..337a2abc --- /dev/null +++ b/src/scenes/postcards/Postcard82.scene @@ -0,0 +1,61 @@ +{ + "id": "f18f6227-076f-4a10-8020-d5c451e65f82", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "bd9667ea-5f48-45ef-aef9-2e7ae8224d87", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "433d1fbf-6405-4a38-ba04-2317709063b8", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/82", + "frame": "82" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "57dcfea8-ffb7-4e2c-8c67-e567bce206dc", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 590, + "y": 625, + "text": "PENGUIN88888888", + "fixedWidth": 394, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#10285f" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard83.js b/src/scenes/postcards/Postcard83.js new file mode 100644 index 00000000..c6c906de --- /dev/null +++ b/src/scenes/postcards/Postcard83.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard83 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/83", "83"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(238, 137, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard83.scene b/src/scenes/postcards/Postcard83.scene new file mode 100644 index 00000000..1e622b08 --- /dev/null +++ b/src/scenes/postcards/Postcard83.scene @@ -0,0 +1,61 @@ +{ + "id": "70321fc2-fd3b-4713-810d-57379e49256b", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "8faa1074-49e5-4661-b34d-10cf5a7a6823", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "2a9a0bf8-457e-441e-94d1-0b861bb883aa", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/83", + "frame": "83" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "c7987775-dfcd-42b3-9d39-6f23e3420262", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 238, + "y": 137, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard84.js b/src/scenes/postcards/Postcard84.js new file mode 100644 index 00000000..adce1c4e --- /dev/null +++ b/src/scenes/postcards/Postcard84.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard84 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/84", "84"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(224, 107, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#001874", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard84.scene b/src/scenes/postcards/Postcard84.scene new file mode 100644 index 00000000..7e5bd284 --- /dev/null +++ b/src/scenes/postcards/Postcard84.scene @@ -0,0 +1,61 @@ +{ + "id": "db8f65c3-0d5c-472c-b613-c5d2775b88bb", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "735b17d4-4f76-4d65-a7d1-f70a96ab6869", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "2a4dc133-57b3-4844-96a7-380dab292d8e", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/84", + "frame": "84" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "7058b54a-465c-486b-b517-75e9bcaf8772", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 224, + "y": 107, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#001874" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard85.js b/src/scenes/postcards/Postcard85.js new file mode 100644 index 00000000..e0b2e165 --- /dev/null +++ b/src/scenes/postcards/Postcard85.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard85 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/85", "85"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(118, 604, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#0000b5", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard85.scene b/src/scenes/postcards/Postcard85.scene new file mode 100644 index 00000000..45f40b89 --- /dev/null +++ b/src/scenes/postcards/Postcard85.scene @@ -0,0 +1,61 @@ +{ + "id": "da9d1172-7382-4ecf-9b47-b590c9eb641e", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "f5e540b5-a7d6-4e7f-8ba9-d2d5c4d86553", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "bf2181bb-c93e-4128-a3e6-9e0ec8899f18", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/85", + "frame": "85" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "85995743-0a65-45b8-9320-61b94dd18958", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 118, + "y": 604, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#0000b5" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard86.js b/src/scenes/postcards/Postcard86.js new file mode 100644 index 00000000..b7069275 --- /dev/null +++ b/src/scenes/postcards/Postcard86.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard86 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/86", "86"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(604, 610, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#a00000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "32px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard86.scene b/src/scenes/postcards/Postcard86.scene new file mode 100644 index 00000000..5186590f --- /dev/null +++ b/src/scenes/postcards/Postcard86.scene @@ -0,0 +1,61 @@ +{ + "id": "7faa28e3-a6c0-4f5d-9d32-7af59a7b7302", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "01d0fa95-6e7a-4a05-bf43-3bcd5ae5a607", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "2edfe452-a48f-469a-a6bd-10e3c5c6bef5", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/86", + "frame": "86" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "c2348687-83d8-4405-b062-09390eca3ad4", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 604, + "y": 610, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "32px", + "color": "#a00000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard87.js b/src/scenes/postcards/Postcard87.js new file mode 100644 index 00000000..f6a74465 --- /dev/null +++ b/src/scenes/postcards/Postcard87.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard87 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/87", "87"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(618, 641, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#014b01", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard87.scene b/src/scenes/postcards/Postcard87.scene new file mode 100644 index 00000000..395c261a --- /dev/null +++ b/src/scenes/postcards/Postcard87.scene @@ -0,0 +1,61 @@ +{ + "id": "440cb98e-7dcb-4df7-bbb1-9f206a499a85", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "3c30dce5-60d0-4448-b30f-940a48ca75aa", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "88fcbbfd-c1ae-4c07-b9e5-43ec665b31cb", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/87", + "frame": "87" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "b2c08d33-9949-40d6-b81b-45f8b4f54955", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 618, + "y": 641, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#014b01" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard88.js b/src/scenes/postcards/Postcard88.js new file mode 100644 index 00000000..cb0f0b40 --- /dev/null +++ b/src/scenes/postcards/Postcard88.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard88 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/88", "88"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 848, 616); + this.add(goToButton); + + // name + const name = scene.add.text(128, 593, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000066", "fixedWidth":368,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 200; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard88.scene b/src/scenes/postcards/Postcard88.scene new file mode 100644 index 00000000..35d0de57 --- /dev/null +++ b/src/scenes/postcards/Postcard88.scene @@ -0,0 +1,72 @@ +{ + "id": "8060224e-08e7-4540-ab35-0c9d1ccbc763", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "d98ed2dd-3a35-4fc9-bce2-1292091fbf86", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "19ace80d-2e9e-4a42-9f44-256274ad1da5", + "label": "bg", + "texture": { + "key": "postcards/sprites/88", + "frame": "88" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "c73e5bdd-a355-4ec1-9b88-f1089663a683", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 200, + "x": 848, + "y": 616 + }, + { + "type": "Text", + "id": "d42d1b70-079b-463c-9a15-732183bb5e4d", + "label": "name", + "scope": "CLASS", + "x": 128, + "y": 593, + "text": "penguin88888888", + "fixedWidth": 368, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#000066" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard89.js b/src/scenes/postcards/Postcard89.js new file mode 100644 index 00000000..182d9dc1 --- /dev/null +++ b/src/scenes/postcards/Postcard89.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard89 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/89", "89"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 410, 172); + this.add(goToButton); + + // name + const name = scene.add.text(358, 98, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 809; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard89.scene b/src/scenes/postcards/Postcard89.scene new file mode 100644 index 00000000..1b0521c2 --- /dev/null +++ b/src/scenes/postcards/Postcard89.scene @@ -0,0 +1,72 @@ +{ + "id": "d9b7b9f6-ce6b-41d9-aaa6-0cd1d11c54bc", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "0bf013c9-f462-4f36-bc8e-1c903876a191", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "6513c713-cc02-4fca-a758-46241bf93199", + "label": "bg", + "texture": { + "key": "postcards/sprites/89", + "frame": "89" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "238b7017-0d73-433d-a526-0537306aa28d", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 809, + "x": 410, + "y": 172 + }, + { + "type": "Text", + "id": "807a5638-4b50-46cd-b8e0-d33d962ff4a3", + "label": "name", + "scope": "CLASS", + "x": 358, + "y": 98, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard9.js b/src/scenes/postcards/Postcard9.js new file mode 100644 index 00000000..e4eb95da --- /dev/null +++ b/src/scenes/postcards/Postcard9.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard9 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/9", "9"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(52, 524, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#0e2828", "fixedWidth":384,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard9.scene b/src/scenes/postcards/Postcard9.scene new file mode 100644 index 00000000..b9db9f9a --- /dev/null +++ b/src/scenes/postcards/Postcard9.scene @@ -0,0 +1,61 @@ +{ + "id": "dd63da92-ce14-4413-b2c9-2ac614898d93", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "212bc34f-c36c-4773-be2a-411ccd8d898e", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "51843f24-0295-4dfb-8d5a-77d7240a4177", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/9", + "frame": "9" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "c138725a-2528-4c29-bb3e-aff1d5e544ba", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 52, + "y": 524, + "text": "penguin88888888", + "fixedWidth": 384, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#0e2828" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard90.js b/src/scenes/postcards/Postcard90.js new file mode 100644 index 00000000..ad122c80 --- /dev/null +++ b/src/scenes/postcards/Postcard90.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard90 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/90", "90"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 112, 615); + this.add(goToButton); + + // name + const name = scene.add.text(602, 607, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "34px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard90.scene b/src/scenes/postcards/Postcard90.scene new file mode 100644 index 00000000..a00150f3 --- /dev/null +++ b/src/scenes/postcards/Postcard90.scene @@ -0,0 +1,72 @@ +{ + "id": "587e1edd-e1fc-4858-956c-d389273d5226", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "ca6d09db-6f17-4f75-be5c-cae10b17d0ec", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "16d5a82e-e649-43d2-b19d-6ba4733a9b61", + "label": "bg", + "texture": { + "key": "postcards/sprites/90", + "frame": "90" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "82c7eb54-ff7b-482e-b41a-da299a55dd6c", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 112, + "y": 615 + }, + { + "type": "Text", + "id": "b07a20a3-6515-43df-b167-9f631e6b41ea", + "label": "name", + "scope": "CLASS", + "x": 602, + "y": 607, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "34px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard91.js b/src/scenes/postcards/Postcard91.js new file mode 100644 index 00000000..24d6a2e2 --- /dev/null +++ b/src/scenes/postcards/Postcard91.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard91 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/91", "91"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 224, 581); + this.add(goToButton); + + // name + const name = scene.add.text(41, 185, "", {}); + name.text = "penguin888888888"; + name.setStyle({ "align": "center", "color": "#330066", "fixedWidth":394,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard91.scene b/src/scenes/postcards/Postcard91.scene new file mode 100644 index 00000000..1b7ed2b1 --- /dev/null +++ b/src/scenes/postcards/Postcard91.scene @@ -0,0 +1,73 @@ +{ + "id": "bf77c048-92cf-42b6-8330-cb3af2691d50", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "377d2e7f-15bc-4393-a7ba-8dc40b012576", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "019d3f8f-0e10-466d-958b-46a15e90dcaf", + "label": "bg", + "texture": { + "key": "postcards/sprites/91", + "frame": "91" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "98a795b7-c97d-480b-b8e2-a4b7fb967364", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 224, + "y": 581 + }, + { + "type": "Text", + "id": "23c8cbe9-04da-4449-a7d5-c196237a009c", + "label": "name", + "scope": "CLASS", + "x": 41, + "y": 185, + "text": "penguin888888888", + "fixedWidth": 394, + "paddingLeft": 5, + "paddingRight": 5, + "align": "center", + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#330066" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard92.js b/src/scenes/postcards/Postcard92.js new file mode 100644 index 00000000..8f99607f --- /dev/null +++ b/src/scenes/postcards/Postcard92.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard92 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/92", "92"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 125, 616); + this.add(goToButton); + + // name + const name = scene.add.text(128, 543, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#002933", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 809; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard92.scene b/src/scenes/postcards/Postcard92.scene new file mode 100644 index 00000000..ce60bee1 --- /dev/null +++ b/src/scenes/postcards/Postcard92.scene @@ -0,0 +1,72 @@ +{ + "id": "6115afa8-6e97-4e64-94ba-685cc0a0289d", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "6b8d0894-930a-45f5-8866-8411b44bdda1", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "98a70241-364b-4e49-a66e-17c41dcb60b5", + "label": "bg", + "texture": { + "key": "postcards/sprites/92", + "frame": "92" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "5044f098-cd0f-45b4-b7ce-73f990bfc783", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 809, + "x": 125, + "y": 616 + }, + { + "type": "Text", + "id": "0e63361c-bc2b-4c67-bc2f-063462748bd8", + "label": "name", + "scope": "CLASS", + "x": 128, + "y": 543, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#002933" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard93.js b/src/scenes/postcards/Postcard93.js new file mode 100644 index 00000000..d47dbdd9 --- /dev/null +++ b/src/scenes/postcards/Postcard93.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard93 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/93", "93"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(504, 590, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#fedb31", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard93.scene b/src/scenes/postcards/Postcard93.scene new file mode 100644 index 00000000..b09ba8d8 --- /dev/null +++ b/src/scenes/postcards/Postcard93.scene @@ -0,0 +1,61 @@ +{ + "id": "1e4db439-8a98-4c17-a6cf-c384968078db", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "ec09ca16-7f2a-420f-bc2f-42efdfc0e324", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "57ccca86-ad14-4774-86e7-391925b7a36b", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/93", + "frame": "93" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "c6e96cbc-dcc2-4c1c-bab1-b87a39ec951d", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 504, + "y": 590, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#fedb31" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard94.js b/src/scenes/postcards/Postcard94.js new file mode 100644 index 00000000..f4fabcb6 --- /dev/null +++ b/src/scenes/postcards/Postcard94.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard94 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/94", "94"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 853, 623); + this.add(goToButton); + + // name + const name = scene.add.text(473, 606, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 809; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard94.scene b/src/scenes/postcards/Postcard94.scene new file mode 100644 index 00000000..2a79e174 --- /dev/null +++ b/src/scenes/postcards/Postcard94.scene @@ -0,0 +1,72 @@ +{ + "id": "e46079c2-08db-4452-aea2-195329155462", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "b7d8b07d-5b86-4eba-bf4f-899407452477", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "4982fc57-3e1f-4eeb-8ca5-bd20ad10f40d", + "label": "bg", + "texture": { + "key": "postcards/sprites/94", + "frame": "94" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "841f715c-a010-4798-99c3-8e1383f8f386", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 809, + "x": 853, + "y": 623 + }, + { + "type": "Text", + "id": "7a2e53b5-7308-4bdc-99da-12d6d0baafba", + "label": "name", + "scope": "CLASS", + "x": 473, + "y": 606, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard95.js b/src/scenes/postcards/Postcard95.js new file mode 100644 index 00000000..a71e0465 --- /dev/null +++ b/src/scenes/postcards/Postcard95.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard95 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/95", "95"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 853, 625); + this.add(goToButton); + + // name + const name = scene.add.text(473, 606, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 809; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard95.scene b/src/scenes/postcards/Postcard95.scene new file mode 100644 index 00000000..1a7a9db9 --- /dev/null +++ b/src/scenes/postcards/Postcard95.scene @@ -0,0 +1,72 @@ +{ + "id": "c3eb567b-febf-4bd8-aff6-6649ff5640d7", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "243ccdaf-10e0-491c-ba01-129303fe9b74", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "0a21841c-14df-4655-a099-bb9582cba35c", + "label": "bg", + "texture": { + "key": "postcards/sprites/95", + "frame": "95" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "0b232cb8-d25e-4fcc-9a14-f1ccd32fc731", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 809, + "x": 853, + "y": 625 + }, + { + "type": "Text", + "id": "dfd08df5-68a1-479c-82a4-b13f865313f8", + "label": "name", + "scope": "CLASS", + "x": 473, + "y": 606, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard96.js b/src/scenes/postcards/Postcard96.js new file mode 100644 index 00000000..84da77a3 --- /dev/null +++ b/src/scenes/postcards/Postcard96.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard96 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/96", "96"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 853, 623); + this.add(goToButton); + + // name + const name = scene.add.text(473, 606, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#000000", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "30px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 809; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard96.scene b/src/scenes/postcards/Postcard96.scene new file mode 100644 index 00000000..19154a9f --- /dev/null +++ b/src/scenes/postcards/Postcard96.scene @@ -0,0 +1,72 @@ +{ + "id": "412266cc-f952-48b3-9da9-0994ddccb317", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "894b325f-7443-4906-b53d-91649f7b3746", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "7bf1dd8c-df70-4129-9acf-ab32dd8ce1a6", + "label": "bg", + "texture": { + "key": "postcards/sprites/96", + "frame": "96" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "ded565db-a8f9-4e23-b31e-effc7201f3ab", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 809, + "x": 853, + "y": 623 + }, + { + "type": "Text", + "id": "86958fde-909f-4d95-83ba-3473bef2ae5b", + "label": "name", + "scope": "CLASS", + "x": 473, + "y": 606, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "30px", + "color": "#000000" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard98.js b/src/scenes/postcards/Postcard98.js new file mode 100644 index 00000000..e7144230 --- /dev/null +++ b/src/scenes/postcards/Postcard98.js @@ -0,0 +1,50 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +import GoToButton from "./buttons/GoToButton"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard98 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {GoToButton} */ + this.goToButton; + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/98", "98"); + bg.setOrigin(0, 0); + this.add(bg); + + // goToButton + const goToButton = new GoToButton(scene, 851, 618); + this.add(goToButton); + + // name + const name = scene.add.text(421, 599, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + // goToButton (prefab fields) + goToButton.roomId = 340; + + this.goToButton = goToButton; + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard98.scene b/src/scenes/postcards/Postcard98.scene new file mode 100644 index 00000000..4f1e96ac --- /dev/null +++ b/src/scenes/postcards/Postcard98.scene @@ -0,0 +1,72 @@ +{ + "id": "24cec474-b337-4de2-8878-dd369303a232", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "c2f81092-df91-43a9-9c46-7ae79fc1e5d5", + "label": "container_1", + "list": [ + { + "type": "Image", + "id": "538ece74-0c49-4610-b1f0-cdb0ce247c0f", + "label": "bg", + "texture": { + "key": "postcards/sprites/98", + "frame": "98" + }, + "originX": 0, + "originY": 0 + }, + { + "prefabId": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "id": "5a150264-2e26-4d5d-aca0-50ad5faacda2", + "unlock": [ + "x", + "y", + "roomId" + ], + "label": "goToButton", + "scope": "CLASS", + "roomId": 340, + "x": 851, + "y": 618 + }, + { + "type": "Text", + "id": "68e67a92-d8da-4a1b-ba6f-c89ea4e30b7c", + "label": "name", + "scope": "CLASS", + "x": 421, + "y": 599, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/Postcard99.js b/src/scenes/postcards/Postcard99.js new file mode 100644 index 00000000..afcfcf4d --- /dev/null +++ b/src/scenes/postcards/Postcard99.js @@ -0,0 +1,39 @@ +/* START OF COMPILED CODE */ + +import BasePostcard from "./base/BasePostcard"; +/* START-USER-IMPORTS */ +/* END-USER-IMPORTS */ + +export default class Postcard99 extends BasePostcard { + + constructor(scene, x, y) { + super(scene, x ?? 0, y ?? 0); + + /** @type {Phaser.GameObjects.Text} */ + this.name; + + + // bg + const bg = scene.add.image(0, 0, "postcards/sprites/99", "99"); + bg.setOrigin(0, 0); + this.add(bg); + + // name + const name = scene.add.text(140, 113, "", {}); + name.text = "penguin88888888"; + name.setStyle({ "color": "#ffffff", "fixedWidth":372,"fontFamily": "CCFaceFront", "fontSize": "36px" }); + name.setPadding({"left":5,"right":5}); + this.add(name); + + this.name = name; + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/Postcard99.scene b/src/scenes/postcards/Postcard99.scene new file mode 100644 index 00000000..34cdcd81 --- /dev/null +++ b/src/scenes/postcards/Postcard99.scene @@ -0,0 +1,61 @@ +{ + "id": "16b7af1b-0137-4573-8c75-880f4c415ae4", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BasePostcard", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Container", + "id": "e8a9d1e0-0f6f-4d5e-b59e-8ad6fb8844b1", + "label": "container_1", + "components": [], + "list": [ + { + "type": "Image", + "id": "0e622bc0-7109-4210-8b62-1a3eae249141", + "label": "bg", + "components": [], + "texture": { + "key": "postcards/sprites/99", + "frame": "99" + }, + "originX": 0, + "originY": 0 + }, + { + "type": "Text", + "id": "06347051-cf84-4b58-9647-c21e0e2d2f5d", + "label": "name", + "scope": "CLASS", + "components": [], + "x": 140, + "y": 113, + "text": "penguin88888888", + "fixedWidth": 372, + "paddingLeft": 5, + "paddingRight": 5, + "fontFamily": "CCFaceFront", + "fontSize": "36px", + "color": "#ffffff" + } + ] + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 3 + } +} \ No newline at end of file diff --git a/src/scenes/postcards/base/BasePostcard.js b/src/scenes/postcards/base/BasePostcard.js new file mode 100644 index 00000000..cd994d5d --- /dev/null +++ b/src/scenes/postcards/base/BasePostcard.js @@ -0,0 +1,29 @@ +import BaseContainer from '@scenes/base/BaseContainer' + + +export default class BasePostcard extends BaseContainer { + + constructor(scene, x, y) { + super(scene, x, y) + + this.name = null + this.goToButton = null + } + + get clientName() { + return this.world.client.penguin.username + } + + setName(name) { + if (this.name) { + this.name.text = name + } + } + + enableInput() { + if (this.goToButton) { + this.goToButton.enableInput() + } + } + +} diff --git a/src/scenes/postcards/buttons/GoToButton.js b/src/scenes/postcards/buttons/GoToButton.js new file mode 100644 index 00000000..0ea6b124 --- /dev/null +++ b/src/scenes/postcards/buttons/GoToButton.js @@ -0,0 +1,51 @@ +/* START OF COMPILED CODE */ + +import BaseImage from "../../base/BaseImage"; +/* START-USER-IMPORTS */ + +import Button from '@scenes/components/Button' + +/* END-USER-IMPORTS */ + +export default class GoToButton extends BaseImage { + + constructor(scene, x, y, texture, frame) { + super(scene, x ?? 760, y ?? 480, texture || "mail", frame ?? "goto_button"); + + /** @type {number} */ + this.roomId = 0; + + + this.setOrigin(0.5031847133757962, 0.5); + + /* START-USER-CTR-CODE */ + /* END-USER-CTR-CODE */ + } + + + /* START-USER-CODE */ + + enableInput() { + const component = new Button(this) + + component.spriteName = 'goto_button' + component.callback = () => this.onClick() + component.activeFrame = false + } + + onClick() { + if (this.roomId in this.crumbs.scenes.rooms) { + const room = this.crumbs.scenes.rooms[this.roomId] + + if (this.world.room.key !== room.key) { + this.world.client.sendJoinRoom(this.roomId, room.key, room.x, room.y) + } + } + + this.interface.main.mail.close() + } + + /* END-USER-CODE */ +} + +/* END OF COMPILED CODE */ diff --git a/src/scenes/postcards/buttons/GoToButton.scene b/src/scenes/postcards/buttons/GoToButton.scene new file mode 100644 index 00000000..457807cc --- /dev/null +++ b/src/scenes/postcards/buttons/GoToButton.scene @@ -0,0 +1,49 @@ +{ + "id": "7b32da7b-162b-4670-aa32-cf9d3cfd4f83", + "sceneType": "PREFAB", + "settings": { + "compilerInsertSpaces": true, + "javaScriptInitFieldsInConstructor": true, + "exportClass": true, + "autoImport": true, + "superClassName": "BaseImage", + "preloadMethodName": "", + "preloadPackFiles": [], + "createMethodName": "", + "borderWidth": 1520, + "borderHeight": 960 + }, + "displayList": [ + { + "type": "Image", + "id": "921e57bb-dd12-4616-91e2-f0ed18fec057", + "label": "goto_button", + "texture": { + "key": "mail", + "frame": "goto_button" + }, + "x": 760, + "y": 480, + "originX": 0.5031847133757962 + } + ], + "plainObjects": [], + "meta": { + "app": "Phaser Editor 2D - Scene Editor", + "url": "https://phasereditor2d.com", + "contentType": "phasereditor2d.core.scene.SceneContentType", + "version": 5 + }, + "prefabProperties": [ + { + "name": "roomId", + "label": "roomId", + "tooltip": "roomId", + "defValue": 0, + "customDefinition": false, + "type": { + "id": "number" + } + } + ] +} \ No newline at end of file diff --git a/utils/build-crumbs.js b/utils/build-crumbs.js index c1de07e3..7803e0b3 100644 --- a/utils/build-crumbs.js +++ b/utils/build-crumbs.js @@ -13,6 +13,7 @@ const crumbs = { igloos: require(`${assets}/igloos.json`), items: require(`${assets}/items.json`), penguin: require(`${assets}/penguin.json`), + postcards: require(`${assets}/postcards.json`), quick_keys: require(`${assets}/quick_keys.json`), safe_messages: require(`${assets}/safe_messages.json`), secret_frames: require(`${assets}/secret_frames.json`), diff --git a/webpack.config.js b/webpack.config.js index 7517b6ef..305eb049 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -16,7 +16,8 @@ let config = { yukon: './src/Game.js' }, output: { - filename: 'yukon.js', + filename: '[name].bundle.js', + chunkFilename: '[id].bundle.js', path: path.resolve(__dirname, 'assets/scripts/client') }, optimization : { @@ -91,7 +92,8 @@ module.exports = (env, argv) => { } config.output = { - filename: 'assets/scripts/client/[name].min.js', + filename: 'assets/scripts/client/[name].bundle.min.js', + chunkFilename: 'assets/scripts/client/[id].bundle.min.js', path: path.resolve(__dirname, 'dist'), clean: true, } diff --git a/webpack_plugins/BannerPlugin.js b/webpack_plugins/BannerPlugin.js index 1055c2f4..7e99693b 100644 --- a/webpack_plugins/BannerPlugin.js +++ b/webpack_plugins/BannerPlugin.js @@ -2,7 +2,8 @@ class BannerPlugin { constructor(options) { - this.banner = options.banner + // Convert to comment block + this.banner = `/*\n${options.banner}*/\n` } apply(compiler) { @@ -11,9 +12,6 @@ class BannerPlugin { chunk.files.forEach(filename => { const asset = compilation.assets[filename] - // Convert to comment block - this.banner = `/*\n${this.banner}*/\n` - // Append banner asset._value = `${this.banner}${asset._value}` })