1. Trang chủ
  2. » Luận Văn - Báo Cáo

Công nghệ 3D on mobile

47 443 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 47
Dung lượng 3,91 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Branch Target Platform API LanguageCocos2d-x iOS, Android, Windows 8, Windows Phone 8, Windows, Linux, Mac OS X C++, Lua, Javascript Cocos2d-iPhone iOS, Mac OS X, Android Objective-C Co

Trang 1

Click to continue…

Khoa KH & KT Máy Tính

ĐẠI HỌC BÁCH KHOA TP.HCM

Trang 4

P 4

Trang 5

Giới thiệu

P 5

• No document

Trang 6

Những điểm chính

• Sprites

• Animations and Modifications of Sprites (Rotation, Scale)

P 6

Trang 7

Những điểm chính

• Sound and Music Integration

• Split screens

P 7

Trang 9

Những điểm chính

• Scales on any Screen

P 9

Trang 12

Thành phần cơ bản

P 12

SimpleBaseGameActivity

Engine Scene

Camera Entities

Textures

Trang 15

COCOS2D

Trang 16

Cocos2D là gì?

Được phát triển bởi Ricardo và cộng sự

 ShinyCocos, in Ruby.

 Cocos2D-Android.

 Cocos2D-windows, in C++ for WindowXP/7 only.

 Cocos2D-javascript, in javascript for browsers.

 CocosNet, in C# base on Mono.

Giới thiệu

Trang 17

Lịch sử phát triển

Tháng 3/2008, Cocos2d ver 0.1 (Ricardo)

Trang 18

CocosStudio CocosBuilder Cocos2d-Iphone

ShinyCocos

Cocos2d-net Cocos2d-Javascript Cocos2d-x Cocos2d-Windows Cocos2d-Android

Trang 19

Branch Target Platform API Language

Cocos2d-x iOS, Android, Windows 8, Windows Phone 8,

Windows, Linux, Mac OS X

C++, Lua, Javascript

Cocos2d-iPhone iOS, Mac OS X, Android Objective-C

Cocos2d-html5 HTML5-ready browsers Javascript

Cocos2d-xna Windows Phone 7&8, Windows 7&8, XBox360 C#

Các phiên bản

Trang 20

Vì sao lại sử dụng Cocos2D?

Đặt vấn đề

Trang 21

Hiệu suất tuyệt vời

Trang 22

Lense, Ripple, Wave

Move, Rotate, Scale

Trang 23

Showcase

Trang 25

Cấu trúc Cocos2d

 Mỗi Scene có các layer

 Layers bao gồm Sprites và tương tác người dùng

 Director quản lý các Scenes

Trang 26

Cấu trúc Cocos2d

Scenes workflow

Trang 27

Cấu trúc Cocos2d

Layers -Bao gồm toàn bộ màn hình -Xử lý các tác vụ như chạm, lắc, -Có thể chứa layer khác hoặc Sprite

Trang 28

http://dan.clarke.name/2011/04/how-to-make-a-simple-android-game-with-cocos2d/

Trang 29

Introduction to

libGDX

Trang 30

1/7/16 Seite 30 ANDLABS – Introduction to AndEngine

Trang 31

1/7/16 Seite 31 ANDLABS – Introduction to AndEngine

Introduction

Trang 32

1/7/16 Seite 32 ANDLABS – Introduction to AndEngine

• Founder Mario Zechner

• Game development framework

• Written in Java with some C/C++ mixed in

Introduction

Trang 33

1/7/16 Seite 33 ANDLABS – Introduction to AndEngine

History

Trang 34

1/7/16 Seite 34 ANDLABS – Introduction to AndEngine

Trang 35

1/7/16 Seite 35 ANDLABS – Introduction to AndEngine

Pros and Cons

Trang 36

1/7/16 Seite 36 ANDLABS – Introduction to AndEngine

Trang 37

1/7/16 Seite 37 ANDLABS – Introduction to AndEngine

• Lack of documentation

Cons

Trang 38

1/7/16 Seite 38 ANDLABS – Introduction to AndEngine

Architecture

Trang 39

1/7/16 Seite 39 ANDLABS – Introduction to AndEngine

Trang 40

1/7/16 Seite 40 ANDLABS – Introduction to AndEngine

• Instantiate sub-modules

• Create window on destop or activity on Android

The Application

Trang 41

1/7/16 Seite 41 ANDLABS – Introduction to AndEngine

• Rendering thread

• RenderListener

Graphics Module

Trang 42

1/7/16 Seite 42 ANDLABS – Introduction to AndEngine

• Sound and Music class

• AudioDevice, AudioRecorder for more control

Audio Module

Trang 43

1/7/16 Seite 43 ANDLABS – Introduction to AndEngine

• Polling access

• Event based handling

Input Module

Trang 44

1/7/16 Seite 44 ANDLABS – Introduction to AndEngine

• Read and write file

• FileHandle

File Module

Trang 45

Application Life-Cycle

Trang 46

Overview

Trang 47

Questions?

Ngày đăng: 07/01/2016, 20:22

TỪ KHÓA LIÊN QUAN

w