Date post: | 06-Aug-2015 |
Category: |
Engineering |
Upload: | pedro-kayatt |
View: | 13 times |
Download: | 1 times |
Globalcode – Open4education
Trilha – .NETPedro Monteiro KayattMsc. Computer Engineer
CEO – Naked Monkey Games
Globalcode – Open4education
Agenda
Cocos2DIntrodução e Versões
XNA e MonoGame
Como começar?Preparar o Ambiente
Arquitetura BásicaEstrutura
Hierarquia
ExemploAdicionando Sprite
Actions
Inputs
Globalcode – Open4education
COCOS2D
Multi-PlataformaIOS
Android
Windows Phone
Blackberry, Bada, Tizen, geladeira da minha avó….
Código Aberto
Rápida
Comprovada25% de todos jogos mobiles (muito forte na Ásia)
Globalcode – Open4education
Versões
Cocos2D-XC++
Com maior suporte a diferentes plataformas
Rápida e leve
Cocos2D-XNAWindows Phone
MonoGame
Cocos2D-HTML5Rápida (Javascript)
Multi plataforma (em navegadores)
Javascript Binding
Globalcode – Open4education
Começando
GitHubhttps://github.com/Cocos2DXNA/cocos2d-xna
Nuget
Globalcode – Open4education
Arquitetura Básica
MonoGame
Globalcode – Open4education
Estrutura
Globalcode – Open4education
Estrutura - Hierárquica
Globalcode – Open4education
Exemplo
Globalcode – Open4education
Exemplo
Globalcode – Open4education
Actions
CCActionInstantCallFunc
FlipX
FlipY
Hide
Show
Place
RemoveSelf
ReuseGrid
ToggleVisibility
...
CCActionIntervalAccelAmplitude
Animate
Blink
FadeIn/Out/To
TintBy/To
MoveBy/To
RotateBy/To
ScaleBy/To
SkewBy/To
JumpBy/To
ProgressTo
Repeat
...
Globalcode – Open4education
Actions - Exemplo
Globalcode – Open4education
Actions - Exemplo
Globalcode – Open4education
Input
Inicialmente pensados em interfaces com MobileFortemente focado em Toques
Alterações para maior autonomia em outros sistemas.
Windows
Controles
Globalcode – Open4education
Input - Touch
Globalcode – Open4education
Input - Teclado
Globalcode – Open4education
Input - Acelerometro
Globalcode – Open4education
Input – Controles (Xbox)
OnGamePadButtonUpdate
OnGamePadConnectionUpdate
OnGamePadDPadUpdate
OnGamePadStickUpdate
OnGamePadTriggerUpdate
Globalcode – Open4education
Adicionando PerC
Globalcode – Open4education
Construtor
Globalcode – Open4education
Start – A cada nova Camada
Globalcode – Open4education
Update (parte 1)
Globalcode – Open4education
Update (parte 2)
1080
1920320
240
HandX = CamX * 1920/320
HandY = CamY * 1080/240
PROBLEMAS?
1º - Espelhamento
2º - Sensibilidade nas bordas
Globalcode – Open4education
Update (parte 2,5)
Globalcode – Open4education
Usando o CM
Globalcode – Open4education
Pedro Kayatt
@pekayatt
Naked Monkey Games
@nakedmonkeyG
www.nakedmonkey.com.br
https://github.com/pekayatt/cocos2dxna_intelPerC
Obrigado
Globalcode – Open4education
Mais uma coisinha....