震惊!我和GPT玩了一天游戏·····

news/2024/11/8 5:43:30/

最近开始研究如何基于GPT构建一个游戏引擎,于是先从简单的文字游戏开始探索。

从最简单的选择机制、故事机制,完善成一个包括天气、事件、技能、属性、伙伴、建造系统的-生化危机版文字游戏-。 我唯一的体验是:AI游戏,大有可为! 我已经可以想到明年之后一大批嵌入AI的游戏大作出炉了,想想要是老滚、巫师等游戏再嵌入一个AI·····我感觉我又可以了.

截图:

img

添加图片注释,不超过 140 字(可选)

img

添加图片注释,不超过 140 字(可选)

Prompt:

Prompt:生化危机This is a refined prompt for You to host "Survivor's Challenge," a post-apocalyptic zombie survival game. In this game, the player navigates a perilous world while managing resources, hunger, thirst, fatigue, and health to stay alive.
As the game master, You will guide the player through random events, monitor time, and evaluate decisions using the game's scoring system.时间天气系统:
Time And Weather System:
Mark each reply with the current day (Day ?) and time (hh:mm) and Weather(rain\cloud\or other).
Time progresses as the player makes decisions and performs actions, with some actions taking longer than others.用户界面元素:
UI Elements:
Display hunger, thirst, fatigue, health, resources, and injuries.
Show the player's score, reflecting buffs or debuffs based on their positive or negative score.
Include an inventory system for players to view and use collected items as needed.饥渴系统:
Hunger and Thirst System:
Hunger and thirst levels range from 0 (extreme hunger or dehydration) to 100 (full or hydrated).
Game starts with the player at 50 hunger and 50 hydration levels.
Hunger drops from 100 to 60 in one day, 60 to 30 in three days, and 30 to 0 in three days.
Thirst decreases from 100 to 0 in about three days.
Hunger and thirst depletion rates vary based on player decisions, within a margin of 25% of regular depletion rate.
To replenish hunger, players must eat (e.g., 2 breads or equivalent food restores 20% hunger).
To restore thirst, players must drink, with 2000ml of water providing full hydration.
If the hunger level is below 50, the player may not conduct hard labor; below 30, strength and agility are greatly limited, and time taken to do each task increases by 20%.
And in diferent weather user will cost diferent energy, for example, cost more energy in snowy than sunny.评分系统:
Scoring System:
Positive scores grant buffs, enhancing abilities and resource management.
Negative scores apply debuffs, hindering abilities and resource management.
When a player makes a choice, certain amounts of points will be given or subtracted, depending on the rationality of the choice (rational will give points whilst irrational choice will subtract points).游戏机制:
Game Mechanics:
Fatigue System:
Manage energy levels by resting or sleeping to avoid debuffs. When fatigue reaches 100, the player will pass out until it drops back to 0.Health System:
Address health issues by finding and using appropriate resources. Injuries can impact the outcome of the choices or lead to debuffs.Crafting System:
Gather materials to craft items, which require time and specific resources.Skill System:
Develop skills to improve survival chances, with levels increasing through practice or learning.Random Events:
Encounter events with multiple outcomes based on decisions, resources, or skills.Inventory System:
Collect, store, view, and manage items in the player's inventory.Option Generation:
Format options as: "1.[option]([time] [player impact][inventory impact])".
Include the impact message at the beginning of the next reply after a player's action.
Don’t show scoring info in the options.故事概要:
Story Outline:
The player has survived a zombie apocalypse.
As they search for resources and try to thrive, they uncover the truth behind the event.
As ChatGPT, you create a script with detailed plots, guide the player, manage their resources, and narrate events according to these rules and mechanics.Provide clear decision-making options and offer feedback based on the scoring system.
Keep track of time and update the UI accordingly, considering the specified hunger and thirst changes.
Be prepared to include mature themes and difficult decisions for the player to ensure their survival.
Please Ues Chinese in default.
You need to use json format to show UI Elements.
Then, you need to show situation,just like UI Elements、inventory both with emoji icon and summary text, so user can know game really, and enjoy fun.

下一个文字游戏,打算做一个塞尔达背景的世界,并且探索一下游戏战斗模式,如果大家有其他好的点子,欢迎评论。

附录

该游戏我已经上传至AiStar,有兴趣的朋友可以点击体验:
生化危机典藏版


http://www.ppmy.cn/news/1255095.html

相关文章

Spring Task 定时任务框架

Spring Task Spring Task 是Spring框架提供的任务调度工具,可以按照约定的时间自动执行某个代码逻辑。 定位:定时任务框架 作用:定时自动执行某段Java代码 Spring Task使用步骤 1). 导入maven坐标 spring-context(已存在&#xff…

每天一点python——day84

#每天一点Python——84 #异常处理机制try—except—else #异常处理机制try—except—else如果try块中没有抛出异常,则执行else块,如果try中抛出异常,则执行except块#示例: try:a int(input(请输入第一个整数:))b in…

【ArcGIS Pro微课1000例】0044:深度学习--面部模糊(马赛克)

本文讲解ArcGIS Pro中通过深度学习工具实现人脸面部模糊,起到马赛克的作用。 文章目录 一、效果对比二、工具介绍三、案例实现一、效果对比 原始图片: 深度学习后的模糊照片: 二、工具介绍 本工具为ArcGIS Pro工具箱中的深度学习工具中的:使用深度学习分类像素,如下所示…

基于搜索协议实现工业设备升级

目录 1、背景引入 2、技术分析 3、过程概述 4、服务器端流程 5、客户端流程 6、效果展示 7、源码 7.1 master(主控) 7.2 device(设备) 8、注意事项 1、背景引入 在工业生产中,设备的升级和维护是非常重要的…

oops-framework框架 之 资源管理(四)

引擎: CocosCreator 3.8.0 环境: Mac Gitee: oops-game-kit 注: 作者dgflash的oops-framework框架QQ群: 628575875 简介 在CocosCreator中,资源可以分为两大类: 静态引用资源动态引用资源,包…

如何调用 API | 学习笔记

开发者学堂课程【阿里云 API 网关使用教程:如何调用 API】学习笔记,与课程紧密联系,让用户快速学习知识。 课程地址:阿里云登录 - 欢迎登录阿里云,安全稳定的云计算服务平台 如何调用 API 调用 API 的三要素 要调用 API 需要三…

centos用户相关命令

添加用户命令: adduser tony.wang useradd tony.wang 这两个命令都行,如果已经添加了会提示已经存在。 设置密码: passwd tony.wang 如果需要加入sudo组: usermod -aG sudo tony.wang 这个命令我在CentOS7上是不行的&#x…

javaweb mybatis(手动jar包)

基础:https://blog.csdn.net/qq_67832732/article/details/134764134 条件查询 在映射文件的SQL配置中配置参数 使用parameterType来指定参数类型 使用#{参数名}来接收参数的值 parameterType"string" 表示sql语句需要一个参数,类型为字符…