Page 2 of 3

Re: Some Puzzle game

Posted: Mon Jul 25, 2011 7:57 pm
by tentus
You don't need to remind us that it's been 24 hours. It's not a hard-and-fast rule, it's a courtesy thing.

You may want to add a check in there to keep the player from making a difficult < 1. Also, making Escape quit the program is generally good manners. Finally, you've got some Power of 2 issues you may want to address.

Re: Some Puzzle game

Posted: Mon Jul 25, 2011 8:03 pm
by Trappingnoobs
tentus wrote:You don't need to remind us that it's been 24 hours. It's not a hard-and-fast rule, it's a courtesy thing.

You may want to add a check in there to keep the player from making a difficult < 1. Also, making Escape quit the program is generally good manners. Finally, you've got some Power of 2 issues you may want to address.
Out of curiosity; does PO2 syndrome only apply to love? It doesn't specify that it does on the wiki, but I couldn't find any similar results on any other sites on google that says anything about PO2, and I'd expect wikipedia to have an article on it.

Also; why do people make escape quit? What about the close button?

Re: Some Puzzle game

Posted: Mon Jul 25, 2011 8:05 pm
by GijsB
what do you mean? power of 2 issues?

Re: Some Puzzle game

Posted: Mon Jul 25, 2011 8:07 pm
by Trappingnoobs
GijsB wrote:what do you mean? power of 2 issues?
Older processors don't display images that aren't a power of two on both axis.

Re: Some Puzzle game

Posted: Mon Jul 25, 2011 8:07 pm
by GijsB
added that you cant go below size 2, and above size 9

Re: Some Puzzle game

Posted: Mon Jul 25, 2011 8:08 pm
by GijsB
so you cant have a image with the size 13,13 :O?

Re: Some Puzzle game

Posted: Mon Jul 25, 2011 8:10 pm
by nevon
GijsB wrote:so you cant have a image with the size 13,13 :O?
No. You'd have to add transparent padding so that it's 16x16.

Re: Some Puzzle game

Posted: Mon Jul 25, 2011 8:16 pm
by tentus
GijsB wrote:so you cant have a image with the size 13,13 :O?
You can, you just have to put it inside a 16x16 transparent image.

@Trappingnoobs: no, PO2 is very common, particularly in the 3d scene. A lot of engines hide the problem though, by automatically scaling images up to the next power. Love 0.8.0 will do this.

Re: Some Puzzle game

Posted: Mon Jul 25, 2011 8:18 pm
by GijsB
wait, if a make imgdata with a size of like 400 and 400, and put in there the images, will it work?

Re: Some Puzzle game

Posted: Mon Jul 25, 2011 8:28 pm
by bartbes
Last I checked 400 wasn't a power of two.
Also, you double posted again.

I'd like to point out that this has nothing to do with CPUs, as Trappingnoobs mentioned, it has to do with your graphics card.