Unity-2D游戏开发套件指南-免费资源

本文介绍了Unity的2D游戏开发套件,适合初学者快速创建2D游戏。通过实例,详细讲解了如何创建新场景、绘制关卡、测试游戏、添加移动平台、触发事件以及敌人和摧毁对象的处理。该套件提供了无需编程的2D游戏制作体验,包括预设的敌人、移动平台和事件系统,帮助开发者轻松实现游戏设计。
摘要由CSDN通过智能技术生成

敌人

摧毁敌人

装饰

传送玩家

示例


今年年初,Unity Brighton的内容团队推出了他们的最新作品-2D游戏开发套件,该套件适用于任何希望学习在Unity中创作2D游戏的人,在不编写任何代码的情况下使用2D游戏开发套件,通过设置与拖放便能快捷的实现你的游戏创意。

本文将通过2D游戏开发套件中的游戏示例项目,来带领大家走进2D游戏开发的世界。游戏内容是,我们的首席工程Ellen的飞船坠落在一个古老神秘的外星星球,他必须避免危险,并且击败潜伏在这个异域文明古遗址中敌人。

项目介绍

我们将分享使用2D游戏开发套件创建场景、绘制及测试关卡、添加移动平台、触发开门动作、游戏中的敌人、摧毁对象、传送玩家。

你可以访问Asset Store资源商店下载2D游戏开发套件:

https://assetstore.unity.com/packages/essentials/tutorial-projects/2d-game-kit-107098

创建新场景

本项目包含一个实用程序来自动创建一个新的默认场景。这个场景将包含我们英雄Ellen、一个小平台、生命值UI以及完整的移动、攻击所需要的元素。

首先让我们来创建一个新的场景。从顶部菜单选择“Kit Tools(套件工具)“,选择 “Create New Scene(创建新场景)”。

将会出现一个新的窗口,在“New Scene Name(新场景名称)”中,输入你希望的新场景的名称,点击“Create(创建)”。

这样会在Project窗口的根目录创建一个新场景,然后自动添加到Build Settings中。

我们刚刚创建好的场景在会在编辑器中自动打开,现在我们可以开始正式使用它进行开发了。

绘制关卡

2D游戏开发套件使用了Unity中的Tilemap功能,旨在帮助开发者轻松快速的绘制关卡,该开发套件已经设置好了一切,可以直接使用。

让我们来设计一个关卡。在顶部菜单中,点击Window > Tile Palette(窗口>瓦片调色板)。

Tile Palette(瓦片调色板)窗口如下图所示。

我们已经创建好二个瓦片集(Tileset)用于绘制关卡。这些瓦片使用了Unity的Tilemap功能中的可编程脚本瓦片(Scriptable Tile)系统。它们会自动为平台选取正确的精灵。我们在这里有二种风格的精灵:一种是铺了草皮的石头,另一种是异形建筑结构。

我们需要确保在Tile Palette瓦片调色板中选取了正确的瓦片集。

  • 点击Tileset Menu(瓦片集菜单)

  • 点击Tileset_Gamekit(瓦片集开发套件)

  • 为关卡选取想要的瓦片类型

  • 13
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Unity 2017 2D Game Development Projects: Create three interactive and engaging 2D games with Unity 2017 Build classic arcade, shooter and platform games with Unity 2D toolset 2D games are everywhere! Timeless and popular, 2D games represent a substantial segment of the games market. The Unity engine has revolutionized the gaming industry, by making it easier for game developers to create quality games on a budget. If you are looking for a guide to create 2D games using Unity 2017, look no further. With this book, you will learn all the essentials of 2D game development by creating three epic games in a step-by-step manner throughout the course of this book. The first game will have you collecting as many cakes as possible. The second will transport you to outer space to traverse as far as possible while avoiding enemy spaceships. The last game will have you running and jumping across platforms to collect coins and other exotic items. Throughout all these three games, you will create characters, make them move, and create some enemies. And then, of course, write code to destroy them!. After showing you the necessities of creating a game, this book will then help you to porting the game to a mobile platform, and provide a path to publish it on the stores. By the end of this book, you will not only have created three complete great games, but be able to apply your knowledge to create and deploy your own games. What You Will Learn Work with Unity 2017’s new 2D workflow and create a 2D scene Set the scene with different types of backgrounds, either static or dynamically using a tileset Bring your character to life through simple animations Understand the core concepts of programming by creating basic code that controls a character and destroys an enemy Create buttons and game controls by using code snippets for input detection Develop three 2D games from genres such as classic arcade, space shooter, and platformer games Add audio and feedback and deploy your games
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值