APP下载

基于Unity3D的塔防类游戏的设计与实现

2021-06-28张越陶俊徐迅

现代信息科技 2021年1期
关键词:按钮游戏设计

张越 陶俊 徐迅

摘  要:文章基于Unity3D开发引擎,设计并制作了一个塔防类的3D游戏。主要分为两个模块,一是敌人功能的设计,包括敌人按照规定路线移动,敌人受到攻击扣除血量等;二是防御塔的设计,包括对敌人进行攻击,建造、升级、拆除防御塔等功能设计。使用了3ds Max软件建造角色和场景的模型,最后在Unity3D中实现游戏的开发,结果表明敌人和防御塔设计合理,游戏体验良好。

关键词:Unity3D;塔防类游戏;C#脚本;3ds Max

中图分类号:TP317      文献标识码:A 文章编号:2096-4706(2021)01-0084-04

Design and Implementation of Tower Defense Game Based on Unity3D

ZHANG Yue,TAO Jun,XU Xun

(School of Artificial Intelligence,Jianghan University,Wuhan  430056,China)

Abstract:This paper designs and produces a tower defense 3D game based on Unity3D development engine. It is mainly divided into two modules,one is the design of the enemy function,including the enemy moving according to the prescribed route,the enemy being attacked deducting the amount of blood and so on;the second is the design of the defense tower,including the attack on the enemy,construction,upgrade,demolition of defense towers and other functional design. The 3ds Max software was used to build the models of the characters and scenes,and finally the game was developed in Unity3D. The results showed that the enemy and defense towers were designed reasonably and the game experience was good.

Keywords:Unity3D;tower defense game;C# script;3ds Max

0  引  言

国内游戏产业突飞猛进的发展和手机的快速普及,根据市场调研公司Newzoo的数据报告2023年全球玩家将达30亿。其中许多玩家进入游戏领域都是通过移动设备。而根据中国音数协游戏工委(GPC)与国际数据公司(IDC)共同发布的《2020第一季度中國游戏产业报告》,受新冠肺炎疫情影响,“宅经济”大热,游戏业保持了非常高的增速,报告显示2020年第一季度,中国游戏市场实际销售为730.03亿元,其中移动游戏市场占了75.64%的市场份额,实际销售收入为553.70亿元。基于报告表明,中国游戏市场正处于飞速发展的阶段。塔防游戏(Tower Defence Game,TDG)为一个经典的休闲游戏类别,被许多玩家所喜爱,如手游市场上的《部落冲突》。基于以上数据,本人设计开发了一款移动端的塔防类游戏,游戏节奏较快,可以使得玩家利用碎片化时间进行体验,使用Unity3D引擎开发的这款3D塔防游戏在保证可玩性和策略性的基础上,增加了摄像机移动功能,优化了游戏画质。

1  游戏分析

此款塔防游……

登录APP查看全文

猜你喜欢

按钮游戏设计
这些按钮能随便按吗?
当你面前有个按钮
瞒天过海——仿生设计萌到家
设计秀
有种设计叫而专
疯狂的游戏
爆笑游戏
第八章直接逃出游戏
内心不能碰的按钮
没Gmail按钮 咱自己加等