RE:[pygame] GUI for pygame : ThorPy

2015-06-25 Thread Yann Thorimbert
such notes, please send them to me periodically. Best regards, Dave On Wed, Jun 24, 2015 at 6:16 PM, Yann Thorimbert yann.thorimb...@unige.ch wrote: Hi all, As many people did, I have been looking for a GUI for pygame. Naturally, I have found this page : http

[pygame] GUI for pygame : ThorPy

2015-06-24 Thread Yann Thorimbert
:( ) Thanks! Regards, Yann Thorimbert

RE:[pygame] Re: GUI for pygame : ThorPy

2015-07-03 Thread Yann Thorimbert
Hello, Yes you can set image and size of the buttons for each state (normal, pressed, etc...). You can set the image of the element with my_element.set_image(path_to_image). (second optionnal argument: state of the button. Typically you would use thorpy.constants.STATE_NORMAL and

[pygame] Should I use Sprites and Groups ?

2015-12-10 Thread Yann Thorimbert
Hi, I'm currently looking into a "big" minigame that I wrote a few years ago. At this time, I dit not try to use Sprites and Groups objects, and so the code I'm talking about does not use them. Now that I want to continue the development of this game, I wonder how much the code would gain in

[pygame] connect-4 game

2016-01-30 Thread Yann Thorimbert
Hi all, I would like to introduce the simple game I've written using pygame. It's a connect-N game with interesting AI capabilities (well, I hope so). The description and code can be found here : http://thorpy.org/applications/ninarow.html . Also, I really would like to be able to add my

RE: [pygame] connect-4 game

2016-01-30 Thread Yann Thorimbert
e an account at http://pygame.org/login/new.php?nospamplease=thisisabitweird and then you can add your project... Op 30 jan. 2016 17:59 schreef "Yann Thorimbert" <yann.thorimb...@unige.ch<mailto:yann.thorimb...@unige.ch>>: Hi all, I would like to introduce the simple ga

RE: [pygame] PyGame user interface widgets

2017-02-27 Thread Yann Thorimbert
is good too. Unix, Mac, Win On 27 February 2017 at 03:35, Yann Thorimbert <yann.thorimb...@unige.ch<mailto:yann.thorimb...@unige.ch>> wrote: "is there a way to hook into a custom event loop?" ==> Yes, here is an example where one uses a pre-existing pygame code with an

RE: [pygame] PyGame user interface widgets

2017-02-26 Thread Yann Thorimbert
Hello Irv, I wrote (and now maintain) a library called ThorPy (www.thorpy.org) that could fulfill your requirements. On the website, I focused on the examples and turoials, so I hope it would be easier for a new person to use the library quickly. However, I have to admit that the library does

RE: [pygame] PyGame user interface widgets

2017-02-26 Thread Yann Thorimbert
k box should probably be called CheckBox rather than Checker. Looks like a nice set of functionalities though; is there a way to hook into a custom event loop? — Daniel Foerster On Feb 26, 2017 11:47, "Yann Thorimbert" <yann.thorimb...@unige.ch<mailto:yann.thorimb...@un

RE: [pygame] PyGame user interface widgets

2017-02-27 Thread Yann Thorimbert
nd Linux but not for Mac. Will your library work on Macs? Is it just missing an installer? (I use a Mac for all my development.) Thanks again, Irv > On Feb 26, 2017, at 9:32 AM, Yann Thorimbert <yann.thorimb...@unige.ch> wrote: > > Hello Irv, > > I wrote (and now mai

RE: [pygame] Distributing games for Windows - Pynsist

2016-10-24 Thread Yann Thorimbert
?Hello, This sounds nice, I will try soon. Until now, I've always used py2exe in order to provide "standalone" windows version of my python-pygame scripts. What are the pros and cons, in your opinion, to use py2exe or a method like pynsist ? Thanks, Yann De

RE: [pygame] How does pygame.draw.rect border width work?

2017-11-02 Thread Yann Thorimbert
Hello, When I need a true border, I simply draw two rects, the seconde one hiding the first one in such a way that the rest of the first one constitutes the border. I don't know why the default behaviour of draw.rect() is this strange border for width bigger than 1. Cheers, Yann

RE: [pygame] pygame awesome libraries?

2018-04-05 Thread Yann Thorimbert
Not exactly awesome, but still can be useful for standard in-game menus/GUI in general : https://pypi.python.org/pypi/thorpy. I focused on providing as much as examples and tutorials as possible on http://www.thorpy.org Cheers, Yann De :

RE: [pygame] Drawing efficiency question

2022-03-02 Thread Yann Thorimbert
If the ennemies are generated randomly, and if you are sure they are the bottleneck of the FPS, you could generate them dynamically as the character progresses through the world. Otherwise, you can divide your world in multiples rects the size of the screen, and link each ennemy to the