y < 600 ???

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
codinitup
Posts: 112
Joined: June 27th, 2012, 7:43 am

y < 600 ???

Post by codinitup » July 5th, 2012, 3:46 am

I keep getting this error, it says y < 600. I'm getting really confused, for one: I don't know what it's asking me to fix. For two, isn't my program supposed to be less than 600 on the y axis? I uploaded the game, and I would like to know what causes this error.
Attachments
My Game.zip
(171.36 KiB) Downloaded 131 times
MOOOOOO

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: y < 600 ???

Post by chili » July 5th, 2012, 4:07 am

You're getting that error because your code is trying to draw a pixel beyond the bottom of the screen (y==599). Look hard at your routines in game.cpp and find your mistake brah. I recommend using the debugger.
Chili

User avatar
codinitup
Posts: 112
Joined: June 27th, 2012, 7:43 am

Re: y < 600 ???

Post by codinitup » July 5th, 2012, 4:23 am

aaah I found the error. random number generation screwed me up. Also I drew the poo wrong. Simple mistake, hard to debug :p
MOOOOOO

Post Reply