摘要
阐述基于Unity 3D平台,结合C#编程语言,通过MVC模型的代码集中管理和可复用性,设计并实现盒子人跑酷游戏。该游戏采用竖版3D界面,主要实现场景随机跳转,人物移动跳跃等功能,通过碰撞器实现障碍物阻挡的功能,相机实时跟随人物移动。玩家通过不断地前进,躲避障碍物获得更高的点数,若玩家死亡可以通过获得的点数进行复活,以此增加玩家的游玩时长。通过该游戏,可以让玩家体验到跑酷游戏的快乐,获得成就感。
This paper expounds the design and implementation of a Box Man parkour game based on the Unity 3D platform,combined with the C#programming language,using the MvC model for centralized code management and reusability.The game adopts a vertical 3D interface,mainly realizing functions such as random scene jumping,character movement jumping,etc.The obstacle blocking function is achieved through colliders,and the camera follows the character's movement in real time.Players earn higher points by constantly moving forward and avoiding obstacles.If a player dies,they can be resurrected using the points earned,thereby increasing their gameplay time.Through this game,players can experience the joy of parkour games and gain a sense of achievement.
作者
马晓萍
轩莹莹
MA Xiaoping;XUAN Yingying(College of Computer Science and Technology,Kashgar University,Xinjiang 830017,China)
出处
《电子技术(上海)》
2024年第6期75-79,共5页
Electronic Technology
基金
喀什大学校内教研教改课题(KJDY2101)
喀什大学校内教研教改课题(KJDY2001)
2021年第二批产学合作协同育人项目(202102490010)
2021年喀什大学第二批校级一流本科课程项目
2024年新疆维吾尔自治区级一流本科课程项目。