I don't have the time for this kind of deadlines anymore. Not even one all-nighter? I did nothing on Saturday except real work and family reunion?
It's really easy to write games with Python. It's mostly just a matter of having a good game concept. The coding is the easy part.
Chipmunk is cool. Qt's graphic scene stuff is cool. My ChipmunkScene is coolest ;-) I should rethink the API but the concept is killer stuff. With a little work this thing is like LEGO!
I will try again in PyWeek6.
A bit of progress, although not much time to work on it anymore so I will probably not make it.
Objects now can do things when they are hit by other kinds of things.
Example: If a ball hits the bottom of the catapult cup, the catapult shoots. If something hits the target object, you win the level.
Suddenly I was having a calm day at work, and Rosario is taking care of the baby, so I spent a few hours on the PyWeek project.
I have integrated Chipmunk with QGraphicsScene.
What does it mean? That I can now...
Create a scene
Create a view onto that scene
Create balls, walls and polygons as scene items
Watch said balls/walls/polygons bounce around happily under Chipmunk direction.
For example, here's enough code to create a few balls a box and a staircase:
self.scene=ChipScene() self.ui.view.setScene(self.scene) for x in range (0, 10): self.scene.addBall(x*50.0+10, 50.0, 10.) self.scene.addBall(x*50.0+20, 20.0, 10.) self.scene.addWall(0., 0., 0., 500.) self.scene.addWall(0., 500., 500., 500.) self.scene.addWall(500., 500., 500., 0.) self.scene.addWall(500., 0., 0., 0.) for i in range (0, 20): self.scene.addWall(i*20, 200+i*20, i*20+20, 200+i*20) self.scene.addWall(i*20+20, 200+i*20, i*20+20, 200+i*20+20) self.scene.addPoly([[0, 50], [0, 100], [100, 100], [100, 50], [0, 50]])
I declare that nifty.
Well, it seems I am in trouble for PyWeek.
Why? Because it's wednesday and I have done nothing. Nothing! It's because I have been working a lot, really, and I have a 4 month baby, too.
So, I am upping the ante.
I will do a PyDay.
I am taking tomorrow off (yeah, right!) and I'm doing the game in one day. Maybe I will scrounge a few hours on sunday, too.
It will probably not be fit for the contest because:
I will use PyQt
I won't test it in any platform other than my Linux box
But here's the game concept (BTW: Twisted sucks as a theme. It sucks really, really, really hard!):
According to the dictionary, Twisted also means perverted. So, this game, Twisted Little Boy is about a bad boy. A really bad boy. But a clever one. He creates machines using random equipment he finds to do evil, really mean things.
I will probably do a live-blog thing like those tutorials I wrote years ago about PyQt.
There's a Google code project (obviously empty): http://code.google.com/p/twistedlittleboy/
See you all tomorrow.