arcade puzzle game
Monsterz is a puzzle game similar to the popular Zookeeper and Bejeweled.
The goal is to swap monsters on a board in order to create alignments of three or more matching monsters. You earn even more points when a line or row disappears and creates a chain reaction. As levels increase, you get less and less time to find a move.
Two main modes are available: a standard mode in which a given number of monsters have to be eliminated to proceed to next level, and a puzzle mode in which pieces of a puzzle need to be put together by swapping monsters around. A training mode is also available to practice with any number of different monsters and any speed difficulty.
License: free
Requirements: Pygame (http://www.pygame.org/)
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | no | no | no | yes |
Submitted by Sam Hocevar on 2005-03-12.

./monsterz.py:394: Warning: 'yield' will become a reserved keyword in the future
Traceback (most recent call last):
File "./monsterz.py", line 1272, in ?
main()
File "./monsterz.py", line 1268, in main
monsterz.go()
File "./monsterz.py", line 864, in go
iterator()
File "./monsterz.py", line 971, in iterate_menu
self.generic_draw()
File "./monsterz.py", line 921, in generic_draw
system.blit(fonter.render('SOUND FX', 30, c), (470, 376))
File "./monsterz.py", line 261, in render
for i, (m, s, c, t) in enumerate(self.cache):
NameError: global name 'enumerate' is not defined
[TheGreenKnight@localhost monsterz-0.4-indep]$ rpm -q pygame
pygame-1.5.3-2mdk
python-2.2.2-6mdk
Music and sound effects, as they can get annoying after a relatively short time.
The game gets hard really fast; maybe add a practice mode with unlimited time, or adjustable levels of difficulty.
I have never heard of a license called the "Do What The F*ck You Want To Public License"; if it's supposed to be a joke, it's not funny - and I'm not saying this because I get p*ssed off by bad language. :-)
As for the license, it is quite old. Even Freshmeat knows about it.
Other than that, the only other thing that I noticed was the CPU use. I must admit that I'm not running the latest h/w, simply a PIII at 700mhz with lots of RAM, but I was surprised to see that the CPU usage was almost 100% constantly.
All that said, I'm enjoying playing the game, it's very addictive - thanks for sharing it :)
As for the cpu use, most anything made with PyGame would benefit from the use of Psyco, which precompiles the python code and can give speeds close to that of an equivalent C program.
python-pygame v. 1.6.2-2.1 installed.
Any sugestion?.
Best regards. Ventura
Great Job ! I really wonder what could be improved, he !
greetings people, many thanks to you Sam Hocevar for this game :-D
i've got this error when i loose (my system is gentoo linux):
monsterz-0.4.1 $ python -V
Python 2.3.4
monsterz-0.4.1 $ ./monsterz.py
./monsterz.py:167: RuntimeWarning: use surfarray: No module named surfarray
pixels = pygame.surfarray.pixels3d(self.shaded[i])
Traceback (most recent call last):
File "./monsterz.py", line 1297, in ?
main()
File "./monsterz.py", line 1293, in main
monsterz.go()
File "./monsterz.py", line 877, in go
iterator()
File "./monsterz.py", line 1072, in iterate_game
self.game.game_draw()
File "./monsterz.py", line 573, in game_draw
if score < 5000:
NameError: global name 'score' is not defined
(process:19838): Gtk-CRITICAL **: file ../../gtk/gtksettings.c: line 447 (gtk_settings_get_for_screen): assertion `GDK_IS_SCREEN (screen)' failed
(process:19838): GLib-GObject-CRITICAL **: file gobject.c: line 1222 (g_object_get): assertion `G_IS_OBJECT (object)' failed
(process:19838): GLib-GObject-WARNING **: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
(process:19838): GLib-GObject-CRITICAL **: file gobject.c: line 1620 (g_object_set_qdata_full): assertion `quark > 0' failed inkscape: symbol lookup error: inkscape: undefined symbol: g_return_if_fail_warning make: *** [tiles.png] Error 127 [root@system1 monsterz-0.4.1-src]#
If you have to build without X you can always run Xvfb which provides a fully "virtual" X server, that its it doesn't actually display anywhere or accept input.
It makes programs like inkscape and xmms happy.
-k8to
Real masterpiece, thank you! (Ideas: the game could remember music/sound/fullscreen settings, but not important. :-) )
Upgraded 0.6.0 now. Yes, settings saved, thanks! :-) The new puzzle mode is even more crazy, you postpone all my personal projects! :-D Displaying the points when monsters go is an excellent idea!
I moved my points from 0.4.1 to ~/.monsterz, I hope the points system (not file format! the way points are given) is the same, so I have the same measure of my success. :-)
Last not least the final flaw is the gameplay, its questionable if one should try to 'fix' it, since the original Zookeeper suffers from the same flaw, but I for one find it rather boring to be limited to only being allowed to move pieces which build a row. This kind of destroys the chain-building that makes other puzzle games fun, so it plays more like Mahjong where you just stare at the screen till you find matching pieces. So while one should probally keep it that way, it would be nice to have an additional game mode where one would be able to move all pieces around, not just the row-building ones.
And a little suggestion about the controls: I would find it nice if the game would optionally support 'drag&drop' style controls, ie. click on a piece and hold the button while draging it into the direction where it should move, then just 'snap' automatically if the direction gives a match. This would solve the problem of having 'stray' markings on a piece, ie. one has to manually unmark a piece, since it doesn't get automatically unmarked when one clicks on another piece outside the range, simply marking the new piece if its outside the range of the old one might of course also solve the problem.
PS: I only did my classic 3min gameplay tested, so I might have missed quite a lot of stuff, so please correct me if I am dead wrong.
The CPU usage is indeed excessive, and is due to my own laziness because I have known for ages how to reduce it. I just need to find the time and motivation. The resolution issue could be addressed as well, but I am not a big supporter of direct SVG rendering because it draws a lot more dependencies (pygame has no support for it) and I would like to keep the code short. An acceptable compromise would be to ship graphics rendered at a higher resolution and scale them down at runtime for smaller window sizes.
As for the gameplay limitation you mention, it is indeed a rule as stated above. I could of course innovate and implement alternate game rules, but I have no idea what could make the game addictive with that rule loosened. Also, I implemented the forced piece unmarking because it was already present in Zookeeper and I thought of it as a rule that prevented clicking around and finding a move by chance. But your drag-and-drop idea is interesting.
Gary
Now you have removed the F word from the main screen try removing loser from the game over screen. I find that 'YUO = TEH L0ST' is more neutral. I myself don't have a problem being called a loser but I worry that my children and other children who will play your game will be influenced by the word.
As for your code you should follow the Python style guidelines it might help to make your code more readable. Some of your functions are too long Game.game_draw() & Game.update(), rewrite them to increase readability.
Games runs at 80% CPU on my Athlon XP 2.2Ghz System. Somewhere in one of your loops you are doing something too often.
I think "other children who play the game" need to be taught to have a thick skin by their parents. Psychiatrists are making too much of a killing as it is.
Because the reality is that is not true. People can have perceptions that certain people are winners or losers and people can have perceptions that there are no winners or losers. If it is just a perception like ones favourite colour then how can it be universally true? People who go along with the winners versus the losers mindset only end up trying to win an impossible game. I prefer to realise that the game itself is a falsehood. That is why I am personally not offended by the comment but I do believe that it can lead people astray into thinking the game is real.
BTW, may I say 'it' about a child?
When I was a child I was deeply influenced by the culture around me which included video games. No matter how much my parents tried to imbue the right sort of beliefs in me I chose to believe what was portrayed to me through movies and TV. Video Games might not influence people as much as other parts of popular culture but they do have an affect. If we let this go and say well my kids won't believe that sort of thing then we betray our children and other children.
I know we could discuss this issue for weeks without coming to any resolution or consensus. So I just have two things to say from slashdot. Think of the Children and Get off my lawn.
It's not a big deal, but "U C4NZ D0 B3TT4R!" or something would probably be more encouraging...