From: <the...@ya...> - 2004-05-12 14:51:17
|
Hum, I don't know what's Andy planning in his evil mind but I would surely wait for the rewrite... Cheers. malefico. --- Mark Dillavou <dil...@ua...> escribió: > How soon is this happening ? Is it worth even > starting a project using > the current lib, or should I just wait for the > rewrite ? > > Mark > > On Wed, 2004-05-12 at 03:28, an...@la... > wrote: > > I plan to re-write Pyzzle from scratch. As far as > I am concerned the > > current code is dead. It is just too mesy and > yields unpredictable > > results. > > > > I am going to review the code and get back to > everyone in a day or so. > > > > The new code will have a different API and will be > a lib. > > > > Sorry I cannot help. > > > > Andy > > > > > I'm trying to use the change_slide function and > am running into some > > > strange problems. Here is some simple code that > works find with the > > > change slide: > > > > > > import os, sys > > > > > > #import the engine > > > import pyzzle > > > from pyzzle import * > > > > > > import Intro > > > from Intro import * > > > > > > #setup some defaults > > > parameters.setScreenSize((1024, 768)); > > > parameters.setResolution(24); > > > parameters.setSlideSize((800, 600)); > > > parameters.setBackgroundColor((0, 0, 0)); > > > #parameters.setZipMode(1) > > > > > > #paths to objects > > > paths.setTextPath(os.path.join('mydata','text')) > > > paths.setObjectPath(os.path.join('mydata', > 'objects')) > > > paths.setSlidePath(os.path.join('mydata', > 'slides')) > > > paths.setSoundPath(os.path.join('mydata', > 'sounds')) > > > paths.setImagePath(os.path.join('mydata', > 'images')) > > > paths.setMoviePath(os.path.join('mydata', > 'movies')) > > > > > > view1_1 = Slide() > > > view1_3 = Slide() > > > > > > staticmovie = Movie('static_01.MPG') > > > > > > def change(): > > > staticmovie.play(1, 1) > > > pyzzle.change_slide(view1_3) > > > > > > > > > view1_1.setSlideFile('startscreen.jpg') > > > view1_1.appendHotspot(action, (213,160,225,119), > action_cursor) > > > view1_1.appendMovie(staticmovie,(387,180)) > > > view1_1.setState(['bookdown', 1]) > > > view1_1.setAction(change) > > > > > > view1_3.setSlideFile('02.jpg') > > > view1_3.appendHotspot(view1_1, (0, 360, 640, > 120), down_cursor, fade) > > > > > > #--start the game > > > pyzzle.setFirstSlide(view1_1) > > > > > > pyzzle.start() > > > > > > now, inside the change function, if I comment > out the: > > > > > > staticmovie.play(1, 1) > > > > > > then the game does some strange stuff. First, > it won't update the > > > screen until the window looses focus then gains > it back, and at this > > > point it will update to the new slide, then > immediately crash with this > > > error: > > > > > > Traceback (most recent call last): > > > File "myTest.py", line 47, in ? > > > pyzzle.start() > > > File "/home/line72/tmp/pyzzle-0.8/pyzzle.py", > line 37, in start > > > pyzzlemain.gamemain() > > > File "enginecode/pyzzlemain.py", line 382, in > gamemain > > > new_cursor_zone = > get_map_pos(current_hotspotmap, event.pos) > > > AttributeError: event member not defined > > > > > > I don't understand why you HAVE to be playing a > movie to do a slide > > > change. Is this a bug or the way its supposed > to work ? The > > > documentation the website seemed a little > outdated and I couldn't find > > > the change_slide anywhere in the docs. > > > > > > btw, I'm running gentoo linux with > > > python-2.3.3 > > > pygame-1.6 > > > pyzzle-0.8 > > > > > > Also, what's the best way to package a game > created with pyzzle? Is it > > > best to include all of pyzzle with your game ? > I found it stange the > > > pyzzle doesn't create a library and install > itself in the python path. > > > > > > Any help is much appreciated, > > > Mark <Line72> Dillavou > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by Sleepycat > Software > > > Learn developer strategies Cisco, Motorola, > Ericsson & Lucent use to > > > deliver > > > higher performing products faster, at low TCO. > > > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > > _______________________________________________ > > > Pyzzle-users mailing list > > > Pyz...@li... > > > > https://lists.sourceforge.net/lists/listinfo/pyzzle-users > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Sleepycat > Software > > Learn developer strategies Cisco, Motorola, > Ericsson & Lucent use to deliver > > higher performing products faster, at low TCO. > > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > _______________________________________________ > > Pyzzle-users mailing list > > Pyz...@li... > > > https://lists.sourceforge.net/lists/listinfo/pyzzle-users > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson > & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Pyzzle-users mailing list > Pyz...@li... > https://lists.sourceforge.net/lists/listinfo/pyzzle-users ------------ Los mejores usados y las más tentadoras ofertas de 0km están en Yahoo! Autos. Comprá o vendé tu auto en http://autos.yahoo.com.ar |