[NUMBERRACE-41] pygame evaluation for xo-1 version for game Created: 28/Jul/2011  Updated: 17/Aug/2011

Status: In Progress
Project: NUMERORATA
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Tero Lehtinen (Inactive) Assignee: Tero Lehtinen (Inactive)
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: 1 week, 2 hours
Original Estimate: Not Specified


 Description   

read pygame web site, install and test pygame with eclipse.



 Comments   
Comment by Tero Lehtinen (Inactive) [ 17/Aug/2011 ]

Well pretty slowly since everything is new to me. I have found it hard to design code package structure for python. I simply have too little practice and experience on python programming. Anyway it is useful to learn something new.

I will put the codes into sourceforce when I have something worth to try, on friday I think.

Comment by Oleksandr Maslov [ 17/Aug/2011 ]

So, how is going?
Where I can see and try any code?

Comment by Tero Lehtinen (Inactive) [ 08/Aug/2011 ]

Ok, I check where to put it.

Comment by Oleksandr Maslov [ 08/Aug/2011 ]

no objection. But I'd like code is some version control, so I can see it from time to time.

Comment by Tero Lehtinen (Inactive) [ 05/Aug/2011 ]

If there is no objections I can start coding python version? I can do design and documenting as code progresses.

Comment by Tero Lehtinen (Inactive) [ 29/Jul/2011 ]

Ok, that game was maybe badly done. It is simple, so maybe try optimising with it?

We should anyway do good design first. The Java version code is so complex that optimising it for olpc is going to be hard. Now we have good change to do the game as it should have been done on first time

Comment by Oleksandr Maslov [ 29/Jul/2011 ]

Looking at the code... no wonder it is slow on slow device....
Loading images every circle of game loop - sound nice.
Blitting whole screen every circle - this is really fast...
May be some other things (just a brief look).

That one seems written in really "optimal" way

Comment by Tero Lehtinen (Inactive) [ 29/Jul/2011 ]

I tested pygame with simple Duck Shooter game on olpc. First it crashed on lack of mp3 sound file support.

So I commented music off from code. Now it works, but it is really really really slow. Same game on my laptop is too fast to play.

I did not see that there would be any timeout that would slow the game in code. And this game is really simple one simple duck image going across the screen with background image. This game is single code file with less than 100 rows of code.

It seems that pygame is easy to install on olpc, but is it actually capable of processing the game fast enough to make it enjoyable experience? We may have to make game much simple for olpc.

Tested duck shoot game : http://www.mediafire.com/file/n1h3v9wvdzdq1g7/duck.hunt.rar

Comment by Tero Lehtinen (Inactive) [ 28/Jul/2011 ]

I installed pygame on my ubuntu and pydev on eclipse. wrote a simple test that uses full screen animation (from instruction) and it worked.

Seems pretty straight forward environment. But it is too early to make opinion.

Generated at Mon Dec 15 09:02:02 EET 2025 using Jira 9.12.12#9120012-sha1:9afad32836b39ea19f5a357a6aae8106be665a8f.