一个网络版掼蛋游戏的设计与实现

 2023-03-05 12:03

论文总字数:30933字

摘 要

掼蛋是一款棋牌类益智游戏。是一种在苏北地区广为流传的扑克游戏,是由扑克牌种类有 “跑的快”和“八十分”慢慢地演化而来,才有了掼蛋游戏的新规则。牌局采用四人结对竞赛,输赢升级的方式进行。设计游戏是因为它可以丰富人们的生活,提供给大家休闲娱乐。设计一个网络版掼蛋游戏,去娱乐与大众,让生活中的压力变小,娱乐因素活跃起来。

主要的工作:积分管理、出牌规则、出牌逻辑、玩家的聊天等;主要功能模块:登录注册模块、每次登录奖励模块、出牌规则模块、出牌逻辑模块等。

本设计是运用两副扑克牌及108张,本论文主要讲述了网络掼蛋的游戏算法逻辑与规则的设计,游戏间通讯部分的开发为运用了SOCKET的算法的设计过程。本游戏系统的设计采用UNITY,WPF,ACCESS,.NET作为开发工具,结合服务器一块的SOCKET 编程。

在游戏系统的设计过程中,首要的思想运用软件工程,进行需求分析、概要设计、详细设计,通过用例图来表达游戏系统所表达的用功能模块,在详细设计中运用UNITY工具完成界面设计及各个功能面板的添加及编程,主要的研究点有:掼蛋游戏系统的出牌规则及出牌逻辑,服务器一块的玩家间的相互通信。

通过这种方式不断地完善游戏系统,不断地测试,测试各个模块的功能实现情况,并取得的结果十分成功,最终得到一个可稳定运行的掼蛋游戏系统。

关键词:掼蛋游戏;Unity;WPF;游戏系统;Socket;C#;.Net

A Whipped Egg about Online Game Design and Implementation

Abstract

Whip the eggs is a chess puzzle game. Is a popular poker game in north jiangsu, is a poker variety has a "fast" and "eight is" evolved slowly, just had whipped eggs to the new rules of the game. Match with four pair competitions, winning or losing the upgrade. Design the game because it can enrich people"s lives, to provide entertainment for everyone. Design a whipped egg online game, to entertainment and public, let the life of the pressure decreases, the entertainment factors.

Main job: integral management, the rules of play, the logic, the player"s chat, etc.; Main function modules: login registration module, each login reward module, the rules of play module, a logic module.

This design is to use two deck of playing CARDS and 108 pieces, this thesis mainly tells the story of whipped eggs of the game rules of algorithm logic and network design, part of the development of communication between the game to use the SOCKET of the design process of the algorithm. This game system design USES the UNITY, WPF, ACCESS,. NET as the development tool, combined with a server SOCKET programming.

In the process of game system design, the first thought of software engineering, requirements analysis, general design, detailed design, through the use case diagram to express expressed by the game system function module, use UNITY tools through the detailed design, interface design and the function of the panel, and the programming, the main research points are: whipped egg game play rules and logic game, servers communicate with each other between a player.

This way to continuously improve the game system, constantly testing, testing of the realization of the function of the various modules, and the results of the very successful, eventually get a whip egg game system can be stable operation.

Keywords: whipped egg game; Unity; WPF; The game system;Socket;C#;.Net.

目 录

摘 要 I

Abstract II

目 录 III

第一章 引 言 1

1.1 背景与意义 1

1.2 国内外相关研究现状 1

1.3 本文的研究目标和主要工作内容 2

1.4 研究方法与技术路线 2

1.5 论文结构安排 2

第二章 相关技术基础 3

2.1 面向对象的分析与设计 3

2.2 编程环境介绍 3

2.2.1 Unity简介 3

2.2.2 Socket简介 4

2.2.3 C#编程简介 4

2.2.4 .Net简介 4

2.2.5 WPF简介 3

第三章 系统需求分析与设计 7

3.1 系统功能需求分析 7

3.2 系统总体设计 8

3.3 系统详细设计 9

3.3.1 注册功能模块 9

3.3.2登录功能模块 10

3.3.3选择功能模块 10

3.3.4发送信息模块 11

3.3.5每日登录奖励模块 11

3.3.6出牌规则逻辑模块 11

3.3.7出牌判断模块 12

3.3.8压牌判断模块 12

第四章 系统的实现与核心代码分析 13

4.1运行环境及工具介绍 13

4.2 游戏界面布局的具体实现 13

4.2.1 注册界面 13

4.2.2 登录界面 14

4.2.3 每日登录奖励界面 15

4.2.4 玩家积分选择界面 16

4.2.5 房间界面 17

4.3 掼蛋游戏规则核心代码分析 18

4.4 压牌判断核心代码分析 19

第五章 系统测试及运行 22

5.1 系统测试 22

5.1.1 系统的测试环境 22

5.1.2 系统的功能测试 22

5.2 系统运行(核心界面截图) 26

第六章 总结与展望 27

致 谢 28

参考文献 29

第一章 引 言

1.1 背景与意义

掼蛋是一款棋牌类益智游戏,起源于淮安市博里镇。是一种在苏北地区广为流传的扑克游戏,是由扑克牌种类有 “跑的快”和“八十分”慢慢地演化而来,才有了掼蛋游戏的新规则。牌局采用四人结对竞赛,输赢升级的方式进行。使牌局更富有娱乐性和刺激性。安徽地区也非常的流行。在苏北的宿迁,淮安,盐城等地比较流行,在苏北沭阳如果不会打掼蛋基本就等于不会娱乐了。

随着社会节奏的加快,年轻人越来越忙碌,老年人却有点孤单,为了减轻社会人的压力,满足于让年轻人在空闲时得到娱乐放松,老年人足不出户也可以拥有娱乐的工具;随着网络的不断发展,计算机时代的不断成熟,网络已经是一个人们生活中不可或缺的一种财富;随着娱乐的工具诸多种类不断更新发展,越来越多的人开始接受新的、好的、具有乐趣、健康的娱乐游戏了。

剩余内容已隐藏,请支付后下载全文,论文总字数:30933字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;