Sign in to follow this  

allegro game programming

This topic is 2819 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to make a breakout game in c++ using allegro. My problem is how to store the score and name of the players to a file and then show the highscore table by reading the same file,also this file needs to be appended during the program.Ive read about grabber utility in allegro tools but i dont know how to first of all make a data file of my own using grabber tool and how to append it when the program is running.Anybody whose made a game with a score board knows what im talking abt.I need a tutorial or probably a snippet of a code in order to get the abv requirements

Share this post


Link to post
Share on other sites
Game programming all in one by jonathan harbour should do the trick..

there's a whole chapter, or whatever, for this.. dunno if there's any specific tutorials on net...

Share this post


Link to post
Share on other sites
That book won't tell you how to do it using the datafile grabber functions in Allegro. You really don't need to use them either.

You can just look up any tutorial on file I/O using functions like fopen, fread, fwrite, fprintf, and fscanf. Those will work just fine for storing your player data.

Share this post


Link to post
Share on other sites

This topic is 2819 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this