1 Star 0 Fork 0

LiuShengjian / 2d-techdemos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

2d-techdemos

2d-techdemos is a repository containing helpful examples of 2D features with scenes and assets. It contains the asset implementions of the scripts available in its sister repository, 2d-extras.

All items in the repository are grouped by use for a feature and are listed below.

How to use this

This repository is a Unity project which you can open using Unity. To view the examples in an existing Unity project, please copy the contents in the Assets folder to the Assets folder of your existing project as well as the manifest.json file in the Packages folder.

As this repository contains the scripts from 2d-extras as a package, you do not need to include the files from the 2d-extras repository to this.

Features

Tilemap

  • Brick - A Breakout style game using Tilemap and Physics 2D. This example makes use of the Physics2D collision contacts to determine which cell in the Tilemap is hit when there is a collision. Open the scene Brick to get started. Run this example to start playing.

  • Destructible - A demo using Tilemap and Scripted Tiles showing how Tilemaps can changed in the Runtime. Open the scene Destructible to get started. Run this example by playing it and click on a location to cause an explosion and watch the after-effects.

  • Brushes - The Scripted Brushes can be selected from the dropdown at the bottom of the Tile Palette. Choose the Brush you want to paint with and start painting. Pull up the Brush dropdown bar to view additional parameters for the chosen Brush.

  • Tiles - Tile Palettes have been set up for each of the different types of Scripted Tiles. Choose the Tile Palette containing the Tile asset that you want. To find out more on how the Tile asset is set up:

    • Select the Tile in the Tile Palette
    • Right-click on the Tile Palette
    • Click on Select Tile Asset

For use with Unity 2019.2.0a7 onwards.

MIT License Copyright (c) 2016 Unity Technologies Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/lshengjian/unity-2d-techdemos.git
git@gitee.com:lshengjian/unity-2d-techdemos.git
lshengjian
unity-2d-techdemos
2d-techdemos
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891