pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Balloons

Balloons - 0.42

Gonzalo Sanchez (gonzalo)

Tags:

Description

Not much to say, it's and arcade game, just play it and give me your opinion

Changes

a lot of changes - better graphics - more sounds - the bugs of the plataforms fixed - saves your Hi Score - add a song make by me (is not the better one) - a lot of more (i don't remember hahahahhaa)

Links

Home Page: http://www.creatusjuegos.blogspot.com
Source: http://es.geocities.com/war_chocobo/ballons0.42_source.zip
Windows: http://es.geocities.com/war_chocobo/balloons0.42_windows.zip

Screenshot


click to view original size

Releases

Balloons - 0.87 - Feb 10, 2008
Balloons - 0.82 - Feb 8, 2008
Balloons - 0.8 - Feb 7, 2008
Balloons - 0.58 - Jan 10, 2007
Balloons - 0.55 - Dec 28, 2006
Balloons - 0.5* - Dec 21, 2006
Balloons - 0.42 - Oct 13, 2006
Balloons - 0.36 - Oct 7, 2006
Balloons - 0.3 - Oct 3, 2006

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

February 16, 2008 6:22am - loz - nickname: (loz)
Hi Gonzalo, I get the same error as satanas666.
I'm running a ubuntu 7.10 linux installation with python 2.5.1 and pygame 1.7.1.
Looks like a great game though!
February 10, 2008 11:24am - Wil Alvarez - nickname: (satanas666)
Hi Gonzalo, your game looks very interesting but i can't try it because it gives me this error:

Traceback (most recent call last):
File "balloons.py", line 970, in <module>
startgame = Main()
File "balloons.py", line 808, in __init__
self.main()
File "balloons.py", line 925, in main
self.set_stage() # Set the variables and the information for the current stage
File "balloons.py", line 814, in set_stage
map = STAGES[stage]["map"] # Select the map of the current stage
IndexError: list index out of range

Soy usuario GNU/Linux y hablo español también, si necesitas ayuda solo dilo, con mucho gusto puedo ayudarte.

Sigue adelante, saludos
February 8, 2008 11:28am - Gonzalo Sanchez - nickname: (gonzalo)
yes, i just replaced the old version. the link is still the same
February 8, 2008 11:04am - pymike - nickname: (pymike)
The link to the download file is the same as version 0.8. 0.82 link please?
February 8, 2008 1:08am - Gonzalo Sanchez - nickname: (gonzalo)
Yeah it crush cause there are only 2 stage, i need to make some more stages and a final so it don't look like the game crush.
February 7, 2008 4:08pm - pymike - nickname: (pymike) - 4/5
Cool game! It crashed at one point though... but since I was using windows I didn't see the error. I think it crashed right when it was changing to level 3.
March 16, 2007 9:10pm - Gonzalo Sanchez - nickname: (gonzalo)
print "te quiero"
March 15, 2007 9:44pm - Virginia Fuentes - nickname: (vicky) - 5/5
Esta Buenisimo
felicito al creador de este juego
un juego de plataforma exelente
te felicito
print Te quiero
January 10, 2007 10:04pm - Gonzalo Sanchez - nickname: (gonzalo)
thanks anonymous for the tip, now the game can be reestarted, and thanks all you guys for testing my game.
December 28, 2006 3:40pm - Anonymous - nickname: (pywiz32)
also add tingu.score = 0 after line 370, so you'll start with a fresh new score.
December 28, 2006 3:39pm - Anonymous - nickname: (pywiz32)
also add tingu.score = 0 after line 345, and main() right after that.
December 28, 2006 3:33pm - Anonymous - nickname: (pywiz32)
there's a glitch in your game. to fix it, add balloons.remove(eachballoon) between line 343 and 344. withought it, the balloon will still be there, causing you to never be able to continue playing.
December 28, 2006 12:55am - Gonzalo Sanchez - nickname: (gonzalo)
only the source is up, i'll be out for a week, so leave your comments, i'll read it later, thanks for the server offer, i'll need it a lot, i'll send you the files tomorrow, so i can add a mirror to my page. thanks to all, and happy holidays.
December 22, 2006 2:17pm - Anonymous - nickname: (pywiz32)
by the way, I also have a program that can convert from almost any audio format to almost any audio format, including wav, dib, etc.
December 22, 2006 2:15pm - Anonymous - nickname: (pywiz32)
a server? i can serve you games on my website if you want. just email me a jyrome.112@gmail.com.
December 22, 2006 2:21am - Anonymous - nickname: (pywiz32)
Have you ever hered of windows version? of not, here is a setup script (you need py2exe):

import py2exe, sys
from distutils.core import setup
sys.argv.append("py2exe")
setup(windows=["your_script.py"])

you can also replace windows with console to make a dos promt popup on startup.
October 19, 2006 11:19pm - RB[0] - nickname: (roebros)
Have you tried sourceforge?

I have 3 or 4 projects on there and so far I havent had any problems, except sometimes with getting a project approved.

Game looks interesting, but I havent yet had a chance to try it.
October 18, 2006 3:00pm - Gonzalo Sanchez - nickname: (gonzalo)
i need another server, geocities is not very good. i need one whith more space, and more download rate. anyone knows one?
October 17, 2006 8:48pm - patrick mullen - nickname: (saluk)
Doh, this looks cool, but the site is down.
October 16, 2006 7:02pm - Gonzalo Sanchez - nickname: (gonzalo)
yes, was a mistake, hahahahaha
October 16, 2006 5:13pm - Peter Nosgoth - nickname: (nightwishphantom)
Forget 1). My mistake.
2). Use HWSURFACE|DOUBLEBUF together with pygame.display.flip(). That way you will make the game very fast. It works in window mode as well as fullscreen. Im not sure if ASYNCBLIT makes it faster, you will have to try both and see. Note that hardware surfaces work well on windows, however, unix has some problems with that. It will still work, just slower.
3). Line 254 in ballons0.42_english.py you keep "tingu" in the screen. Use the same system to keep him away from the platform. Something like
if 20<rectpos.left<120 and rectpos.right<320: rectpos.right=300
4). Are you sure the error only appears when using DOUBLEBUF|ASYNCBLIT? Maybe pygame.quit() helps.

