52
Copyright © GREE, Inc. All Rights Reserved. カジュアルゲーム・ケーススタディ Unity グリー株式会社 稲森介

[GREE Tech Talk #07] Unityカジュアルゲーム・ケーススタディ

Embed Size (px)

Citation preview

  • Copyright GREE, Inc. All Rights Reserved.

    Unity

  • Copyright GREE, Inc. All Rights Reserved.

    PC

  • Copyright GREE, Inc. All Rights Reserved.

    Unity

  • Copyright GREE, Inc. All Rights Reserved.

    Garage

  • Copyright GREE, Inc. All Rights Reserved.

    Amy the Starry Archer

  • Copyright GREE, Inc. All Rights Reserved.

    Amy the Starry Archer

    Demo

  • Copyright GREE, Inc. All Rights Reserved.

    Amy the Starry Archer

    11

    Director Programer

    12 1 2 3

    Programer (Junior)

    Artist Artist

    (3D Designer) (Effect Designer) (Sound Designer)

  • Copyright GREE, Inc. All Rights Reserved.

    iOS7/iPhone5 Android4.0/2 QA

  • Target Frame Rate

  • Copyright GREE, Inc. All Rights Reserved.

    you don't gain that much from 60 fps and it doesn't look like the real thing.

    - Nicolas Gurin(Ubisoft)

    http://www.techradar.com/news/gaming/viva-la-resoluci-n-assassin-s-creed-dev-thinks-industry-is-dropping-60-fps-standard-1268241

    75FPS75Hz

    - CEDEC2014Oculus Panel Discussion Oculus Rift

    30 fps? 60 fps? or...?

  • Copyright GREE, Inc. All Rights Reserved.

    Target Frame Rate

    iPhone5sNexus560fps 30fps Application.targetFramerate

  • Copyright GREE, Inc. All Rights Reserved.

  • Copyright GREE, Inc. All Rights Reserved.

    Graphics static batching dynamic batching

    Scripts Object PoolingInstantiate() new GC

    Physics Collider xedDeltaTime

  • Clouds

  • Overdraw

  • Overdraw

  • Overdraw

  • Overdraw

  • before after

    Overdraw

  • Copyright GREE, Inc. All Rights Reserved.

    Sprites/Default

    Sprite : SC-04E/Android4.4.2

    Color

  • Copyright GREE, Inc. All Rights Reserved.

    Sprite(ParticleOverdraw 1Sprite

  • Lighting

  • Copyright GREE, Inc. All Rights Reserved.

    Asset Store3DLight 1Light

  • Copyright GREE, Inc. All Rights Reserved.

    exr(OpenEXR)

  • Copyright GREE, Inc. All Rights Reserved.

    1024px(700KB)

  • Copyright GREE, Inc. All Rights Reserved.

    512px(170KB)

  • Copyright GREE, Inc. All Rights Reserved.

    256px(43KB)

  • Copyright GREE, Inc. All Rights Reserved.

    512px(170KB)

    1024px(700KB) 256px(43KB)

  • Copyright GREE, Inc. All Rights Reserved.

    lightmapIndexLightmapSettings.lightmaps-1

    12

  • Copyright GREE, Inc. All Rights Reserved.

    Lighting

    Directional LightPoint Light

    Light Probes 256px(43KB)10

  • Scripting

  • Copyright GREE, Inc. All Rights Reserved.

  • Copyright GREE, Inc. All Rights Reserved.

    Galaxy S4(SC-04E)/Android4.4.2 Unity4.6.2 10 if

  • Copyright GREE, Inc. All Rights Reserved.

    cachedTransform transform GetComponent(typeof(Transform))

    0.0009226

    0.0003179

    0.0001484

    0.0005000

    0.0002500

    0.0007500

    0.0010000

    sec (loop:100k)

  • Copyright GREE, Inc. All Rights Reserved.

    GetComponent(typeof(Transform)) Function Find Raycast

    0.0005000

    0.0002500

    0.0007500

    0.0010000

    sec (loop:100k)

  • Copyright GREE, Inc. All Rights Reserved.

    Raycast()

    UnityRaycast() RaycastAll RaycastHit[]

  • Copyright GREE, Inc. All Rights Reserved.

    Find()FindObjectsOfType()7~10ms/call) Raycast()ColliderFind()Scene

  • Enemy Move

  • Copyright GREE, Inc. All Rights Reserved.

    Enemy Move

  • Copyright GREE, Inc. All Rights Reserved.

    Enemy Move

    (-5,0,10)(5,0,10)

    +

    =

    (5,0,10)

    Player(Camera) Player(Camera)

    Player(Camera)

  • Copyright GREE, Inc. All Rights Reserved.

    Enemy Move

    (0,0,50), 10 +

    (0,0,10), 1 (:01080)

    =

    Player(Camera)

  • Copyright GREE, Inc. All Rights Reserved.

    Enemy Move

    Player(Camera)

  • Copyright GREE, Inc. All Rights Reserved.

    Enemy Move

  • Copyright GREE, Inc. All Rights Reserved.

    Enemy Move

  • Copyright GREE, Inc. All Rights Reserved.

    Enemy Move

    OK 1

  • Copyright GREE, Inc. All Rights Reserved.

    Happy Tuning!

  • Copyright GREE, Inc. All Rights Reserved.

  • Copyright GREE, Inc. All Rights Reserved.