跳到正文

个人记录

一个新的游戏企划

小小小苗约 4 分钟
原文
文章信息与版本

文章信息

发布
2018年8月16日
收录
2025年12月12日
更新
2026年10月1日
篇幅
约 4 分钟

版本

  1. v2当前
  2. v1
C++
#include<bits/stdc++.h>
#include<windows.h>
#include<time.h>
#include<conio.h>
int x;
int zs;
int swjs;
int whg;
char ch;
using namespace std;
void ss(string a)
{
    for(int i=0;i<a.size();i++)
    {
        cout<<a[i];
        Sleep(30);
    }
    printf("\n");
}
int read(int x)
{
    int y;
    while(true)
    {
        scanf("%d",&y);
        if(y<1||y>x)
        {
            printf("请重新输入\n");
            continue;
        }
        break;
    }
    return y;
}
int jxyx()
{

}
int swyx()
{
    zs=0;
    system("cls");
    ss("林肯死大头!!!");
    ss("随着这样的一个命令,你短暂的失去了意识");
    ss("当意识恢复时,你飘在一个奇怪的空间");
    ss("在你的下方有着两个人");
    ss("紧接着,你的脑海中响起一段话");
    ss("请选择游戏人物");
    ss("1.选择左边的人");
    ss("2.选择右边的人");
    ss("3.下线");
    while(true)
    {
        x=read(3);
        if(x==3)
        {
            ss("游戏结束");
            ss("........");
            ss(" 你死了 ");
            return 0;
        }
        if(x==1)
        {
            if(zs==3)
            {
                ss("正在进入副本");
                ss("该副本《丧失危机》已通。。。。。。");
                ss("忽然,你脑海中的声音换了一个");
                ss("不要试图挑战我的耐心");
                ss("游戏结束");
                ss("........");
                ss(" 你死了 ");
                return 0;
            }
            if(zs==0)
            {
                ss("你选择了左边那个看起来饱经风霜的男人");
                ss("他穿着杂乱的衣物,背后背着一把枪和一个大背包");
                ss("腰间憋着一把奇特的手枪");
                ss("大背包中隐约能看到一箱压缩饼干");
                ss("正在你想的时候,那个声音又出现了");
            }
            ss("该人物已被封禁,暂时不可选用");
            ss("请重新选择");
            zs++;
            continue;
        }
        if(x==2)
        {
            ss("选择完毕");
            ss("正在进入副本");
        }
        break;
    }
    ch=_getch();
    while(true)
    {
		system("cls");
   		printf("1.进行游戏\n");
   	 	printf("2.查看\n");
	    x=read(2);
    	if(x==1)
    	    jxyx();
 	  	if(x==2)
 	   	{
     	    system("cls");
        	printf("死亡次数:%d\n",swjs);
	        printf("1.资料馆\n");
    	    printf("2.线索\n");
    	    printf("3.返回\n");
        	x=read(3);
        	if(x==1)
       		{
			}
			if(x==2)
			{
			}
    	}
	}
}
int main()
{
	swyx();
}
原文