Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    18
  • comments
    16
  • views
    16098

Hackman Day 2

Sign in to follow this  
Gooey

971 views

Ok so I had no time yesterday so i done some more today I have it loading and displaying now. Next up will be to get some movement and collision detection hopefully I will get some time tomorrow for that. I had a problem to begin with that nothing was being displayed. The problem was quite a simple one I had wrotestd::size_t offset(sizeof(float) * 2 * 6 * where);glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 0, (GLvoid*)offset);
instead ofstd::size_t offset(sizeof(float) * 2 * 4 * where);
Then my biggest problem came with actually getting Geoff to display properly he was displaying as the full texture instead of just a corner of it and spent ages messing about with it! It turned when I added an extra variable to my character class I wrote it different in the constructor definition to the prototype all because I done them backwards! After adjusting that it worked fine. I really need to do some new graphics but that can wait!
hackman.png

Two days down. Three to go hopefully.
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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!