| |||||||||||
PyWeek - Stumped!Well, it had to happen sooner or later, but maybe if I post about it someone will know a way around this...Basically, my game involves ironing, so I have two images - one of a shirt with rumples, one without. Graphically, the most effective way of pulling this off *seemed* to be blitting the uncreased image over the creased image under the mouse cursor, so I've set off down this route. Now, I've reached the point where I need to find some way to compare the working image with the uncreased image, to see if the user has finished their ironing yet. I've just spent most of the evening trawling through the surfarray and Numeric docs looking for anything that might let me do this, and while I've found a few good possibilities (such as Numeric.equal(a,b)) it still doesn't seem to work. I'm hoping that there's either something obvious that I've missed, or something clever that someone knows, otherwise I'll have to code up a new system, in which case I'll probably not get my coding done by the end of the competition... Help! — SimRex on 2006/03/31 21:58 of CrazyIroning Comments: (log in to comment) |
Last Challenge
September 2008 [entries, ratings] Previous March 2008 [entries, ratings] September 2007 [entries, ratings] April 2007 [entries, ratings] September 2006 [entries, ratings] > March 2006 [entries, ratings] (June 2006) August 2005 [entries, ratings] Not logged in Login | ||||||||||
By richard on 2006/03/31 22:03:
Why not just have a separate array that records the ironing?By SimRex on 2006/03/31 22:15:
Hmm... Would that be an arry to contain the creases, or an array to contain where the player has already ironed? Wouldn't that still bring me back, ultimately, to needing to compare two arrays? Because that is the bit I don't know how to do...By SimRex on 2006/04/01 13:30:
Now I get it! The mechanics are nicely up and running now, so it's just a case of adding polish. Wonder how much polishing can be done in 11.5 hours...By ciw42 on 2006/04/01 13:57:
If I'm lucky, approximately an entire games worth.