You are not logged in.

#1 2009-03-05 15:04:13

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

pycross - puzzle game (first 'playable' version)

maybe some of you already played (Marios) Picross on your Nintendo * game console or somewhere else

i really like this game and decided to code it in python

for everyone who doesn't know the rules, read here:
http://en.wikipedia.org/wiki/Nonogram

current version is already playable but really lacks levels (2 included)


============
  HOW TO PLAY:
============

mouse:
   menu: menu navigation is buggy atm, use keyboard
   game: left-click square to solve it (you'll notice when you made a mistake)
             right-click to X it out (or remove the X)

keyboard:
    hjkl or arrow keys for navigation
    enter/space is like left click
    shift is like right-click

keyboard configuration and almost any color of the game can be changed in
~/.config/pycross/config

place additional levels in
~/.config/pycross/data/levels/



features i'll be adding the next days:
commenting the config file
display of highscore of a level (they are saved but not yet displayed)
better mouse navigation in menus

features i'm planning to add somewhen:
'starting help' which reveals 1 row and 1 column
options menu
different game modes (online 1v1?)
in-game level downloading

PKGBUILD:

pkgname=pycross
pkgver=0.1
pkgrel=1
pkgdesc="Nonogram puzzle game"
arch=('i686' 'x86_64')
url="http://http://en.wikipedia.org/wiki/Nonogram"
license=('GPL')
depends=('python' 'python-pygame' 'python-pysqlite')
install=
source=(http://rob.kingofnerds.net/arch/$pkgname-$pkgver.tar.gz)
md5sums=('1a4d585db3e2d0cf35e6b1d92bc8d40b')


build() {
  cd "$srcdir/$pkgname"

  install -d $pkgdir/usr/share/games/$pkgname
  install -d $pkgdir/usr/bin
  cp -r * $pkgdir/usr/share/games/$pkgname
  ln -s /usr/share/games/$pkgname/pycross $pkgdir/usr/bin/pycross 
}

# vim:set ts=2 sw=2 et:

☃ Snowman ☃

Offline

#2 2009-03-06 00:19:29

Yannick_LM
Member
Registered: 2008-12-22
Posts: 142

Re: pycross - puzzle game (first 'playable' version)

Got this just after clicking on "newGame" :

/usr/lib/python2.6/site-packages/pygame/sysfont.py:139: DeprecationWarning: os.popen3 is deprecated.  Use the subprocess module.
  flin, flout, flerr = os.popen3('fc-list : file family style')
Traceback (most recent call last):
  File "./pycross.py", line 161, in <module>
    MainWindow.mainmenu()
  File "./pycross.py", line 157, in mainmenu
    self.menuloop(self.mainmenu)
  File "./pycross.py", line 138, in menuloop
    men.update(events)
  File "/home/rob/py/pycross/menu.py", line 147, in update
    self.options[self.selected].mouse(e.button)
AttributeError: MenuItemRun instance has no attribute 'mouse'

Loving the idea, though

Offline

#3 2009-03-06 00:26:33

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: pycross - puzzle game (first 'playable' version)

Picross is fun. I played a flash game that had quite a lot of features several months ago. I was never good at it. I saw your thread and tried to do one I had on .jpg that was 30x30 in mtpaint. It went really well, but half way through I seemed to have run in to an error. But I learned a lot from wikipedia's solution page (it was a really hard one, and I wouldn't have gotten a single box otherwise), and now I want to try more harder ones.

Offline

#4 2009-03-06 05:40:51

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: pycross - puzzle game (first 'playable' version)

Yannick_LM wrote:

Got this just after clicking on "newGame" :

/usr/lib/python2.6/site-packages/pygame/sysfont.py:139: DeprecationWarning: os.popen3 is deprecated.  Use the subprocess module.
  flin, flout, flerr = os.popen3('fc-list : file family style')
Traceback (most recent call last):
  File "./pycross.py", line 161, in <module>
    MainWindow.mainmenu()
  File "./pycross.py", line 157, in mainmenu
    self.menuloop(self.mainmenu)
  File "./pycross.py", line 138, in menuloop
    men.update(events)
  File "/home/rob/py/pycross/menu.py", line 147, in update
    self.options[self.selected].mouse(e.button)
AttributeError: MenuItemRun instance has no attribute 'mouse'

Loving the idea, though

thats a Known Bug™
will be fixed in the next version wink

use keyboard for menu navigation


☃ Snowman ☃

Offline

Board footer

Powered by FluxBB