Skip to content
프로젝트

keypax/dynamic-walls-demo

GitHub에서 보기

소개

This demo project showcases dynamic walls whose sides adapt to the environment used in canceled game: Pelagos: Rise of Greece.

게임 및 에뮬레이션

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
-1
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Dynamic Walls - demo implementation

Alt Text

In-game example

IMAGE ALT TEXT HERE

(click to open)

About this repository

This demo project showcases dynamic walls whose sides adapt to the environment used in our upcoming game: Pelagos: Rise of Greece.

It contains a working example scene and commented source code. This project also uses techniques of Object Pooling and custom Frustum Culling, which can be viewed here: (https://github.com/keypax/object-pooling-in-unity-demo)

How it works

The idea behind it is very simple. Wall has 4 separate sides (front, right, back, left). If another wall is in front, disable the front side. The same for the second wall. If something is on the back of the wall: disable the back wall. Randomize a little for the prettier look and that's all ;)

IMAGE ALT TEXT HERE

Requirements

Unity 2019.3.2: go to Unity download archive page and download Unity 2019.3.2 version.

Installation

Just download ZIP of this repo or use GIT client and open in Unity. That's all :)

Implementation

This is a demonstration of a solution that we're using in our project. This is not an out of the box plugin that you can download and make work in 2 minutes. In this example we're using Dependency Injection. We also try to use Unity components only if necessary.

It may be scary, but don't worry and take a look :)

Where to start

Good places to start understanding the code are:

Prefab:

Assets/Prefabs/Buildings/Wall.prefab

Code:

Buildings.Application.WallConfigurator

Buildings.Application.WallSidesUpdater

Buildings.Application.Spawners.WallSpawner

ObjectPooler.Application.Displayers.BuildingsDisplayer

관련 프로젝트 살펴보기

불러오는 중…