Hi,
I have been so busy (and ill) over the last couple of months and I haven't had the time required to finish my port (actually a complete write as there wasn't any code to pull from MMF) of Ghostbusters for the GP2X.
I am after a bit of help:-
1) I am working on the account entry bit, where you enter a number that corresponds to your balance. How can I convert a long to char[]? I need to be able to operate on the individual chars afterwards to work out a checksum and merge with the account number. I have tried ToString() and casting but I seem to be going around in circles trying to work out why these won't work.
2) Does anyone have any example code for fast pixel hit detection between 2 sprites? I need to add this to the 'catch the ghost bit'. I realise how to do this, lock the surface and check the collision sprite looking for none background pixels in the collision rect but wondered if anyone had any SDL related code that I could quickly add in?
Many thanks, credits will be included on the title screen and in the credits for any help given.
I have been so busy (and ill) over the last couple of months and I haven't had the time required to finish my port (actually a complete write as there wasn't any code to pull from MMF) of Ghostbusters for the GP2X.
I am after a bit of help:-
1) I am working on the account entry bit, where you enter a number that corresponds to your balance. How can I convert a long to char[]? I need to be able to operate on the individual chars afterwards to work out a checksum and merge with the account number. I have tried ToString() and casting but I seem to be going around in circles trying to work out why these won't work.
2) Does anyone have any example code for fast pixel hit detection between 2 sprites? I need to add this to the 'catch the ghost bit'. I realise how to do this, lock the surface and check the collision sprite looking for none background pixels in the collision rect but wondered if anyone had any SDL related code that I could quickly add in?
Many thanks, credits will be included on the title screen and in the credits for any help given.