문제

I am completely new to android game programming. I really dont have any idea how can we create animated sprites. I have seen this guy using that amazing application RUBE to create a game character http://www.youtube.com/watch?v=bBIXpu-D_Zo can we do that stuff in android too ?

Even if we can how can we load such massing character to our andorid project. I accept i am noob at this but i have great interest in game development, please help me with detailed answer.

Thanks in advance

도움이 되었습니까?

해결책

What you'll need is a sprite sheet. A series of images on the same bitmap laid out in a grid. For example you would have 8 different sprites of the same character, 1 standing still., 1 left foot forward, 1 right foot forward and jumping and again facing the opposite direction.

When you draw the sprite set the coordinates to be drawn and on button presses change the variables controlling the coordinates.

A good tutorial is here http://warriormill.com/2009/10/adroid-game-development-part-1-gameloop-sprites/

and a sprite sheet maker can be found here http://www.codeandweb.com/sprite-sheet-maker

Hope this helps!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top