Someone wanna take a quick look at my source and tell me why weird things are happening?
Still trying to recreate space invaders, from scratch on the 3ds. Currently I have it drawing the invaders and I manually put in the Move right and move left. However when I press Right to move them Right, They move Left, and vice versa. It also seems they are being drawn in an Upside Down order (If I press Left Enough They Will Bump Up a line... When it should be pressing right causes them to bump down, *Havent added the Line Movement Functions yet but due to a bug that wont matter later,when pressing dpad it doesnt run the function to check If its safe to move them left or right, it just runs the move code*
Also I Thought I had done the Drawing Correctly But If I put in 2 into the array containing the alien layout, which should represent the 2nd alien sprite (havent added it yet) it puts out invader/alien 1's 2nd animation (for first animation) and a green square (for 2nd animation (0 is = to draw pixel) so the square makes sense). Its the First thing Ive ever made in c++ so any tips or comments would be appreciated. Also Anyone willing to take a look at it and see where I derped since the documentation on the 3ds isnt great and its kinda annoying to create text output to display debug info (although I might create a header file that I can use to draw words to the bottom screen specifically to check the values of my array's and variables).
I uploaded the source of what I have currently below, its project file is in codeblocks. But Most of the Functions are in draw.c, the 3dsx file is in the zip as well.
*Its more updated then the last one I posted However*