Yes, open your source please!
(or just PM it to me
)
Back in the summer, I noticed that someone was developing a homebrew game that I was really interested in, so I asked if I could work on it. When he sent me the source code, though, this is what it looked like:
Code:
while (1)
{
MyCounter++;
Move10--;
Move11--;
Move12--;
Move13--;
Move14--;
Move15--;
Move16--;
Move17--;
...
hit10++;
hit11++;
hit12++;
hit13++;
hit14++;
hit15++;
hit16++;
hit17++;
hit18++;
hit19++;
hit20++;
hit21++;
hit22++;
hit23++;
hit24++;
hit25++;
hit26++;
hit27++;
hit28++;
hit29++;
hit30++;
hit31++;
...
hit51++;
hit52++;
hit53++;
...
if (MyCounter == 1){ note = 10; Move10 = 270; hit10 = 0; PA_SetSpriteY(1,10,6);}//g
if (MyCounter == 2){ note = 22; Move22 = 270; hit22 = 0; PA_SetSpriteY(1,22,53);}//r
if (MyCounter == 22){ note = 11; Move11 = 270; hit11 = 0; PA_SetSpriteY(1,11,6);}//g
if (MyCounter == 23){ note = 23; Move23 = 270; hit23 = 0; PA_SetSpriteY(1,23,53);}//r
if (MyCounter == 30){ note = 12; Move12 = 270; hit12 = 0; PA_SetSpriteY(1,12,6);}//g
...
if (MyCounter == 15630){ note = 28; Move28 = 270; hit28 = 0; PA_SetSpriteY(1,28,53);}//r
if (MyCounter == 15631){ note = 38; Move38 = 270; hit38 = 0; PA_SetSpriteY(1,38,101);}//y
if (MyCounter == 15650){ note = 29; Move29 = 270; hit29 = 0; PA_SetSpriteY(1,29,53);}//r
if (MyCounter == 15651){ note = 39; Move39 = 270; hit39 = 0; PA_SetSpriteY(1,39,101);}//y
This code was so terrible I basically started over... and ended up not finishing, but that's beside the point. If you are new to programming, you need to get in the habit of organizing your code. Obviously you shouldn't have that much code right now because the app is pretty basic, but just so you know...
Anyway, I'd love to have a look at your source and work on your app with you.
Did you use the DS developer kit to make this if not what?
He used PAlib which is a wrapper for a library in the unofficial DS development kit, devkitPro, called libnds. PAlib is 1000x easier to understand if you are not experienced with low level programming (and I am not). I tried to develop without PAlib for a few weeks, but there are not many tutorials for libnds out there. PAlib is very well documented and has very good tutorials.
Hopefully this makes sense...
Bookmarks