1 Star 0 Fork 325

DC / AwesomeUnityTutorial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
2D游戏总体介绍.md 2.43 KB
一键复制 编辑 原始数据 按行查看 历史
chutianshu 提交于 2021-10-27 11:04 . 1

2D 游戏总体介绍

1. Unity 中的 2D 游戏

官方手册文档-2D

1.1 Unity 2D 模式

官方手册文档-2D 还是 3D 项目
2d/3d 模式

游戏在二维上展示

启用 2D 模式时将会设置正交(即无透视)视图:摄像机沿 Z 轴观察,而 Y 轴向上增加。因此可以轻松可视化场景并放置 2D 对象。

设置项目默认模式:Edit > Project Settings > Default Behavior Mode

在 2D 项目模式下:

  • 所有图像(images)都会被当做 2D 图片,并设置成 sprite mode 精灵模式
  • Sprite Packer 会被启动
  • Scene 视图默认为 2D
  • 默认游戏对象没有实时方向光。
  • 摄像机的默认位置为 0,0,–10。(在 3D 模式下为 0,1,–10。)
  • The camera projection is set to be Orthographic. (In 3D Mode it is Perspective.)摄像机投射模式被设置为正交(没有远小近大,没有距离之分),而在 3D 模式下,是透视(远小近大,有距离之分)
  • 在 Lighting 窗口中:
    • Skybox is disabled for new scenes:天空盒默认关闭
    • Ambient Source is set to Color. (With the color set as a dark grey: RGB: 54, 58, 66.) 保围光源设置为 color ,默认为灰色
    • Realtime Global Illumination (Enlighten) is set to off.关闭实时光照
    • Baked Global Illumination is set to off.关闭全局光照烘焙
    • Auto-Building set to off.自动创建关闭

1.2 2D 游戏的常用视角

  • 自顶向下
  • 侧面
  • 等距和 2.5D

1.3 2D 游戏常用的美术风格

  • 极简主义
  • 像素
  • 插画
  • 预渲染 3D

2. 课程安排

2.1 官方例子

开始 2D 游戏开发系列

2.2 完整非官方实例

  • Flappy Bird
  • Arpg
  • 打飞机

2.3 2D 相关所有知识点

主要学习官方手册中所有 Unity 2D 游戏开发相关知识点

  • sprite 精灵: Sprite Creator、Sprite Editor、Sprite Renderer 、Sprite Packer
  • TileMap 瓦片地图
  • 2D 物理



配套视频教程: https://space.bilibili.com/43644141/channel/seriesdetail?sid=299912

文章也同时同步微信公众号,喜欢使用手机观看文章的可以关注

C#
1
https://gitee.com/dc037201/AwesomeUnityTutorial.git
git@gitee.com:dc037201/AwesomeUnityTutorial.git
dc037201
AwesomeUnityTutorial
AwesomeUnityTutorial
main

搜索帮助