Brief description

  • The project won the first prize of South China Region, the first prize of China, and the first prize of the small game category in the "College WeChat Small Program Application Development Competition".
  • The project has a high degree of completion, extremely rich documentation, nearly 20,000 lines of source code with detailed comments, and complete and clear structure of the game code.
  • The project has a very high degree of completion of the defense PPT, more than 100 sides of the refined layout of the introduction document (introduction book).
  • If you need more detailed information about this project, you can contact me by WeChat and comment StarTrek: HK-SHAO

Source Code/Support me to develop more interesting things:  StarTrek | Cocos Store

Specific Introduction

StarTrek is a science fiction game with the theme of space science fiction, which showcases the spirit of human scientific exploration, ancient and modern Chinese aerospace and astronomical achievements with scientific and realistic game contents. In terms of science and cultural dissemination, the game has both ancient and modern, both domestic and foreign, both aerospace and astronomy, and effectively spreads the astronomical achievements and culture of China in ancient and modern times through cool visual images, special effects, without losing the game's entertainment and visual spectacle, and praises the magnificent journey of China's great achievements in aerospace since the new century.

The game is not only scientific and educational but also has medical significance. Our Vice President, Prof. Jiahui Pan, gave us guidance on brain-computer interface (BCI) technology and provided us with the "HNNK Brain Ring" portable brain-computer device, based on which we developed a new and independent game interaction that is expected to treat or alleviate the symptoms of children with attention deficit and hyperactivity disorder (ADHD). symptoms.

We drew inspiration from excellent science fiction works such as Three Bodies, Wandering Earth and Star Trek, and wrote a short science fiction novel as the main plot of 12 levels in four categories: Unity, Courage, Extra, and Sandbox, each of which has a unique mission objective or operation mode.

We designed a touch-and-drag-based game operation method, supplemented by gravity sensing, which is extremely simple and in line with the mechanics of the game, but without losing the freshness and difficulty of operation, making the game convenient for players to play in both vertical and horizontal screens, as well as one-handed operation or multi-finger operation. In addition, this touch-and-drag-based operation is easy to migrate to the player operation logic based on brain-computer interface technology.

StarTrek uses a variety of technologies to optimize the game's graphics and gameplay, such as tessellation shaders and astrophysical simulations. We implemented a Lagrangian-based astrophysics simulation for the orbit of in-game celestial bodies, each of which has multiple physical properties such as momentum, mass, volume, rotation, etc., and this property affects its surrounding celestial bodies in spatial and temporal dimensions. In the relevant algorithm, we have derived some formulas of gravity and relativity, and strive to conform the movement of celestial bodies in the game to physics and improve the realism of the game.

Thus, you can see in the game the orbit of a comet whose orbit is changed by strong gravity, the scale contraction that occurs when the celestial body is moving at high speed, the gravitational slingshot effect seen when the tangent rushes towards a black hole, the merger of a black hole with a black hole, the annihilation of a black hole with a white hole, the impulse generated by the explosion of a gas planet, and the effect of general relativity on in-game space-time when tilting the device.

The game was developed using the storage service of the applet cloud development technology provided by WeChat, where we stored resources such as the game's mapping, text, and audio. In order to reduce the size of the game package, we dynamically download the resource files in the cloud storage, deserialize and load them as instances of in-game objects, enabling many game resources to be downloaded again when they are used, ensuring rich game content while also reducing the game package size and improving the player's game experience and game fun. (The game can be easily ported to Android platform, desktop version)

StarTrek has very complete graphics, art and motion design. The game graphics are different from many games, emphasizing the immersive experience when exploring the universe, with dark-toned cosmic backgrounds and highly saturated celestial bodies. We designed nearly 100 different celestial bodies, each with its own unique appearance and properties, some of which are real in the universe and some of which we designed for the fun of the game. We have also optimized the particle system and designed several different particle effects for better visual and dynamic effects.

The sound effects of StarTrek are diverse and fit the theme of deep space. We have designed rich sound effects for various events in the game such as button clicks, celestial impacts and explosions. The game's storyline is well-defined, and we have arranged suitable background music for different storyline levels, with a total of 9 deep background music tracks, aiming to give players a better immersion in the game.

