commit ebe67886bb593e20ad272e8545163324ba869352
Author: root <root@hub.scroll.pub> Date: 2024-12-31 07:43:41 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..779ccdd --- /dev/null +++ b/body.html @@ -0,0 +1,23 @@ +<header> + <h1>修真对话养成游戏</h1> + <p>踏上修真之路,与灵兽对话,提升修为,探索神秘世界。</p> +</header> +<main> + <section id="dialogue"> + <div id="dialogue-box"> + <p id="dialogue-text">欢迎来到修真世界!你准备好开始你的修真之旅了吗?</p> + </div> + <div id="response-buttons"> + <button onclick="chooseResponse(1)">开始修真</button> + <button onclick="chooseResponse(2)">了解更多</button> + </div> + </section> + <section id="character-info"> + <h2>角色信息</h2> + <p>修为:<span id="cultivation-level">凡人</span></p> + <p>灵兽:<span id="spirit-beast">无</span></p> + </section> +</main> +<footer> + <p>探索更多修真奥秘,提升你的修为!</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..c72c2c8 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://xiuzhen.scroll.pub +metaTags +editButton /edit.html +title 修真对话养成游戏 +style.css +body.html +script.js \ No newline at end of file diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..12db5fb --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "5abeb8d9-9784-4bf8-ae11-0c682d31d235", + "object": "chat.completion", + "created": 1735631000, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nxiuzhen.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://xiuzhen.scroll.pub\nmetaTags\neditButton /edit.html\ntitle 修真对话养成游戏\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>修真对话养成游戏</h1>\n <p>踏上修真之路,与灵兽对话,提升修为,探索神秘世界。</p>\n</header>\n<main>\n <section id=\"dialogue\">\n <div id=\"dialogue-box\">\n <p id=\"dialogue-text\">欢迎来到修真世界!你准备好开始你的修真之旅了吗?</p>\n </div>\n <div id=\"response-buttons\">\n <button onclick=\"chooseResponse(1)\">开始修真</button>\n <button onclick=\"chooseResponse(2)\">了解更多</button>\n </div>\n </section>\n <section id=\"character-info\">\n <h2>角色信息</h2>\n <p>修为:<span id=\"cultivation-level\">凡人</span></p>\n <p>灵兽:<span id=\"spirit-beast\">无</span></p>\n </section>\n</main>\n<footer>\n <p>探索更多修真奥秘,提升你的修为!</p>\n</footer>\n---style.css---\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n background-color: #f0f4f8;\n color: #333;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-height: 100vh;\n}\n\nheader {\n text-align: center;\n padding: 2rem;\n background-color: #4a90e2;\n color: white;\n width: 100%;\n}\n\nheader h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nheader p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\nmain {\n width: 90%;\n max-width: 800px;\n margin: 2rem auto;\n background-color: white;\n padding: 2rem;\n border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\n#dialogue-box {\n background-color: #e3f2fd;\n padding: 1.5rem;\n border-radius: 8px;\n margin-bottom: 1.5rem;\n}\n\n#dialogue-text {\n font-size: 1.1rem;\n line-height: 1.6;\n}\n\n#response-buttons {\n display: flex;\n gap: 1rem;\n justify-content: center;\n}\n\nbutton {\n background-color: #4a90e2;\n color: white;\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: 5px;\n cursor: pointer;\n font-size: 1rem;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: #357abd;\n}\n\n#character-info {\n margin-top: 2rem;\n text-align: center;\n}\n\n#character-info h2 {\n font-size: 1.5rem;\n margin-bottom: 1rem;\n}\n\n#character-info p {\n font-size: 1.1rem;\n margin: 0.5rem 0;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background-color: #4a90e2;\n color: white;\n width: 100%;\n margin-top: auto;\n}\n\nfooter p {\n margin: 0;\n font-size: 1rem;\n}\n\n@media (max-width: 600px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n #dialogue-text {\n font-size: 1rem;\n }\n\n button {\n padding: 0.5rem 1rem;\n font-size: 0.9rem;\n }\n\n #character-info h2 {\n font-size: 1.3rem;\n }\n\n #character-info p {\n font-size: 1rem;\n }\n}\n---script.js---\nlet cultivationLevel = '凡人';\nlet spiritBeast = '无';\n\nfunction chooseResponse(response) {\n const dialogueText = document.getElementById('dialogue-text');\n const cultivationLevelSpan = document.getElementById('cultivation-level');\n const spiritBeastSpan = document.getElementById('spirit-beast');\n\n if (response === 1) {\n dialogueText.textContent = '你已踏上修真之路,努力修炼,提升修为吧!';\n cultivationLevel = '炼气期';\n cultivationLevelSpan.textContent = cultivationLevel;\n } else if (response === 2) {\n dialogueText.textContent = '修真世界充满神秘与挑战,与灵兽结伴,共同成长。';\n spiritBeast = '灵狐';\n spiritBeastSpan.textContent = spiritBeast;\n }\n}\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 244, + "completion_tokens": 1140, + "total_tokens": 1384, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 244 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..ab4aba0 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# xiuzhen.scroll.pub +Website generated by DeepSeek from prompt: 我想创建一个中文版关于修真的对话养成游戏 \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..59a4f12 --- /dev/null +++ b/script.js @@ -0,0 +1,18 @@ +let cultivationLevel = '凡人'; +let spiritBeast = '无'; + +function chooseResponse(response) { + const dialogueText = document.getElementById('dialogue-text'); + const cultivationLevelSpan = document.getElementById('cultivation-level'); + const spiritBeastSpan = document.getElementById('spirit-beast'); + + if (response === 1) { + dialogueText.textContent = '你已踏上修真之路,努力修炼,提升修为吧!'; + cultivationLevel = '炼气期'; + cultivationLevelSpan.textContent = cultivationLevel; + } else if (response === 2) { + dialogueText.textContent = '修真世界充满神秘与挑战,与灵兽结伴,共同成长。'; + spiritBeast = '灵狐'; + spiritBeastSpan.textContent = spiritBeast; + } +} \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..e1c2b44 --- /dev/null +++ b/style.css @@ -0,0 +1,129 @@ +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background-color: #f0f4f8; + color: #333; + margin: 0; + padding: 0; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + min-height: 100vh; +} + +header { + text-align: center; + padding: 2rem; + background-color: #4a90e2; + color: white; + width: 100%; +} + +header h1 { + margin: 0; + font-size: 2.5rem; +} + +header p { + margin: 0.5rem 0 0; + font-size: 1.2rem; +} + +main { + width: 90%; + max-width: 800px; + margin: 2rem auto; + background-color: white; + padding: 2rem; + border-radius: 10px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +#dialogue-box { + background-color: #e3f2fd; + padding: 1.5rem; + border-radius: 8px; + margin-bottom: 1.5rem; +} + +#dialogue-text { + font-size: 1.1rem; + line-height: 1.6; +} + +#response-buttons { + display: flex; + gap: 1rem; + justify-content: center; +} + +button { + background-color: #4a90e2; + color: white; + border: none; + padding: 0.75rem 1.5rem; + border-radius: 5px; + cursor: pointer; + font-size: 1rem; + transition: background-color 0.3s ease; +} + +button:hover { + background-color: #357abd; +} + +#character-info { + margin-top: 2rem; + text-align: center; +} + +#character-info h2 { + font-size: 1.5rem; + margin-bottom: 1rem; +} + +#character-info p { + font-size: 1.1rem; + margin: 0.5rem 0; +} + +footer { + text-align: center; + padding: 1rem; + background-color: #4a90e2; + color: white; + width: 100%; + margin-top: auto; +} + +footer p { + margin: 0; + font-size: 1rem; +} + +@media (max-width: 600px) { + header h1 { + font-size: 2rem; + } + + header p { + font-size: 1rem; + } + + #dialogue-text { + font-size: 1rem; + } + + button { + padding: 0.5rem 1rem; + font-size: 0.9rem; + } + + #character-info h2 { + font-size: 1.3rem; + } + + #character-info p { + font-size: 1rem; + } +} \ No newline at end of file