摘 要:Unity3D 是当前国内外广泛使用的游戏开发软件,其所开发出的塔防游戏自游戏发展以来就十分盛行。该项目基于 Unity3D 开发了一款塔防游戏。其主要功能包括防御塔放置、敌人孵化、关卡管理、音效控制、UI 界面以及最后的积分管理。该项目摒弃了传统关卡设计,通过关卡内的难度上升而达到提升游戏难度的目的。通过该项目,可以让玩家体验到难度层层递增、挑战性极强的塔防游戏。
关键词:Unity3D;C#;塔防
DOI:10.19850/j.cnki.2096-4706.2021.07.018
中图分类号:TP311 文献标识码:A 文章编号:2096-4706(2021)07-0071-04
Design and Implementation of 2D Tower Defense Game Based on Unity3D
ZHANG Baobao
(School of Computer and Software,Jincheng College of Sichuan University,Chengdu 611731,China)
Abstract:Unity3D is game development software that is widely used at home and abroad at present. Tower defense games developed by it are extremely popular since the development of games. This project develops a tower defense game based on Unity3D. It’s main functions include defense tower placement,enemy hatching,gate management,sound effect control,UI interface,and the final points management. Instead of traditional gate design,this project aims to increase the difficulty of the game by increasing the difficulty within the gate. Through this project,players can experience the tower defense game with increasing difficulty and strong challenge.
Keywords:Unity3D;C#;tower defense
参考文献:
[1] 胡静,胡欣宇 . 基于 Unity3D 引擎的游戏设计与开发 [J]. 电子元器件与信息技术,2021,5(2):138-140+154.
[2] 王艳,华唯辰.基于Unity3D的ARPG游戏设计与实现 [J]. 电脑知识与技术,2020,16(29):199-201.
[3] 周正,司占军,秦雷 . 开放世界类型游戏的设计与制作 [J]. 电脑知识与技术,2020,16(22):1-2+7.
[4] 周正,司占军 . 基于 Unity3D 的冒险闯关类游戏的设计与 实现 [J]. 电脑知识与技术,2020,16(21):90-91.
[5] 岳书丹,陈雪荣.基于Unity3D塔防游戏的设计与实现 [J]. 电子测试,2020(13):124-126.
作者简介:张宝宝(2000—)男,汉族,四川宜宾人,本科在 读,研究方向:VR 与游戏开发。