简要说明

  • 项目荣获“高校微信小程序应用开发赛”华南赛区一等奖、全国一等奖、小游戏类一等奖第一名
  • 项目完成度很高,资料文档极其丰富,源代码近两万行,有详尽注释,且游戏代码完整、结构明确,项目工程总文件大小超过 4GB(不包含构建)。
  • 项目有完成度极高的答辩 PPT 、超过100面精排的介绍文档(介绍书)。
  • 如果需要更详细的了解本项目,可以微信联系我:HK-SHAO

游戏源码/支持我继续开发更多有趣的事情:星旅 StarTrek | Cocos Store


具体介绍

《星旅 StarTrek》是一个以太空科幻为主题的科普类型闯关游戏,以具有科学性和真实性的游戏内容展示人类科学探索精神、中国古今航天航空和天文成就。在科普与文化传播方面,游戏既有古代也有现代,既有国内又有国外,既有航天又有天文,并通过炫酷的视觉画面、特效动效、在不失去游戏娱乐性和视觉观赏性的前提下有效地传播了中国古今的天文成就与文化,赞颂了中国在新世纪以来一次次航空航天的伟大成就的壮丽旅程。

游戏不仅具有科普教育性还拥有医学意义。我们的副院长潘家辉教授给予了我们脑机接口(BCI)技术方面的指导,为我们提供了“HNNK 脑环”便携式脑机设备,我们基于此又开发了一种全新且独立的游戏交互方式,有望治疗或缓解注意缺陷与多动障碍症(ADHD)儿童的症状。

我们从《三体》《流浪地球》《星际穿越》《星际迷航》等优秀科幻作品中汲取灵感,撰写了一篇短篇科幻小说作为游戏中团结、勇气、番外、沙盒 4 类共计 12 个关卡的主线剧情,每个关卡都有独特的任务目标或者操作方式。

我们设计了一种以触摸拖动为主、重力感应为辅的游戏操作方式,这种操作方式极为简单且符合游戏内的力学原理,但又不失操作的新鲜感和难度,使得游戏既方便玩家竖屏、横屏游玩,也方便玩家单手操作或多指操作。此外,这种以触摸拖动为主的操作方式容易迁移到基于脑机接口技术的玩家操作逻辑中。

《星旅 StarTrek》使用了很多种技术以优化游戏画面和玩法,例如片元着色器、天体物理模拟。我们针对游戏内天体的运行规律实现了一种基于拉格朗日视角的天体物理模拟,游戏地图中每一个天体都具有动量、质量、体积、自转等多种物理属性,且此属性会对其周围的天体产生时空维度的影响。相关算法中,我们对万有引力、相对论的部分公式进行了推导,力求游戏内天体运动符合物理,提高游戏的真实性。

   

因此,你可以在游戏中看到被强引力改变轨道的彗星轨道,在天体高速运动时发生的尺度收缩,在切线冲向黑洞时看到的引力弹弓效应,黑洞与黑洞的合并、黑洞与白洞的湮灭、气体星球爆炸产生的冲量、以及在倾斜设备时广义相对论对游戏内时空的影响。

游戏的开发使用了微信提供的小程序云开发技术的存储服务,我们存储了游戏的贴图、文本和音频等资源。为了减小游戏包的大小,我们通过动态下载云存储里的资源文件,反序列化并加载为游戏内对象的实例,使得很多游戏资源能够在使用时再进行下载,保证游戏丰富的内容的同时还减小了游戏的包体积,提升了玩家的游戏体验和游戏趣味性。 (游戏可以很方便的移植到Android平台、桌面版)

《星旅 StarTrek》画面、美术和动效设计都非常完整。游戏画面与众多游戏不同,强调探索宇宙时的沉浸式体验,以深色调宇宙背景和高饱和度的天体为主。我们设计了近百种形态各异的天体,每种天体都有其独特的样貌和属性,它们有些是宇宙中真实存在的,有些是我们为了游戏趣味性而设计的。为了更好地视觉效果和动效,我们还专门优化了粒子系统并设计了几种不同的粒子效果。

《星旅StarTrek》的声音效果多样而契合深空主题。我们针对游戏中的按钮点击、天体撞击、爆炸等多种事件设计了丰富的音效。游戏的剧情张弛有度,我们也为不同的剧情关卡安排了适合的背景音乐,总共有 9 首深邃的背景音乐,力求让玩家在体验游戏的过程中获得更好的沉浸感。

Leave a comment

Log in with itch.io to leave a comment.