An ignorant oier's entertainment - my game development experience

 foreword 

The 2023 LPL spring playoffs are in full swing. Which team do you think will be the champion? As a programmer who loves games, let's talk about your meaningful game development experiences!

A material, let me write a composition based on this. (The topic is self-made)

Let's go!

big experience

In the beginning, I didn't know anything about game development, I just heard that game development requires programming skills. So, I started to learn programming languages, taking c++ as an example. I wrote some small games in c++, such as Snake and 2048. This got me even more interested in game development.

After a period of study and practice, I began to explore more game development issues. I found that developing a game requires consideration of many factors, such as the design of the game screen, the construction of the scene, the production of animation and so on. I also started to pay attention to some game engines, such as Unity and Unreal Engine.

Then, I started trying to develop my own game. As I was learning, I was experimenting with different game genres, such as shooters and RPGs. I also gradually understood the core ideas and principles in game design, such as the balance between gameplay and operation, the relationship between game scenes and characters, and so on.

During the game development process, I was constantly challenged and improved my skills and knowledge. Although there will be many difficulties and setbacks in the process of game development, when you complete a game, the sense of accomplishment cannot be described in words.

Eventually, I developed my first game. It's a small achievement, but for me, it's a huge victory. I deeply felt the charm of game development and had a lot of fun.

Overall, game development is a job that requires courage and perseverance. However, if you are interested in games and are willing to learn and challenge, then game development will definitely become a great joy in your life.

my thoughts:

Game development is a popular skill and career, which involves skills in programming, design, creativity and many other aspects. For many beginners, game development may be an unfamiliar and distant field, but as long as you have the interest and courage to explore, you can embark on the road to success.

In my opinion, game development needs to start from the basics, start from learning programming languages, and go to in-depth study and practice step by step. Writing small games in C++ is a good way to learn, it can help beginners master the basics, and it can stimulate interest.

In the process of actually developing games, the issues involved are more extensive and diverse than programming. By learning the game engine and paying attention to the design principles of gameplay, operation, scenes and characters, you can better understand the core of game development. Thought.

In fact, game development is not an easy task. It requires creativity, patience, perseverance and the courage to overcome difficulties. Only by constantly overcoming challenges and accumulating experience and knowledge can one truly become an expert in game development.

However, although game development is full of challenges and difficulties, it brings people endless fun and creativity. A small game can be full of unexpected surprises and fun, and as a developer, creating such a game should be very proud and satisfying.

In conclusion, game development is a field of passion and interest, and although it requires hard work and perseverance, it can also bring you a lot of rewards and satisfaction. If you are interested in game development, then take the first step bravely, explore and learn, and make game development a great pleasure in your life.

Paste a small code (fragment):

A LJ game I made before (the code is placed in the link below)


