Tunar


dodgyville

Member
Joined
Oct 15, 2005
Messages
176
Location
Melbourne
Website
Visit site
I have just uploaded my first game for the gp2x. "Tunar" is a game populated with creatures that are sort of a cross between musical notes and fish.

http://www.gp2x.de/cgi-bin/cfiles.cgi?0,0,0,0,1,1450

It needs pygame to run. Speaking of which, does anyone know if a hw-accelerated version of pygame is in the offing? It would be great to get a bit of extra speed out of the game (add a few more notes).

I was working on a port of another game but I really need a python 3D library, so instead I developed my own 2D game.

Enjoy!
 
Thanks ... and maybe I've said it before, but ...

<3 the avatar!!! ("It was nice beating you , Mrs. Fishpaw!")
 
TelcoLou posted on Apr 23 2006 at 01:05 AM said:
Thanks ... and maybe I've said it before, but ...

<3 the avatar!!! ("It was nice beating you , Mrs. Fishpaw!")

Apparently Dexter's truancy problem is WAY out of hand! :)
 
Last edited by a moderator:
Nice little game - Thanks. Love the look of it - reminds me of those cartoon titles they used in tv programmes and films way back.
I installed pygame from the oddbot's link above and find that pressing Y seems to quit the program rather than doing what the prompt says - is this down to the version of pygame ?
Nice work anyway - Yay for homebrew !
 
dodgyville posted on Apr 22 2006 at 06:48 PM said:
TelcoLou posted on Apr 23 2006 at 01:05 AM said:
Thanks ... and maybe I've said it before, but ...

<3 the avatar!!! ("It was nice beating you , Mrs. Fishpaw!")

Apparently Dexter's truancy problem is WAY out of hand! :)
hehe, just looked up the quote and see it's john waters :lol:. I own pink flamingos (dont ask me why). Anyway, you gotta love that divine lol :rolleyes:
 
Last edited by a moderator:
dodgyville posted on Apr 22 2006 at 11:48 PM said:
TelcoLou posted on Apr 23 2006 at 01:05 AM said:
Thanks ... and maybe I've said it before, but ...

<3 the avatar!!! ("It was nice beating you , Mrs. Fishpaw!")

Apparently Dexter's truancy problem is WAY out of hand! :)

that boy needs therapy..

Congrats dude for making your first game, hopefully it won't be your last.
 
Last edited by a moderator:
I have released a new version of Tunar.

v1.1.0 - tweaks and changes
- boids now can fly faster
- changed game balance, game gets harder slower (squares flash less quickly)
- Boids restock every 100 points (instead of an increasing value)
- added drum graphic and sfx (for variety)
- added bevelling to squares
- added volume control
- changed key mapping (fixed no repeat problem)
- changed title screen
- changed high score screen
- fixed major bug with recording high scores

http://www.gp2x.de/cgi-bin/cfiles.cgi?0,0,0,0,1,1464
 
I cant get this to work...

just get a black screen, and then back to the menu

I have copied python to the root of my sd...

and tunar is in /games/tunar

my error log says :

# inst

whatever tha means
 
sparkyidr posted on Jul 8 2006 at 12:41 AM said:
I cant get this to work...

just get a black screen, and then back to the menu

I have copied python to the root of my sd...

and tunar is in /games/tunar

my error log says :

# inst

whatever tha means

Hi, it needs to be in (case-sensitive) directory: /Games/tunar/

Hope that helps!
 
Last edited by a moderator:
"Tim" aka "thebooboo", take note! Not a cryer who sits in his bedroom fantasizing about "making it big in the home-release scene", but an actual programmer who releases his games and self-promotes (in a non-phony way!).
 
dodgyville posted on Jul 8 2006 at 05:44 AM said:
Hi at it needs to be in (case-sensitive) directory: /Games/tunar/

Hope that helps!

ok.. I did that.. and now my error log is (sorry for the length)

------------------------

# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# zipimport: found 1087 names in /mnt/sd/python/lib/python24.zip
dlopen("/mnt/sd/python/lib/python2.4/lib-dynload/zlib.so", 2);
import zlib # dynamically loaded from /mnt/sd/python/lib/python2.4/lib-dynload/zlib.so
# zipimport: zlib available
import posix # builtin
import stat # loaded from Zip /mnt/sd/python/lib/python24.zip/stat.pyc
import posixpath # loaded from Zip /mnt/sd/python/lib/python24.zip/posixpath.pyc
import UserDict # loaded from Zip /mnt/sd/python/lib/python24.zip/UserDict.pyc
import types # loaded from Zip /mnt/sd/python/lib/python24.zip/types.pyc
import copy_reg # loaded from Zip /mnt/sd/python/lib/python24.zip/copy_reg.pyc
import os # loaded from Zip /mnt/sd/python/lib/python24.zip/os.pyc
import site # loaded from Zip /mnt/sd/python/lib/python24.zip/site.pyc
import linecache # loaded from Zip /mnt/sd/python/lib/python24.zip/linecache.pyc
import warnings # loaded from Zip /mnt/sd/python/lib/python24.zip/warnings.pyc
import _codecs # builtin
import codecs # loaded from Zip /mnt/sd/python/lib/python24.zip/codecs.pyc
import encodings.aliases # loaded from Zip /mnt/sd/python/lib/python24.zip/encodings/aliases.pyc
import encodings # loaded from Zip /mnt/sd/python/lib/python24.zip/encodings/__init__.pyc
import encodings.ascii # loaded from Zip /mnt/sd/python/lib/python24.zip/encodings/ascii.pyc
Python 2.4.2 (#11, Oct 6 2005, 08:12:06)
[GCC 2.95.3 20010315 (release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
./tunar.py: inconsistent use of tabs and spaces in indentation
import pygame # directory /mnt/sd/python/lib/python2.4/site-packages/pygame
# /mnt/sd/python/lib/python2.4/site-packages/pygame/__init__.pyc matches /mnt/sd/python/lib/python2.4/site-packages/pygame/__init__.py
import pygame # precompiled from /mnt/sd/python/lib/python2.4/site-packages/pygame/__init__.pyc
import _sre # builtin
import sre_constants # loaded from Zip /mnt/sd/python/lib/python24.zip/sre_constants.pyc
import sre_compile # loaded from Zip /mnt/sd/python/lib/python24.zip/sre_compile.pyc
import sre_parse # loaded from Zip /mnt/sd/python/lib/python24.zip/sre_parse.pyc
import sre # loaded from Zip /mnt/sd/python/lib/python24.zip/sre.pyc
import re # loaded from Zip /mnt/sd/python/lib/python24.zip/re.pyc
dlopen("/mnt/sd/python/lib/python2.4/lib-dynload/strop.so", 2);
import strop # dynamically loaded from /mnt/sd/python/lib/python2.4/lib-dynload/strop.so
import string # loaded from Zip /mnt/sd/python/lib/python24.zip/string.pyc
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/base.so", 2);
import pygame.base # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/base.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/constants.so", 2);
import pygame.constants # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/constants.so
# /mnt/sd/python/lib/python2.4/site-packages/pygame/version.pyc matches /mnt/sd/python/lib/python2.4/site-packages/pygame/version.py
import pygame.version # precompiled from /mnt/sd/python/lib/python2.4/site-packages/pygame/version.pyc
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/rect.so", 2);
import pygame.rect # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/rect.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/rwobject.so", 2);
import pygame.rwobject # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/rwobject.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/surflock.so", 2);
import pygame.surflock # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/surflock.so
# /mnt/sd/python/lib/python2.4/site-packages/pygame/color.pyc matches /mnt/sd/python/lib/python2.4/site-packages/pygame/color.py
import pygame.color # precompiled from /mnt/sd/python/lib/python2.4/site-packages/pygame/color.pyc
# /mnt/sd/python/lib/python2.4/site-packages/pygame/colordict.pyc matches /mnt/sd/python/lib/python2.4/site-packages/pygame/colordict.py
import pygame.colordict # precompiled from /mnt/sd/python/lib/python2.4/site-packages/pygame/colordict.pyc
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/cdrom.so", 2);
import pygame.cdrom # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/cdrom.so
# /mnt/sd/python/lib/python2.4/site-packages/pygame/cursors.pyc matches /mnt/sd/python/lib/python2.4/site-packages/pygame/cursors.py
import pygame.cursors # precompiled from /mnt/sd/python/lib/python2.4/site-packages/pygame/cursors.pyc
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/display.so", 2);
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/surface.so", 2);
import pygame.surface # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/surface.so
import pygame.display # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/display.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/draw.so", 2);
import pygame.draw # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/draw.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/event.so", 2);
import pygame.event # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/event.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/image.so", 2);
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/imageext.so", 2);
import pygame.imageext # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/imageext.so
import pygame.image # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/image.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/joystick.so", 2);
import pygame.joystick # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/joystick.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/key.so", 2);
import pygame.key # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/key.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/mouse.so", 2);
import pygame.mouse # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/mouse.so
# /mnt/sd/python/lib/python2.4/site-packages/pygame/sprite.pyc matches /mnt/sd/python/lib/python2.4/site-packages/pygame/sprite.py
import pygame.sprite # precompiled from /mnt/sd/python/lib/python2.4/site-packages/pygame/sprite.pyc
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/overlay.so", 2);
import pygame.overlay # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/overlay.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/time.so", 2);
import pygame.time # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/time.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/transform.so", 2);
import pygame.transform # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/transform.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/font.so", 2);
import pygame.font # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/font.so
# /mnt/sd/python/lib/python2.4/site-packages/pygame/sysfont.pyc matches /mnt/sd/python/lib/python2.4/site-packages/pygame/sysfont.py
import pygame.sysfont # precompiled from /mnt/sd/python/lib/python2.4/site-packages/pygame/sysfont.pyc
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/mixer.so", 2);
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/mixer_music.so", 2);
import pygame.mixer_music # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/mixer_music.so
import pygame.mixer # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/mixer.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/surfarray.so", 2);
dlopen("/mnt/sd/python/lib/python2.4/site-packages/Numeric/_numpy.so", 2);
import _numpy # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/Numeric/_numpy.so
# /mnt/sd/python/lib/python2.4/site-packages/Numeric/Numeric.pyc matches /mnt/sd/python/lib/python2.4/site-packages/Numeric/Numeric.py
import Numeric # precompiled from /mnt/sd/python/lib/python2.4/site-packages/Numeric/Numeric.pyc
# /mnt/sd/python/lib/python2.4/site-packages/Numeric/numeric_version.pyc matches /mnt/sd/python/lib/python2.4/site-packages/Numeric/numeric_version.py
import numeric_version # precompiled from /mnt/sd/python/lib/python2.4/site-packages/Numeric/numeric_version.pyc
dlopen("/mnt/sd/python/lib/python2.4/site-packages/Numeric/multiarray.so", 2);
import multiarray # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/Numeric/multiarray.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/Numeric/umath.so", 2);
import umath # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/Numeric/umath.so
# /mnt/sd/python/lib/python2.4/site-packages/Numeric/Precision.pyc matches /mnt/sd/python/lib/python2.4/site-packages/Numeric/Precision.py
import Precision # precompiled from /mnt/sd/python/lib/python2.4/site-packages/Numeric/Precision.pyc
dlopen("/mnt/sd/python/lib/python2.4/lib-dynload/math.so", 2);
import math # dynamically loaded from /mnt/sd/python/lib/python2.4/lib-dynload/math.so
# /mnt/sd/python/lib/python2.4/site-packages/Numeric/ArrayPrinter.pyc matches /mnt/sd/python/lib/python2.4/site-packages/Numeric/ArrayPrinter.py
import ArrayPrinter # precompiled from /mnt/sd/python/lib/python2.4/site-packages/Numeric/ArrayPrinter.pyc
import marshal # builtin
dlopen("/mnt/sd/python/lib/python2.4/lib-dynload/struct.so", 2);
import struct # dynamically loaded from /mnt/sd/python/lib/python2.4/lib-dynload/struct.so
dlopen("/mnt/sd/python/lib/python2.4/lib-dynload/binascii.so", 2);
import binascii # dynamically loaded from /mnt/sd/python/lib/python2.4/lib-dynload/binascii.so
dlopen("/mnt/sd/python/lib/python2.4/lib-dynload/cStringIO.so", 2);
import cStringIO # dynamically loaded from /mnt/sd/python/lib/python2.4/lib-dynload/cStringIO.so
import pickle # loaded from Zip /mnt/sd/python/lib/python24.zip/pickle.pyc
import opcode # loaded from Zip /mnt/sd/python/lib/python24.zip/opcode.pyc
import dis # loaded from Zip /mnt/sd/python/lib/python24.zip/dis.pyc
import imp # builtin
import token # loaded from Zip /mnt/sd/python/lib/python24.zip/token.pyc
import tokenize # loaded from Zip /mnt/sd/python/lib/python24.zip/tokenize.pyc
import inspect # loaded from Zip /mnt/sd/python/lib/python24.zip/inspect.pyc
import copy # loaded from Zip /mnt/sd/python/lib/python24.zip/copy.pyc
import errno # builtin
import StringIO # loaded from Zip /mnt/sd/python/lib/python24.zip/StringIO.pyc
import pygame.surfarray # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/surfarray.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/sndarray.so", 2);
import pygame.sndarray # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/sndarray.so
dlopen("/mnt/sd/python/lib/python2.4/site-packages/pygame/fastevent.so", 2);
import pygame.fastevent # dynamically loaded from /mnt/sd/python/lib/python2.4/site-packages/pygame/fastevent.so
dlopen("/mnt/sd/python/lib/python2.4/lib-dynload/time.so", 2);
import time # dynamically loaded from /mnt/sd/python/lib/python2.4/lib-dynload/time.so
import getopt # loaded from Zip /mnt/sd/python/lib/python24.zip/getopt.pyc
dlopen("/mnt/sd/python/lib/python2.4/lib-dynload/_random.so", 2);
import _random # dynamically loaded from /mnt/sd/python/lib/python2.4/lib-dynload/_random.so
import random # loaded from Zip /mnt/sd/python/lib/python24.zip/random.pyc
dlopen("/mnt/sd/python/lib/python2.4/lib-dynload/operator.so", 2);
import operator # dynamically loaded from /mnt/sd/python/lib/python2.4/lib-dynload/operator.so
# /mnt/sd/Games/tunar/gp2xtra.pyc matches /mnt/sd/Games/tunar/gp2xtra.py
import gp2xtra # precompiled from /mnt/sd/Games/tunar/gp2xtra.pyc
# /mnt/sd/python/lib/python2.4/site-packages/pygame/locals.pyc matches /mnt/sd/python/lib/python2.4/site-packages/pygame/locals.py
import pygame.locals # precompiled from /mnt/sd/python/lib/python2.4/site-packages/pygame/locals.pyc
# /mnt/sd/python/lib/python2.4/site-packages/pygame/pkgdata.pyc matches /mnt/sd/python/lib/python2.4/site-packages/pygame/pkgdata.py
import pygame.pkgdata # precompiled from /mnt/sd/python/lib/python2.4/site-packages/pygame/pkgdata.pyc
Traceback (most recent call last):
File "./tunar.py", line 774, in ?
main()
File "./tunar.py", line 718, in main
game = tunar_level((sx, sy), BOIDS, 1)
File "./tunar.py", line 597, in __init__
self.snd_collect = pygame.mixer.Sound("sound/trumpet.ogg")
pygame.error: Mix_LoadWAV_RW with NULL src
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] random
# cleanup[1] zipimport
# cleanup[1] signal
# cleanup[1] pygame.surflock
# cleanup[1] ArrayPrinter
# cleanup[1] gp2xtra
# cleanup[1] encodings
# cleanup[1] umath
# cleanup[1] StringIO
# cleanup[1] numeric_version
# cleanup[1] sre
# cleanup[1] opcode
# cleanup[1] cStringIO
# cleanup[1] operator
# cleanup[1] errno
# cleanup[1] Precision
# cleanup[1] sre_constants
# cleanup[1] _codecs
# cleanup[1] zlib
# cleanup[1] posix
# cleanup[1] encodings.aliases
# cleanup[1] exceptions
# cleanup[1] sre_parse
# cleanup[1] sre_compile
# cleanup[1] _random
# cleanup[1] site
# cleanup[1] strop
# cleanup[1] pygame
# cleanup[1] pygame.rect
# cleanup[1] pygame.rwobject
# cleanup[1] getopt
# cleanup[1] pygame.pkgdata
# cleanup[1] encodings.ascii
# cleanup[1] pygame.constants
# cleanup[1] pygame.surfarray
# cleanup[1] pygame.font
# cleanup[1] token
# cleanup[1] time
# cleanup[1] pygame.display
# cleanup[1] pygame.transform
# cleanup[1] pygame.sndarray
# cleanup[1] pygame.fastevent
# cleanup[1] pygame.version
# cleanup[1] pygame.image
# cleanup[1] pygame.joystick
# cleanup[1] pygame.overlay
# cleanup[1] pygame.sprite
# cleanup[1] codecs
# cleanup[1] pygame.mouse
# cleanup[1] pygame.cdrom
# cleanup[1
 
Last edited by a moderator:
Hi, sorry you are having so much trouble!

Are you sure you have copied all the files across to your SD card?

In particular all the ones in:
/Games/tunar/sound/

eg:
/Games/tunar/sound/trumpet.ogg

(this seems to be missing or empty?)

Anyway, good luck!
Luke


sparkyidr said:
dodgyville posted on Jul 8 2006 at 05:44 AM said:
Hi at it needs to be in (case-sensitive) directory: /Games/tunar/

Hope that helps!

ok.. I did that.. and now my error log is (sorry for the length)

------------------------

Traceback (most recent call last):
File "./tunar.py", line 774, in ?
main()
File "./tunar.py", line 718, in main
game = tunar_level((sx, sy), BOIDS, 1)
File "./tunar.py", line 597, in __init__
self.snd_collect = pygame.mixer.Sound("sound/trumpet.ogg")
pygame.error: Mix_LoadWAV_RW with NULL src
 
Last edited by a moderator:
Back
Top