TRy to find some good tutorials on internet that explain how you work with the arrays and how you manage the sprites !
Any 3D engine tutorial is good for understanding the principle or way of managing such game type !