void DataBaseRoll(){

	string NA1[444] = { "赵", "钱", "孙", "李", "周", "吴", "郑", "王", "冯", "陈", "褚", "卫", "蒋", "沈", "韩", "杨", "朱", "秦", "尤", "许", "何", "吕", "施", "张", "孔", "曹", "严", "华", "金", "魏", "陶", "姜", "戚", "谢", "邹", "喻", "柏", "水", "窦", "章", "云", "苏", "潘", "葛", "奚", "范", "彭", "郎", "鲁", "韦", "昌", "马", "苗", "凤", "花", "方", "俞", "任", "袁", "柳", "酆", "鲍", "史", "唐", "费", "廉", "岑", "薛", "雷", "贺", "倪", "汤", "滕", "殷", "罗", "毕", "郝", "邬", "安", "常", "乐", "于", "时", "傅", "皮", "卞", "齐", "康", "伍", "余", "元", "卜", "顾", "孟", "平", "黄", "和", "穆", "萧", "尹", "姚", "邵", "湛", "汪", "祁", "毛", "禹", "狄", "米", "贝", "明", "臧", "计", "伏", "成", "戴", "谈", "宋", "茅", "庞", "熊", "纪", "舒", "屈", "项", "祝", "董", "梁", "杜", "阮", "蓝", "闵", "席", "季", "麻", "强", "贾", "路", "娄", "危", "江", "童", "颜", "郭", "梅", "盛", "林", "刁", "钟", "徐", "邱", "骆", "高", "夏", "蔡", "田", "樊", "胡", "凌", "霍", "虞", "万", "支", "柯", "昝", "管", "卢", "莫", "经", "房", "裘", "缪", "干", "解", "应", "宗", "丁", "宣", "贲", "邓", "郁", "单", "杭", "洪", "包", "诸", "左", "石", "崔", "吉", "钮", "龚", "程", "嵇", "邢", "滑", "裴", "陆", "荣", "翁", "荀", "羊", "於", "惠", "甄", "麴", "家", "封", "芮", "羿", "储", "靳", "汲", "邴", "糜", "松", "井", "段", "富", "巫", "乌", "焦", "巴", "弓", "牧", "隗", "山", "谷", "车", "侯", "宓", "蓬", "全", "郗", "班", "仰", "秋", "仲", "伊", "宫", "宁", "仇", "栾", "暴", "甘", "钭", "厉", "戎", "祖", "武", "符", "刘", "景", "詹", "束", "龙", "叶", "幸", "司", "韶", "郜", "黎", "蓟", "薄", "印", "宿", "白", "怀", "蒲", "邰", "从", "鄂", "索", "咸", "籍", "赖", "卓", "蔺", "屠", "蒙","池", "乔", "阴", "郁", "胥", "能", "苍", "双", "闻", "莘", "党", "翟", "谭", "贡", "劳", "逄", "姬", "申", "扶", "堵", "冉", "宰", "郦", "雍", "舄", "璩", "桑", "桂", "濮", "牛", "寿", "通", "边", "扈", "燕", "冀", "郏", "浦", "尚", "农", "温", "别", "庄", "晏", "柴", "瞿", "阎", "充", "慕", "连", "茹", "习", "宦", "艾", "鱼", "容", "向", "古", "易", "慎", "戈", "廖", "庾", "终", "暨", "居", "衡", "步", "都", "耿", "满", "弘", "匡", "国", "文", "寇", "广", "禄", "阙", "东", "殴", "殳", "沃", "利", "蔚", "越", "夔", "隆", "师", "巩", "厍", "聂", "晁", "勾", "敖", "融", "冷", "訾", "辛", "阚", "那", "简", "饶", "空", "曾", "毋", "沙", "乜", "养", "鞠", "须", "丰", "巢", "关", "蒯", "相", "查", "後", "荆", "红", "游", "竺", "权", "逯", "盖", "益", "桓", "公", "仉", "督", "晋", "楚", "闫", "法", "汝", "鄢", "涂", "钦", "归", "海","岳", "帅", "缑", "亢", "况", "后", "有", "琴", "商", "牟", "佘", "佴", "伯", "赏", "墨", "哈", "谯", "笪", "年", "爱", "阳", "佟", "言", "福" };
	string NA2[59] = { "万俟", "司马", "上官", "欧阳", "夏侯", "诸葛", "闻人", "东方", "赫连", "皇甫", "尉迟", "公羊", "澹台", "公冶", "宗政", "濮阳", "淳于", "单于", "太叔", "申屠", "公孙", "仲孙", "轩辕", "令狐", "钟离", "宇文", "长孙", "慕容", "鲜于", "闾丘", "司徒", "司空", "亓官", "司寇", "子车", "颛孙", "端木", "巫马", "公西", "漆雕", "乐正", "壤驷", "公良", "拓跋", "夹谷", "宰父", "谷梁", "百里", "东郭", "南门", "呼延", "羊舌", "微生", "梁丘", "左丘", "东门", "西门", "南宫", "第五" };
	string ME1m[140] = { "伟", "刚", "勇", "毅", "俊", "峰", "强", "军", "平", "保", "东", "文", "辉", "力", "明", "永", "健", "世", "广", "志", "义", "兴", "良", "海", "山", "仁", "波", "宁", "贵", "福", "生", "龙", "元", "全", "国", "胜", "学", "祥", "才", "发", "武", "新", "利", "清", "飞", "彬", "富", "顺", "信", "子", "杰", "涛", "昌", "成", "康", "星", "光", "天", "达", "安", "岩", "中", "茂", "进", "林", "有", "坚", "和", "彪", "博", "诚", "先", "敬", "震", "振", "壮", "会", "思", "群", "豪", "心", "邦", "承", "乐", "绍", "功", "松", "善", "厚", "庆", "磊", "民", "友", "裕", "河", "哲", "江", "超", "浩", "亮", "政", "谦", "亨", "奇", "固", "之", "轮", "翰", "朗", "伯", "宏", "言", "若", "鸣", "朋", "斌", "梁", "栋", "维", "启", "克", "伦", "翔", "旭", "鹏", "泽", "晨", "辰", "士", "以", "建", "家", "致", "树", "炎", "德", "行", "时", "泰", "盛" };
	string ME1f[165] = { "秀", "娟", "英", "华", "慧", "巧", "美", "娜", "静", "淑", "惠", "珠", "翠", "雅", "芝", "玉", "萍", "红", "娥", "玲", "芬", "芳", "燕", "彩", "春", "菊", "兰", "凤", "洁", "梅", "琳", "素", "云", "莲", "真", "环", "雪", "荣", "爱", "妹", "霞", "香", "月", "莺", "媛", "艳", "瑞", "凡", "佳", "嘉", "琼", "勤", "珍", "贞", "莉", "桂", "娣", "叶", "璧", "璐", "娅", "琦", "晶", "妍", "茜", "秋", "珊", "莎", "锦", "黛", "青", "倩", "婷", "姣", "婉", "娴", "瑾", "颖", "露", "瑶", "怡", "婵", "雁", "蓓", "纨", "仪", "荷", "丹", "蓉", "眉", "君", "琴", "蕊", "薇", "菁", "梦", "岚", "苑", "筠", "柔", "竹", "霭", "凝", "晓", "欢", "霄", "枫", "芸", "菲", "寒", "欣", "滢", "伊", "亚", "宜", "可", "姬", "舒", "影", "荔", "枝", "思", "丽", "秀", "飘", "育", "馥", "琦", "晶", "妍", "茜", "秋", "珊", "莎", "锦", "黛", "青", "倩", "婷", "宁","蓓", "纨", "苑", "婕", "馨", "瑗", "琰", "韵", "融", "园", "艺", "咏", "卿", "聪", "澜", "纯", "毓", "悦", "昭", "冰", "爽", "琬", "茗", "羽", "希" }; 
	string Class[7] = {"吏部","户部","礼部","兵部","刑部","工部","赋闲"};
  	string Major[10] = {"1","2","3","4","4","4","5","6","5","7"};
  	string yexxin[10] = {"8","3","5","6","6","6","4","10","3","3"};
  	srand(time(0));
 	for(int i=1;i<=150;i++)
 	{
 		guan[i].xingbie=(rand()%2==0?"男":"女");
		guan[i].mingzi=(rand()%56!=5?NA1[rand()%444]:NA2[rand()%59]);
		guan[i].mingzi+=(guan[i].xingbie=="男"?ME1m[rand()%140]:ME1f[rand()%165]);
 		if(rand()%2==0) guan[i].mingzi+=(guan[i].xingbie=="男"?ME1m[rand()%140]:ME1f[rand()%165]);
  		guan[i].danwei=Class[rand()%6];
 		guan[i].zizhi=Major[rand()%10];
 		guan[i].yexin=yexxin[rand()%10];
 		
	}
 	//尚书、侍郎、郎中、员外郎、都事、主事 
}
void revenue()
{
	cout<<"你想收什么形式的税务?"<<endl;
	cout<<"1.重税 2.标准税 3.轻税"<<endl;
	cin>>xuan;             
	if(xuan>=1&&xuan<=3)
	{
		flaga.shui=xuan;
		cout<<"吏部尚书说:“好的!”"<<endl; 
	}
	else cout<<"吏部尚书说:“对不起,我不明白你的意思”"<<endl;
	system("cls");
}

