🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

C1-01-Overview of Unity.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Full Transcript

Advanced Game Design : Brgy. Paciano Rizal, Calamba City, Laguna 4027 | : (049) 834-1159 : www.perpetualdalta.edu.ph Calamba Campus Contents What is Unity? Workflow Main interface Scripting Rendering Physics Animation 2D & 3D...

Advanced Game Design : Brgy. Paciano Rizal, Calamba City, Laguna 4027 | : (049) 834-1159 : www.perpetualdalta.edu.ph Calamba Campus Contents What is Unity? Workflow Main interface Scripting Rendering Physics Animation 2D & 3D Multiplatform Examples What is a Game Engine? A game engine is a software framework (ensemble of tools) designed for the creation and development of video games. Game Engine Functions Basics Rendering 2D/3D OpenGL/DirectX CPU/GPU Game Engine Functions Basics Rendering 2D/3D OpenGL/DirectX CPU/GPU Media Sound/Video Animations Assets Models Materials/Textures Shading/Lighting Game Engine Functions Basics High Level funs. Rendering Collision Detection 2D/3D OpenGL/DirectX Physics CPU/GPU Artificial Intelligence Media Scripting Sound/Video Animations Assets Models Materials/Textures Shading/Lighting Game Engine Functions Basics High Level funs. Rendering Collision Detection 2D/3D Physics OpenGL/DirectX Artificial Intelligence CPU/GPU Scripting Media Sound/Video Other Animations Networking Assets Level Editor Models Materials/Textures Custom Tools Shading/Lighting Multiplayer Advertising World of Game Engines Introduction Unity is a powerful cross-platform 3D engine and a user friendly development environment. Easy enough for the beginner and powerful enough for the expert; Unity should interest anybody who wants to easily create 3D games and applications for mobile, desktop, the web, and consoles. One of the most popular game engine. What is Unity? Unity is a cross-platform game engine with a built-in Integrated Development Environment developed by Unity Technologies. It is used to develop video games for web plugins, desktop platforms, consoles and mobile devices. Unity 1 launched onstage at Apple’s Worldwide Developers Conference 2005 by David Helgason, Nicholas Francis, and Joachim Ante. Brief history of Unity 2005 Announced only for OS X at Apple’s Worldwide Developers Conf. 2012 Game Developer magazine: top game engine for mobile platforms 2015 27 platforms 2016 Nintendo provides free licenses within their SDKs forWii U and 3DS 2016 5 Billion Downloads PRO and CONS Cons: Less performant in general than an in-house game engine More suited for cross-platform games Pros: Portability! Easy to learn Make dev graphists interactions easier Fast prototyping (no need to recompile everything to tune values) Unity Editor allows creation of house-made tools.NET power Services like Unity Purchasing making it easier to interface with common stores Licensing Windows Store Basic (Included in Unity (Free) Unity Pro) Unity Pro ($1,500) Windows Store Professional iOS Basic (Free) (Included in Unity Pro) iOS Professional ($1,500) Android Basic (Free) Android Professional ($1,500) BlackBerry Basic (Free) BlackBerry Professional ($1,500) Workflow Unity is powerful, complete game development system Create 3D objects / scenes in Unity –Or import objects created in 3D modelling packages Use scripting to control animations / scene changes etc. Export to stand alone game, or web page component, or mobile app Main interface Unity IDE Interface Unity IDE Interface Project Window Unity IDE Interface The SceneView Unity IDE Interface The Hierarchy Window Unity IDE Interface The Inspector Window Unity IDE Interface TheToolbar The Assets Asset: any item that can be used in your game or project. Asset Store Online Asset Store Free /Priced https://www.assetstore.unity3d.com/en/ Unity actually is the union of (1) a game engine, that allows game created to run (hence to be played) in different environments, (2) an application where the “visible pieces” of a game can be put together (the IDE) with a graphical preview and using a controlled “play it” function, and (3) a code editor Unity Philosophy Philosophy: [GameObject -> Component -> Variable] can be a prefab Empty GameObject Primitive Light Cube Audio Sphere Video Capsule UI Cylinder Canvas Plane Text Button Quad Camera Unity Philosophy Philosophy: [GameObject -> Component -> Variable] can be a prefab Each GameObject can have different components A component can be: A script A physic effect RigidBody property Colliders An audio effect Etc… The Colliders Scripting The game engine's scripting is built on Mono, the open- source implementation of the.NET Framework. Programmers can use: UnityScript (a custom language with syntax, referred to as JavaScript by the software) C# Boo (which has a Python-inspired syntax) Programming Scripting Unity Unity Script (JavaScript) Mono (C#) [www.mono-project.com] 20x Faster then web JS C family (fast adaption for devs) Flexible coding Strong typing no data type declaration Robust.NET framework No class body explicit required Portability Well documented DLL libs support No explicit types declaration required Partial Implementation of.NET iPhone builds are bigger (more libs) No virtual classes Many restrictions No namespaces No multi-dimensional arrays Less documented No value-by-reference args. No Chars One interface per class to be extended Programming Scripting Unity Java Script C# class MyClass extends MonoBehaviour { class MyClass : MonoBehaviour { var myVar = 1; public int myVar = 1; function Start() { void Start() { Debug.Log("hello world!"); Debug.Log("hello world!"); } } } } Events Most Used Events Rendering Unity supports art assets and file formats from 3ds Max, Maya, Blender, Adobe Photoshop and other graphics programs. These assets can be added to the game project, and managed through Unity's graphical user interface. Physics Unity also has built-in support for Nvidia's (formerly Ageia's) PhysX physics. Animation The retargeting rig can be set up on your character with just a few mouse clicks using automatic bone mapping and stance pose computing algorithms. The rig breaks down body motion into a set of muscle contractions and uses a mass model to compute body mass center and average body orientation for motion trajectory. Not just 2D and 3D! Full 3D Full 2D Orthographic 3D 2D gameplay with 3D graphics 2D & 3D All scenes in Unity are 3D, with 2D games rendered using flat planes. This means it’s incredibly easy to combine 3D and 2D elements. Simply switch your Scene view between 2D and 3D and make use of Perspective and Orthographic cameras. Multiplatform Unity supports deployment to multiple platforms. Within a project, developers have control over delivery to mobile devices, web browsers, desktops, and consoles. Monument Valley By Square Enix Mobile Game Dev (Best Practices) Do not “annoy” the user Acquire new users Social features Invasive advertising Poorly structured GUI Competition Invasive or premature rating requests Encourage positive actions only Social ready but not social compulsory 5 stars review… Audio in casual games At the right time Prevent uninstalls Daily duties Virtual Currency Notifications Conclusion So once you have the game design and all the required skills you can put together graphics, sounds, animations in Unity’s IDE, write in the editor the code associated to the assets and then generate a playable application that runs in several different environments, as one of the features of Unity is that it is multi- platform, that is more or less the same game can run similarly on an iPad or on Windows. Because of these features Unity is a popular game engine in video game development. References http://wikipedia.org/wiki/Unity_(game_engine) http://unity3d.com http://forum.unity3d.com http://designagame.eu Thank You! : Brgy. Paciano Rizal, Calamba City, Laguna 4027 | : (049) 834-1159 | : www.perpetualdalta.edu.ph Calamba Campus

Use Quizgecko on...
Browser
Browser