Skip to main content

PushPush

a sokoban game


Vitaliy Kudasov
(kuviman)
PushPush is a sokoban game with an editor
python 2.6 + pygame + pyOpenGL should do the work

Changes

Links

Home Page
http://sites.google.com/site/kuviman/

Releases

PushPush 1.0 fix — 3 Sep, 2011

PushPush 1.0 fix2 — 3 Sep, 2011

PushPush 1.0 — 2 Sep, 2011

Pygame.org account Comments

  • josmiley 2011-09-02 21:44

    can't load any level :( no such file or directory ...

    Виталий Кудасов 2011-09-02 22:47

    not good( can you post error.txt contents please?

    josmiley 2011-09-03 00:14

    Traceback (most recent call last):
      File "PushPush.py", line 27, in <module>
        ppgame.run()
      File "/home/jos/Bureau/PushPush_1.0_src/ppgame/main.py", line 185, in run
        mm.run()
      File "/home/jos/Bureau/PushPush_1.0_src/ke/state.py", line 53, in run
        self.onMouseUp(e.button)
      File "/home/jos/Bureau/PushPush_1.0_src/ke/menu/menu.py", line 90, in onMouseUp
        self.focus.onRelease()
      File "/home/jos/Bureau/PushPush_1.0_src/ke/menu/button.py", line 46, in onRelease
        apply(self.func)
      File "/home/jos/Bureau/PushPush_1.0_src/ppgame/main.py", line 147, in play
        levels[settings['progress'][lst[x]]])
      File "/home/jos/Bureau/PushPush_1.0_src/ppgame/game/main.py", line 55, in load
        mp = pickle.load(open(path, "rb"))
    IOError: [Errno 2] No such file or directory: 'levels/easy/impossible\r.ppl'

    Виталий Кудасов 2011-09-03 12:43

    it looks like the problem was in windows line endings when running on linux, so s.split('\n') worked incorrectly
    i've uploaded fixed version, try it out

    EDITED: shit, forgot to rebuild levels, fixed again

    and, did you try mainmenu->custom level->something->something? this had to work if im right

    josmiley 2011-09-03 15:22

    "easy/impossible" win whatever the pressed key ...
    keys 1,2,3,4 don't work in level editor ...

    Виталий Кудасов 2011-09-03 16:26

    impossible is wrong because there's a storage under the box

    about keys, is there any response or an error message?
    pygame.K_1 to 4 should be pressed mb you press K_KP_1?  i think i should make both right

    josmiley 2011-09-03 16:40

    "No errors", no response ...
    only K_p, arrow keys and mouse buttons work

    Виталий Кудасов 2011-09-03 16:54

    i have no idea why K_p works and K_1 doesnt, thats strrange

    try changing ppgame/editor/main.py like this:
    ...
            elif key == K_1:
                print "K_1 pressed" #   <------------- ADD THIS
                if self.sel is not None:
                    print "WTF"       #     <-------------- AND THIS                self.map.set_at(self.sel, BOX)
    ...
            elif key == K_p:
                if self.sel is not None:
                    self.map.set_at(self.sel, ENTRY)
    ...

    then run editor, pres K_1, close, look log.txt, there should be "press" and "WTF" lines, are they there?

    josmiley 2011-09-03 19:27

    it seems some keys have not standard keycode
    K_1 = 49 but on my system there is not key numbered 49:  '1' = 38
    with K_KP1 it works ...