Forehead…… 


		cout << "\n\n\n\n\n\n\n\n\n\n\n                                                      ";
	cout<<"三国纷争";
	cout << "\n";
	cout << "                                                   ";
	cout<<"出品:李咏航"<<endl<<endl;
	cout<<"                                                     火龙控股"; 
	system("color 4A");
	cout<<endl<<endl<<endl<<"                              ";
	Sleep(1000); 
	system("color f0");
Sleep(6000);
	system("cls"); 
	
for(int i=1;i<=11;i++)
{
for(int j=1;j<=25;j++)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_BLUE);
if((i==2||i==10)&&(j==5||j==6||j==7||j==8||j==12||j==21)) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);
if((i==3||i==9)&&(j==4||j==12||j==21)) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);
if((i==4||i==8)&&(j==3||j==12||j==21)) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);
if((i==5||i==7)&&(j==2||j==12||j==21)) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);
if(i==6&&(j==2||j==9||j==10||j==11||j==12||j==13||j==14||j==15||j==18||j==19||j==20||j==21||j==22||j==23||j==24)) SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);
cout<<"■"; 
Sleep(5);
}
cout<<endl;
}
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED |
FOREGROUND_GREEN | FOREGROUND_BLUE);
sleep(3);
system("cls");


​

The interface code to start the game is very rustic...

The source code is here!

Guess you like

Origin blog.csdn.net/aliyonghang/article/details/130175761