Oh, and "but she is a little bad" is hopefully only a translation mistake ;P
October 16, 2006 1:43pm - Gonzalo Sanchez - nickname: (gonzalo)
Hi Peter & Emore, thanks for your comments you have help me a lot, i'm having some troubles following your steps peter, maybe you can helpme
1) i don't notice the difference using pygame.event.pump() in the lines you say me
2) can i use doublebuffer when using a windowed screen? i read something some time ago that doublebuffer uses hardware acceleration and only can be used when you have a fullscreen
3) i had use your idea of changing the speedfall (like velocity with gravity), but when i do, the hipo (tingu is his name) go through the floor, or the platforms, this is hardly to me to explain it because me english is not very good, i'm trying to say that the hipo don't stop always on the top of the floor, sometimes hi stop in the middle, if a try to correct this error doing somithing like hipo.bottom=floor.up then i get a funny error, the hipo move up and down in the floor, i know i can get rid of this future but it's getting a little complex, the last time i completly destroy the code, lucky that i have a copy :P.
4) when i us doublebuff|asyncblit i get and error when i quit the game (in the console), but this error doesn't affect the game.
And peter, for answering your question, yes my girlfriend love's the game, but she is a little bad, jejjejeje.
well, i'm working on this things, thanks you all for helping me.
October 15, 2006 2:00pm - Anonymous - nickname: (pywiz32)
first, make the music i a format that pygame can play, as people that don't know a lot about pythonmay think that it is an internal error when the output says that pymedia is no available, and give up olaying it. for macs, get logic pro. for windows get cool edit pro and convert the format.
October 15, 2006 8:37am - Peter Nosgoth - nickname: (nightwishphantom)
I believe they are all busy making pygame 1.8 and the documentation is the last they care about. The documentation is being changed all the time. I downloaded one, and there they documented it under pygame.constants:
pygame.constants.display
HWSURFACE - surface in hardware video memory. (equal to 1)
RESIZABLE - display window is resizeable
ASYNCBLIT - surface blits happen asynchronously (threaded)
OPENGL - display surface will be controlled by opengl
HWPALETTE - display surface has animatable hardware palette entries
DOUBLEBUF - hardware display surface is page flippable
FULLSCREEN - display surface is fullscreen (nonwindowed)
RLEACCEL - compile for quick alpha blits, only set in alpha or colorkey funcs
NOFRAME - no window decorations

