Skip to main content

PushPush - 1.0

a sokoban game

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


in game, press F2 to restart, BACKSPACE to cancel last move


Home Page


PushPush 1.0 fix — 3 Sep, 2011

PushPush 1.0 fix2 — 3 Sep, 2011

PushPush 1.0 — 2 Sep, 2011 account Comments

  • josmiley 2011-09-02 21:44:02

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

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

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

    josmiley 2011-09-03 00:14:29

    Traceback (most recent call last):
      File "", line 27, in <module>
      File "/home/jos/Bureau/PushPush_1.0_src/ppgame/", line 185, in run
      File "/home/jos/Bureau/PushPush_1.0_src/ke/", line 53, in run
      File "/home/jos/Bureau/PushPush_1.0_src/ke/menu/", line 90, in onMouseUp
      File "/home/jos/Bureau/PushPush_1.0_src/ke/menu/", line 46, in onRelease
      File "/home/jos/Bureau/PushPush_1.0_src/ppgame/", line 147, in play
      File "/home/jos/Bureau/PushPush_1.0_src/ppgame/game/", 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:52

    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:39

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

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

    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:59

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

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

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

    try changing ppgame/editor/ like this:
            elif key == K_1:
                print "K_1 pressed" #   <------------- ADD THIS
                if self.sel is not None:
                    print "WTF"       #     <-------------- AND THIS      , BOX)
            elif key == K_p:
                if self.sel is not None:
          , 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:29

    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 ...