Search found 48 matches
- January 3rd, 2013, 11:20 pm
- Forum: Everything
- Topic: It randomly started crashing?
- Replies: 11
- Views: 5629
Re: It randomly started crashing?
I believe that error is caused by a pixel getting outside the window.. I spent some time trying to recreate the error but I found nothing. Check over your if statements for checking if its in window, and if possible, try note what the application does before it crashes, like if a pixel goes of scree...
- December 22nd, 2012, 1:41 am
- Forum: Everything
- Topic: A few quick questions for a game.. [solved]
- Replies: 6
- Views: 2447
Re: A few quick questions for a game..
1) For closing the window via a button I use #include <stdlib.h> // This contains exit( exit code ) if( kbd.IsKeyPressed(0x27)) // If escape is pressed { exit(0); // Then we exit } As Natox said "EXIT_ SUCCESS" should work fine instead of "0". These are defined in stdlib.h: #define EXIT_SUCCESS 0 #...
- December 21st, 2012, 11:00 pm
- Forum: Everything
- Topic: [UPDATE 3.5]Angry Square
- Replies: 72
- Views: 29297
Re: [UPDATE 3.5]Angry Square
Paha, once I have some time to work on the project I shall add a few more gross apples..thetoddfather wrote:Odd.
True, unless it's a road/horse apple. Then it applies quite nicely lol
Then there can be load of gross sounds to be used..
Possibly a pie as well, that can optionally be thrown at the enemy..
- December 21st, 2012, 9:35 pm
- Forum: Everything
- Topic: [UPDATE 3.5]Angry Square
- Replies: 72
- Views: 29297
Re: [UPDATE 3.5]Angry Square
Using SetCursor works on my desktop but not my laptop..
I don't think that poo sounds is quite right for a rotten icky apple.. But I do like the idea.
I don't think that poo sounds is quite right for a rotten icky apple.. But I do like the idea.
- December 21st, 2012, 8:01 pm
- Forum: Everything
- Topic: [UPDATE 3.5]Angry Square
- Replies: 72
- Views: 29297
Re: [UPDATE 3.5]Angry Square
I removed the safety zone because at the start the enemy is now easier to get away from, he is slightly slower, So there is no need for it any more, because as the score increases the game gets harder. So basically, I removed it to try keep some balance at the start of the game. When I use SetCursor...
- December 21st, 2012, 4:03 pm
- Forum: Everything
- Topic: [UPDATE 3.5]Angry Square
- Replies: 72
- Views: 29297
Re: [UPDATE 3.5]Angry Square
I have been thinking about changing the chances of them spawning, but for now I am alright with it. I am considering a difficulty selection screen, and then using something similar to what you suggested but in a slightly different way. Classic and Survival does sound like a good idea, but then I wou...
- December 20th, 2012, 7:27 pm
- Forum: Everything
- Topic: stupid question =]
- Replies: 6
- Views: 2404
Re: stupid question =]
ExactlyCletus wrote:If someone else has some knowledge we don't =P then...well...BRING ON DA KNOWLEDGE!!. thats what we're here for right?
Anyway I am glad I could help, It's not a very deeply covered topic, but still, these things do prove useful to be learn't at the end of the day.
- December 20th, 2012, 6:43 pm
- Forum: Everything
- Topic: stupid question =]
- Replies: 6
- Views: 2404
Re: stupid question =]
I understand where you are coming from, but I don't actually think there is a difference between them all.. I just tried searching it on google, and from what I can gather, NULL is defined as 0, and NUL is defined as '\0' so they are just easier ways to write it if I'm right. so: #define NULL 0 #def...
- December 20th, 2012, 5:43 pm
- Forum: Everything
- Topic: stupid question =]
- Replies: 6
- Views: 2404
Re: stupid question =]
so yeah...probably not the most important coding question, but one that has been on the back of my mind for a bit. If you want to know the answer, then it is important, even if it doesn't seem like it. ;) Anyways.. I don't believe there is a difference between returning NULL, '\0' or 0, I thinks it...
- December 20th, 2012, 2:25 pm
- Forum: Everything
- Topic: [UPDATE 3.5]Angry Square
- Replies: 72
- Views: 29297
Re: [UPDATE 3.5]Angry Square
It was when the apple spawned at the top left, A pixel of the leaf escaped the screen, It shouldn't happen again, I have stopped the apples spawning so close to the edges.
Thanks for pointing that out, Else I wouldn't of noticed it.
Thanks for pointing that out, Else I wouldn't of noticed it.