pygame.constants.zdepracated:
The flags labeled as readonly should never be used, except when comparing checking flags against Surface.get_flags().
Although they say you should not use the following flags I find them to be usefull:
SWSURFACE - not really usable as a surface flag, equates to 0 and is always default
ANYFORMAT - creates a display with in best possible bit depth
HWACCEL - surface is hardware accelerated, readonly
SRCCOLORKEY- surface has a colorkey for blits, readonly
SRCALPHA - surface has alpha enabled, readonly
RLEACCELOK - surface is rle accelrated but uncompiled, readonly

MFG.
October 15, 2006 4:45am - Rafal - nickname: (fofoo)
What does ASYNCBLIT do? Why it is not documented?
October 14, 2006 10:00am - Peter Nosgoth - nickname: (nightwishphantom)
See http://pygame.org/projects/20/314/?release_id=501
Bottom of the page, third comment. Most of it applies.
The game improved a lot since 0.36
Improve the jumping: You need two values: the speed and the position.
When jumping set "jumpspeed=10"
For each frame set "Yposition+=jumpspeed"
and jumpspeed-=1
This will create a much more natural jump.
Make sure the ballons do not respawn on the hippo.
lower the needed ballons for a levelup to maybe 30.
the pygame.event.pump() in ballons0.42_english.py line 300 must be 2 lines lower (it doesnt have any effect on the current position).

Anyways, what does your girlfriend say?
October 8, 2006 6:27pm - Peter Nosgoth - nickname: (nightwishphantom)
This would overdo it. The game doesnt need better musik or fancy 3D stuff, it needs clear code and bugfixes.
October 8, 2006 1:46pm - Anonymous - nickname: (pywiz32)
by the way, if you want great free and made in python 3d modleing software, go to blender.org.
October 8, 2006 1:44pm - Anonymous - nickname: (pywiz32)
if you are plain out of music, go to vgmusic.com. it has thousands of video game midis.
October 8, 2006 7:27am - Peter Nosgoth - nickname: (nightwishphantom)
To restart the game:
Replace "youLose(pts)" line 192 in ballons0.36_english.py with:
if youLose(pts):
game=juego()
game.main()
Replace line 40 and 41 in gameover.py with:
elif event.key == K_SPACE: return True
Add in line 23 in gameover.py:
ren = font.render("Press space to restart", 1, verde)
screen.blit(ren,(30,120))
Not very elegant but it works.
Mail at e-nomine-deus-ex@web.de if you need the files.
October 6, 2006 6:14pm - Gonzalo Sanchez - nickname: (gonzalo)
i want to put an option to reload the game, but i don't know how, can anybody help me?
October 4, 2006 10:17pm - Anonymous - nickname: (pywiz32)
tip: make sure all the ballons are created in the screen area.
October 4, 2006 12:38pm - Gonzalo Sanchez - nickname: (gonzalo)
Thanks peter, the reason why the comments of the game are in spanish is because the game i do it to teach my girlfriend how to make games, and she don't speak english, but i'll do and english version very soon, and thank you for your tips.
October 4, 2006 11:09am - Peter Nosgoth - nickname: (nightwishphantom)
Some suggestions: Rename ballons0.3.py into ballons0.3.pyw. This way there is no ugly dos-shell in the background.
Make an english version, or at least let the user choose between english and spanish.
When i tried the game, after like 10-15 ballons came (and i caught them) there were no more ballons and it told me i missed it (which i didnt).
The controls are hanging a lot. Add "pygame.event.pump()" between line 226 and 227 to solve that(hopefully it does).
Instead of "pygame.display.update()" (line 223) use "pygame.display.flip()" and instead of line 34 use "screen=pygame.display.set_mode((h_screen,v_screen),HWSURFACE|DOUBLEBUF|ASYNCBLIT|FULLSCREEN)" to use hardware support (will run faster/with less CPU usage).
Over all pretty good for a first try!
October 3, 2006 9:34pm - Anonymous - nickname: (pywiz32)
and how do you get to the balloons?
October 3, 2006 9:33pm - Anonymous - nickname: (pywiz32) - 2/5
just for your info, the music is from the legend of zelda: ocarina of time. it's the credit theme.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Feb 11, 2012


Feb 10, 2012


Feb 9, 2012


Feb 7, 2012

Feb 5, 2012


Feb 4, 2012

Feb 3, 2012


... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)