Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    55
  • comments
    55
  • views
    24762

Level

Sign in to follow this  
AEdmonds

139 views

Today, I managed to get ball and player collisions working but at the moment I only check for the top of the player and not the sides. I may leave it like this if side collisions never/rarely happen. I'm thinking this is lazy but surely there's a trade-off between implementing every possibility (no matter how infrequent) and getting it done?

I also managed to get a level loaded from a file using ifstream, which did not take as long as I expected. The level is saved in a text document with 0 = space and 1 = block but this will change with different numbers corresponding to a different colour block. In the code I have all the levels stored in Level[MAX_LEVEL_NUMBER][BLOCK_X][BLOCK_Y] but at the moment this contains one level while I finish the rest of the mechanics. Another thing I will need to add later to the text file and loading function are passwords.

Tomorrow, I plan to get ball-block collisions working with the block disappearing, although this may take a couple of extra days to get right.

Thanks for reading
-AEdmonds
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!