这个包包含了快速的轻量级解决方案,用于分割屏幕。 多兹 因此,它利用了统一的最新技术栈 模拟数学 , 乔布斯 和 快速编译器 .

这是建议合作风格的游戏。特别是如果世界不是很小,玩家可以远离彼此。

这是基于沃罗诺图的新的分裂屏幕解。人们可以把它看作是传统动态分割屏幕的延伸,最多可容纳4个玩家.

主要行为

公平 -每个玩家可选择拥有类似的屏幕区域。
中心的 -每个玩家的选择以屏幕区域为中心。
方向 指示的 -每一个部分都指向其他玩家。
易熔的 -玩家屏幕区域一旦足够接近就可以合并。

该软件包的设计很容易自定义,从艺术家的背景到开发者的背景可操作。

有四层空气污染指数

分裂筛查效果 -在相机上应用分割屏幕效果的主要单一行为部分。
修饰者 -自定义单一行为组件,用于修改分离筛查效果逻辑。
分裂审查4 , 分裂审查3 和 分裂审查2 -产生分裂屏幕效果的结构。
沃罗诺建筑者 , 沃罗诺图 -从站点生成沃罗诺伊图的结构。

支持 不和谐

试验 我借的 , 坦克

在不和谐渠道中链接的文件

依赖

统一测试
统一包装.数学
包裹组合。集合。
包裹公司。

注:4玩家公平性伴随着空间连续性的成本.以后会有所改善。

技术细节
文件
5个样品
分离屏API

This package contains fast lightweight solution for split screen It is developed with DOTS in mind, as result it takes advantage of Unity’s latest technology stack like SIMD mathematics, Jobs and Burst compiler.

It is recommended for co-op style games. Especially if world is not small and players can be far away from each other.

This is novel solution of split screen based on voronoi diagrams. One can think of it as extension of traditional dynamic split screen for up to 4 players.

Key Behaviours

Fairness – option for each player to have similar screen region area.
Centered – option for each player to be centered in their screen region.
Direction Indicated – each split indicates direction to other player.
Fusible – players screen regions can be merged once they are close enough.

The package is designed to be easily customizable and approchable from artist’s to developer’s background.
There are 4 layers of API
SplitScreenEffect – the main MonoBehaviour component that applies split screen effect on camera.
Modifier – custom MonoBehaviour components for modifying logic of SplitScreenEffect.
SplitScreen4, SplitScreen3 and SplitScreen2 – structs for generating split screen effect.
VoronoiBuilder, VoronoiDiagram – structs for generating voronoi diagrams from sites.
Support Discord
Tested On I Borrow, Tanks
Documentation linked in discord channel
Dependencies

Tested with Unity 2019.4
Package com.unity.mathematics
Package com.unity.collections
Package com.unity.burst

Note: 4 player fairness comes with the cost of space continuity. Which will be improved in the future.

技术细节
Documentation
5 Samples
SplitScreen API

发表回复

后才能评论