Recent update

Subscribe to RSS feed

Update

November 22nd, 2007 by mikeleon

So I stopped making posts back when I couldn’t't get textures to work, since there was never anything new to write about, and got out of the routine of doing it.  But now that I am actually getting stuff to work I guess I should start writing again.

Two weeks ago Prof. Polack managed to figure out what was wrong with the textures (I was loading textures then creating windows which is apparently a no-no), and got that fixed.  Since then I have been trying to recreate everything i had working before, sans textures.

 Right now I have a splash screen for the program, then when you click anywhere or hit any button the main menu screen pops up.  This is just a title screen with buttons to start the game, go to a couple of settings menu, or exit.  The buttons work right now, but they aren’t fully implemented, since that will depend on the actual game we use (we are still thinking the maze one).

One thing I have learned though is that the order of window -> textures applies throughout the life of the program.  So whenever I create a new window and destroy the old one (which is how I implemented switching screens), I have to reload the textures or the new screen can’t use them.  This was easy to fix though since I had somewhat expected it, and I just moved the texture loading and initialization into the creation of each window.  This means I am loading all the textures for every screen (which isn’t needed), but it keeps the code simple and easy to read. But the real reason it’s ok is that the textures load instantaneously as far people can tel, so there is no noticible preformance difference. 

Posted in Uncategorized | | 0 Comments

 
FireStats icon Powered by FireStats