Guest Jayenkai Posted February 26, 2004 Report Posted February 26, 2004 It's an Ultra Retro Platforming game.. (Don't get too excited!) But first, I need a teensy tiny bit of help.. char progname[255]; GetModuleFileName(NULL, progname, 255); //gives me "Storage CardGamesPlatdudeJNKPlatTest.exe" (I think!! If not, correct as necessary!) char leveldir[10]="levs"; int Level=1; char Ext[4]=".lev"; //Required output = "Storage CardGamesPlatdudelevs1.lev" Once I've managed this, I can get working on the Level Select/advancing, and allow the user to move the program from it's ultra specific location.
Guest SpaceRain Posted February 27, 2004 Report Posted February 27, 2004 It's an Ultra Retro Platforming game.. (Don't get too excited!)Too late. :) char progname[255]; GetModuleFileName(NULL, progname, 255); //gives me "Storage CardGamesPlatdudeJNKPlatTest.exe" (I think!! If not, correct as necessary!) char leveldir[10]="levs"; int Level=1; char Ext[4]=".lev"; //Required output = "Storage CardGamesPlatdudelevs1.lev" First you need to change: char Ext[4]=".lev"; To: char Ext[5]=".lev"; We need that null character at the end. Then you just do: sprintf(strrchr(progname, '')+1, "%s%d%s", leveldir, Level, Ext); If you have any other questions, just ask, we're always happy to help. :)
Guest Jayenkai Posted February 27, 2004 Report Posted February 27, 2004 Managed it this morning.. But thanks :D I've got the level loading working right, finally. The enemy AI (as extremely basic as it is) is not yet up to the standards of the original QBasic version, so I'll be doing more work on that. I have a lot more tiles to add to the game, and, of course, plenty of levels, too. If you want a basic idea of the game, click here The game I'm doing is more or less based on the topmost one! Like I said... Don't get too excited :) I also need to work on the controls a little, too.. At the minute, I'm using the teensy-pad, but I think numbers might be better..
Guest SpaceRain Posted February 28, 2004 Report Posted February 28, 2004 Edit: I was having a bad day.
Guest Jayenkai Posted February 28, 2004 Report Posted February 28, 2004 Yup, sure will!! See ya round :)
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now