PyWeek - Mousetrap - Anyone got it to do anything useful?
The mouse cursor is constrained to a rectangle at the bottom of the screen. Clicking the cheese does nothing. Is there a way of getting it to do something more?— gcewing on 2010/08/31 09:27
Comments: (log in to comment)

By stefanor on 2010/09/01 08:38:
Clicking on the cheese should get you to the first level. Worksforme. (You need pygame 1.9 btw)By taejo on 2010/09/01 15:58:
The constraint is meant to guide you to doing the right thing and give you some idea of the game mechanic.But clicking the cheese should work! Are you running on Windows (I only tested it in very lightly on Windows, before it was finished)? Do you have an unusual mouse?
By ilseppia on 2010/09/01 16:26:
What do you mean?By claxo on 2010/09/01 18:23:
just FYI, a standard mouse feels cheesy but workable in windowsBy taejo on 2010/09/01 23:00:
Yeah, the sensitivity is a bit of a mess./me resists the temptation to make a joke about cheese.
ilseppia: I see no reason why that shouldn't work (if the OS supports both it and python/pygame) -- the game only needs one mouse button.
By gcewing on 2010/09/02 08:06:
Are you running on Windows? Do you have an unusual mouse?No, MacOSX, and my mouse is quite usual (well, as usual as Apple mice get).
By taejo on 2010/09/03 12:49:
Are you using the latest versions of pygame and numpy? I can't think of anything else that might be going wrong.By gcewing on 2010/09/04 06:08:
Found it -- you're assuming little-endian byte order for your mask values. Bad assumption for a PPC!By taejo on 2010/09/04 07:51:
Thank you for working it out! And my apologies for being endianist.