Search found 87 matches
- November 28th, 2013, 5:43 pm
- Forum: Everything
- Topic: Classic snake game help
- Replies: 39
- Views: 12977
Re: Classic snake game help
Wow that actually made more sense then anything else ive read about pointers! Thanks then!
- November 27th, 2013, 2:11 pm
- Forum: Everything
- Topic: Classic snake game help
- Replies: 39
- Views: 12977
Re: Classic snake game help
wow those two were surprisingly easy fixes, thanks!! So I guess it is pretty much done now except one thing... the purpose of this was to basically go over everything I've learnt in the beginner course, and the only two things I haven't really used are strings and pointers. Now strings I have an ide...
- November 27th, 2013, 4:03 am
- Forum: Everything
- Topic: Classic snake game help
- Replies: 39
- Views: 12977
Re: Classic snake game help
um well wow your code is a lot different haha xP ill just upload my code cause thhen i actually know whats going on? haha anyways here it is. Also quick note, your game doesnt draw the snakes and apples centered in the squares haha
- November 26th, 2013, 2:37 am
- Forum: Everything
- Topic: Classic snake game help
- Replies: 39
- Views: 12977
Re: Classic snake game help
ok i found the problem, but its weird... its in the code that checks if the snake hit the apple and then adds to the snake length and sets all the values for the new snake square. For some reason it just doesnt update? like lastSnakeX or lastSnakeX2 has a value, and it goes through the code, but the...
- November 14th, 2013, 11:23 pm
- Forum: Everything
- Topic: Classic snake game help
- Replies: 39
- Views: 12977
Re: Classic snake game help
ok i got the float thing and fixed the isnakeX mistake, but its still crashing? im not sure how to check what makes it crash other than something is being drawn outside the screen? Is there a way so that when it crashes I can see all the locals and see what went wrong?
- November 14th, 2013, 4:19 am
- Forum: Everything
- Topic: Classic snake game help
- Replies: 39
- Views: 12977
Re: Classic snake game help
OMG IT IS ACTUALLY DONE..... ok well almost. it still crashes randomly and i'm not sure why, but omg I am amazed i figured this out.
- November 14th, 2013, 4:17 am
- Forum: Everything
- Topic: floats and ints?
- Replies: 2
- Views: 1496
Re: floats and ints?
omg thank you haha oops that was so easy, thanks again
- November 14th, 2013, 3:41 am
- Forum: Everything
- Topic: floats and ints?
- Replies: 2
- Views: 1496
floats and ints?
So, I want y to increase, but not by one because that's too fast. So i tried to get it to be increase by 0.2F, even though i declared y as a int? Am i doing this wrong because now it doesn't work :o if(kbd.UpIsPressed()) { if(!kbd.DownIsPressed() & !kbd.RightIsPressed() & !kbd.LeftIsPressed()) { y -...
- October 29th, 2013, 1:36 pm
- Forum: Everything
- Topic: Classic snake game help
- Replies: 39
- Views: 12977
Re: Classic snake game help
thanks for the help again!
- October 29th, 2013, 4:03 am
- Forum: Everything
- Topic: Classic snake game help
- Replies: 39
- Views: 12977
Re: Classic snake game help
i am just lost in code right now. I feel like im doing everything you told me to do, yet, nothing is working right? agh idk, i need another hint to get me on the right track i suppose. Also I know im not erasing the snake as i go, i just want to get the movement down first.