tuxletics-commits Mailing List for Tuxletics
Status: Alpha
Brought to you by:
teroajk
You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(9) |
Dec
(93) |
|---|
|
From: Tero K. <te...@us...> - 2004-12-19 13:48:47
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25447 Modified Files: start_menu.py Log Message: Version to 0.1.0. Index: start_menu.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/start_menu.py,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- start_menu.py 17 Dec 2004 23:19:09 -0000 1.29 +++ start_menu.py 19 Dec 2004 13:48:37 -0000 1.30 @@ -30,7 +30,7 @@ from gfx_functions import * from pygame.locals import * -VERSION = "version 0.1.0-rc1" +VERSION = "version 0.1.0" #menus MENU_MAIN = 0 |
|
From: Tero K. <te...@us...> - 2004-12-17 23:19:28
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3174 Modified Files: start_menu.py tuxletics.py Log Message: Version 0.1.0-rc1. Remove a misleading comment. Index: tuxletics.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/tuxletics.py,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- tuxletics.py 17 Dec 2004 21:16:43 -0000 1.12 +++ tuxletics.py 17 Dec 2004 23:19:09 -0000 1.13 @@ -40,9 +40,6 @@ font1 = pygame.font.Font(os.path.join(fontdir, "Domestic_Manners.ttf"),16) font2 = pygame.font.Font(os.path.join(fontdir, "Domestic_Manners.ttf"),30) - - # FIXME: This font causes a crash on Windows. - # Tried resizing 37->36 as suggested on PyGame IRC -- teroajk font3 = pygame.font.Font(os.path.join(fontdir, "Domestic_Manners.ttf"),36) Index: start_menu.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/start_menu.py,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- start_menu.py 17 Dec 2004 21:16:42 -0000 1.28 +++ start_menu.py 17 Dec 2004 23:19:09 -0000 1.29 @@ -30,6 +30,7 @@ from gfx_functions import * from pygame.locals import * +VERSION = "version 0.1.0-rc1" #menus MENU_MAIN = 0 @@ -72,7 +73,7 @@ t3=["Look at People Behind", "Tuxletics"] t4=["Go Back to the Real World"] #self.creditsMenu() - mainoption = self.displayBasicMenu(buttonlist2,t1,t2,t3,t4,"version 0.1b") + mainoption = self.displayBasicMenu(buttonlist2,t1,t2,t3,t4,VERSION) if mainoption == 1: self.menu = MENU_PLAYERS |
|
From: Tero K. <te...@us...> - 2004-12-17 23:15:11
|
Update of /cvsroot/tuxletics/tuxletics/data/snowballthrow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2225/data/snowballthrow Modified Files: scores Log Message: Update TODO, remove unneeded font. Index: scores =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/data/snowballthrow/scores,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- scores 17 Dec 2004 22:52:55 -0000 1.5 +++ scores 17 Dec 2004 23:14:58 -0000 1.6 @@ -6,5 +6,5 @@ fff417 ggg386 hhh357 -jjj323 +jjj324 kkk300 |
|
From: Tero K. <te...@us...> - 2004-12-17 23:15:07
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2225 Modified Files: TODO Removed Files: Junkyard.ttf font_license.txt Log Message: Update TODO, remove unneeded font. --- Junkyard.ttf DELETED --- Index: TODO =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/TODO,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- TODO 17 Dec 2004 08:08:07 -0000 1.2 +++ TODO 17 Dec 2004 23:14:57 -0000 1.3 @@ -3,11 +3,8 @@ Before 0.1: -- show player scores in events -- animation of falling down when running too fast -- animation of slipping when stepping on ice -- showing background text about "Polar Games" +Nothing :) Before 0.2: -- mouse controllable menu +- mouse controllable menu (?) --- font_license.txt DELETED --- |
|
From: Tero K. <te...@us...> - 2004-12-17 22:53:07
|
Update of /cvsroot/tuxletics/tuxletics/data/snowballthrow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30294/data/snowballthrow Modified Files: scores Log Message: Test scores ignore. Index: scores =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/data/snowballthrow/scores,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- scores 17 Dec 2004 22:48:48 -0000 1.4 +++ scores 17 Dec 2004 22:52:55 -0000 1.5 @@ -6,5 +6,5 @@ fff417 ggg386 hhh357 -jjj324 +jjj323 kkk300 |
|
From: Tero K. <te...@us...> - 2004-12-17 22:49:00
|
Update of /cvsroot/tuxletics/tuxletics/data/snowballthrow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29677/data/snowballthrow Modified Files: scores Log Message: Bugfixes. Fix scores file. Index: scores =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/data/snowballthrow/scores,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- scores 17 Dec 2004 22:00:10 -0000 1.3 +++ scores 17 Dec 2004 22:48:48 -0000 1.4 @@ -1,10 +1,10 @@ -sin498 -mau490 -pzq479 -ttt471 -ttt468 -ttt463 -ttt453 -ttt450 -ttt449 -ttt442 +aaa498 +bbb490 +ccc482 +ddd468 +eee443 +fff417 +ggg386 +hhh357 +jjj324 +kkk300 |
|
From: Tero K. <te...@us...> - 2004-12-17 22:48:57
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29677 Modified Files: snowballgame.py Log Message: Bugfixes. Fix scores file. Index: snowballgame.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/snowballgame.py,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- snowballgame.py 17 Dec 2004 22:00:09 -0000 1.38 +++ snowballgame.py 17 Dec 2004 22:48:47 -0000 1.39 @@ -206,6 +206,7 @@ if self.penguin.rect.left >= ICY_LINE: self.phase = PHASE_FOUL return + self.render() for event in pygame.event.get(): if self.quit_event(event): @@ -254,6 +255,8 @@ self.speed += t * MAX_SPEED_GAIN # Shorten the optimal interval self.optimal *= OPTIMAL_CHANGE + if self.optimal < 20: + self.optimal = 40 self.foot1_changed = 0 self.foot2_changed = 0 @@ -462,8 +465,6 @@ if self.penguin.image_id is 7: self.penguin.image_id = 3 - self.render() - def render(self): # all phases render background screen and penguin |
|
From: Tero K. <te...@us...> - 2004-12-17 22:00:24
|
Update of /cvsroot/tuxletics/tuxletics/data/snowballthrow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20181/data/snowballthrow Modified Files: scores Log Message: Fumble animation. Improved other animations. Index: scores =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/data/snowballthrow/scores,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- scores 17 Dec 2004 21:16:43 -0000 1.2 +++ scores 17 Dec 2004 22:00:10 -0000 1.3 @@ -1,10 +1,10 @@ sin498 mau490 pzq479 +ttt471 +ttt468 +ttt463 +ttt453 +ttt450 +ttt449 ttt442 -ttt415 -ttt415 -trk386 -jzz384 -ohh379 -zzz374 |
|
From: Tero K. <te...@us...> - 2004-12-17 22:00:23
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20181 Modified Files: penguin.py snowballgame.py Log Message: Fumble animation. Improved other animations. Index: snowballgame.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/snowballgame.py,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- snowballgame.py 17 Dec 2004 21:16:42 -0000 1.37 +++ snowballgame.py 17 Dec 2004 22:00:09 -0000 1.38 @@ -54,14 +54,22 @@ # These variables are used to control the speed-gaining algorithm MAX_SPEED = 200 # maximum running speed befor falling down SPEED_LOSS = 1 # how much speed we lose at each tick -MAX_SPEED_GAIN = 50 # how much speed we can gain at one time +MAX_SPEED_GAIN = 55 # how much speed we can gain at one time OPTIMAL_AT_START = 200 # the optimal delay at the beginning OPTIMAL_CHANGE = 0.92 # the rate of change of optimal delay +# Controls how many pixels we move the penguin at each step +# The actual movement is self.speed / RUN_ANIM_SPEED +RUN_ANIM_SPEED = 35 + STAND_X, STAND_Y = 40.0, 320.0 # Penguin position in screen 2 ICY_LINE = 380 # Yliastumisraja FLIGHT_SPEED_FACTOR = 4.0 +# These variables control the sliding animation +SLIDE_START_SPEED = 0.8 # How fast we begin to slide +SLIDE_ACCELERATION = 1.1 # How quickly the slide accelerates + # Color values used frequently. COLOR_BGFILL = (220, 230, 255) COLOR_TEXT = (42, 131, 251) @@ -189,9 +197,10 @@ if self.speed > 0: # We are running. self.speed -= SPEED_LOSS - # Animate the running phase, using the running speed to - # calculate the speed of animation. - self.penguin_run(self.speed) + if self.speed > RUN_ANIM_SPEED: # To keep animation reasonable + # Animate the running phase, using the running speed to + # calculate the speed of animation. + self.penguin_run() # We may not step on the icy area. if self.penguin.rect.left >= ICY_LINE: @@ -249,9 +258,6 @@ self.foot1_changed = 0 self.foot2_changed = 0 - print "sp:", self.speed, " int:", self.interval, " opt:", self.optimal # DEBUG - - def aim_angle(self): self.angle = 0.0 @@ -398,7 +404,6 @@ #update the screen pygame.display.flip() - while self.phase==PHASE_RESULT: for event in pygame.event.get(): @@ -412,34 +417,41 @@ def foul(self): print "FOUL!" # DEBUG - # Every 5th pixel, we change the penguin image. This seems to achieve - # pretty good animation, but could perhaps be fine tuned. p_img = 13 - i = 1 + i = SLIDE_START_SPEED while (self.penguin.rect.left < self.rect.right): self.p_sprite.update(i) - if not self.travelled % 5: + # Every 5th pixel, we change the penguin image. This seems to achieve + # pretty good animation, but could perhaps be fine tuned. + if not self.travelled % 8: p_img += 1 print "p_img ", p_img # DEBUG self.penguin.set_visible_image( p_img ) if p_img is 17: p_img = 15 - i *= 1.3 # Sightly accelerating slide + i *= SLIDE_ACCELERATION # Sightly accelerating slide self.render() self.travelled += 1 self.start_event() def fumble(self): - # TODO: A funny animation here. print "TOOFAAAAASSSSTTTT! *THUMP*" # DEBUG - self.show_text("Not so faaasssttt...", self.rect.center) - self.clock.tick(1) # short pause so the player notices the fumble + # Quick and dirty... + self.p_sprite.update(2) + self.penguin.set_visible_image( 18 ) + self.render() + self.clock.tick(4) + self.penguin.set_visible_image( 19 ) + # This image must be placed a lot lower than others + self.penguin.rect.move_ip(40, 80) + self.render() + self.clock.tick(1) self.start_event() - def penguin_run(self, speed): + def penguin_run(self): # We move the penguin one pixel forward and add one to the distance # we've travelled. - self.p_sprite.update(1) + self.p_sprite.update(self.speed / RUN_ANIM_SPEED) self.travelled += 1 # Every 5th pixel, we change the penguin image. This seems to achieve @@ -509,13 +521,12 @@ self.l_rect.move_ip(10, 25) self.screen.blit(self.l_text, self.l_rect) - #img = self.font.render("LENGTH: %d" % (int(self.flight_len)),1,(0,0,0)) - #self.screen.blit(img, (0, 0)) - #if self.phase == PHASE_RESULT: - # self.show_text("Press return to try again!", self.rect.center) + if self.phase == PHASE_FUMBLE: + self.show_text("Not so faaasssttt...", self.rect.center) if self.phase == PHASE_FOUL: self.show_text("Don't step on the ice!", self.rect.center) + pygame.display.flip() def quit_event(self, event): Index: penguin.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/penguin.py,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- penguin.py 17 Dec 2004 21:16:42 -0000 1.11 +++ penguin.py 17 Dec 2004 22:00:09 -0000 1.12 @@ -43,7 +43,6 @@ self.p_images.append(img) self.p_rects.append(rect) self.p_rects.append(rect) - print "p_images ", i, self.p_images[i] # DEBUG # Load the throwing images to a list # p_images[7-12] @@ -52,7 +51,6 @@ img, rect = load_png(s) self.p_images.append(img) self.p_rects.append(rect) - print "p_images ", i+8, self.p_images[i] # DEBUG # Load the standing_small image to a list # p_images[13] @@ -61,7 +59,6 @@ img, rect = load_png(s) self.p_images.append(img) self.p_rects.append(rect) - print "p_images ", i+13, self.p_images[i] # DEBUG # Load the slipping images to a list # p_images[14-17] @@ -69,7 +66,13 @@ s = "snowballthrow/slip%s.png" % (i+1, ) img, rect = load_png(s) self.p_images.append(img) - print "p_images ", i+14, self.p_images[i] # DEBUG + + # Load the falling down images to a list + # p_images[18-19] + for i in range(2): + s = "snowballthrow/stumble%s.png" % (i+1, ) + img, rect = load_png(s) + self.p_images.append(img) self.reinit() |
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11714 Modified Files: gfx_functions.py highscore.py penguin.py player.py snowball.py snowballgame.py start_menu.py tuxletics.py Log Message: Fix writing scores. More portable python path. Copyright header cleanups. Index: tuxletics.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/tuxletics.py,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- tuxletics.py 16 Dec 2004 20:38:16 -0000 1.11 +++ tuxletics.py 17 Dec 2004 21:16:43 -0000 1.12 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python ############################################################################ # Copyright (C) 2004 by # Index: snowball.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/snowball.py,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- snowball.py 17 Dec 2004 11:50:56 -0000 1.6 +++ snowball.py 17 Dec 2004 21:16:42 -0000 1.7 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python ############################################################################ # Copyright (C) 2004 by # Index: player.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/player.py,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- player.py 16 Dec 2004 21:23:27 -0000 1.4 +++ player.py 17 Dec 2004 21:16:42 -0000 1.5 @@ -1,8 +1,8 @@ -#!/usr/bin/python +#!/usr/bin/env python ############################################################################ -# Copyright (C) 2004 by Petteri Klemola # -# pzq at users dot sourceforge dot net # +# Copyright (C) 2004 by # +# Petteri Klemola (pzq at users dot sourceforge dot net) # # # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # Index: start_menu.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/start_menu.py,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- start_menu.py 17 Dec 2004 20:23:20 -0000 1.27 +++ start_menu.py 17 Dec 2004 21:16:42 -0000 1.28 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python ############################################################################ # Copyright (C) 2004 by # Index: penguin.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/penguin.py,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- penguin.py 17 Dec 2004 13:55:13 -0000 1.10 +++ penguin.py 17 Dec 2004 21:16:42 -0000 1.11 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python ############################################################################ # Copyright (C) 2004 by # Index: gfx_functions.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/gfx_functions.py,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- gfx_functions.py 9 Dec 2004 22:07:39 -0000 1.6 +++ gfx_functions.py 17 Dec 2004 21:16:42 -0000 1.7 @@ -1,8 +1,8 @@ -#!/usr/bin/python +#!/usr/bin/env python ############################################################################ -# Copyright (C) 2004 by Petteri Klemola # -# pzq at users dot sourceforge dot net # +# Copyright (C) 2004 by # +# Petteri Klemola (pzq at users dot sourceforge dot net) # # # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # Index: snowballgame.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/snowballgame.py,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- snowballgame.py 17 Dec 2004 16:38:46 -0000 1.36 +++ snowballgame.py 17 Dec 2004 21:16:42 -0000 1.37 @@ -1,3 +1,5 @@ +#!/usr/bin/env python + ############################################################################ # Copyright (C) 2004 by # # Tero Kuusela (teroajk at users dot sourceforge dot net) # Index: highscore.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/highscore.py,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- highscore.py 17 Dec 2004 21:00:40 -0000 1.7 +++ highscore.py 17 Dec 2004 21:16:42 -0000 1.8 @@ -1,8 +1,9 @@ -#!/usr/bin/python +#!/usr/bin/env python ############################################################################ -# Copyright (C) 2004 by Petteri Klemola # -# pzq at users dot sourceforge dot net # +# Copyright (C) 2004 by # +# Petteri Klemola (pzq at users dot sourceforge dot net) # +# Tero Kuusela (teroajk at users dot sourceforge dot net) # # # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -43,7 +44,7 @@ scores = [] num = re.compile('\d+') let = re.compile('\D+') - f = open('scores','r') + f = open(os.path.join('data', 'snowballthrow', 'scores'),'r') x = 0 while x < 10: line = f.readline() @@ -90,7 +91,7 @@ #write scores to scores file - f = open('scores','w') + f = open(os.path.join('data', 'snowballthrow', 'scores'),'w') x = 0 while x < 10: line = newscores[x].name |
|
From: Tero K. <te...@us...> - 2004-12-17 21:16:54
|
Update of /cvsroot/tuxletics/tuxletics/data/snowballthrow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11714/data/snowballthrow Modified Files: scores Log Message: Fix writing scores. More portable python path. Copyright header cleanups. Index: scores =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/data/snowballthrow/scores,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- scores 17 Dec 2004 21:00:41 -0000 1.1 +++ scores 17 Dec 2004 21:16:43 -0000 1.2 @@ -1,10 +1,10 @@ sin498 mau490 pzq479 +ttt442 +ttt415 +ttt415 trk386 jzz384 ohh379 zzz374 -oli262 -seb261 -liz251 |
|
From: Tero K. <te...@us...> - 2004-12-17 21:00:51
|
Update of /cvsroot/tuxletics/tuxletics/data/snowballthrow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7597/data/snowballthrow Added Files: .cvsignore scores Log Message: Move scores file to event data dir. CVS ignores scores now. --- NEW FILE: .cvsignore --- scores --- NEW FILE: scores --- sin498 mau490 pzq479 trk386 jzz384 ohh379 zzz374 oli262 seb261 liz251 |
|
From: Tero K. <te...@us...> - 2004-12-17 21:00:50
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7597 Modified Files: highscore.py Removed Files: scores Log Message: Move scores file to event data dir. CVS ignores scores now. Index: highscore.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/highscore.py,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- highscore.py 17 Dec 2004 14:24:31 -0000 1.6 +++ highscore.py 17 Dec 2004 21:00:40 -0000 1.7 @@ -52,7 +52,6 @@ scores.append(Score(linename[0],string.atoi(linescore[0]))) x +=1 f.close() - return scores @@ -63,7 +62,7 @@ scores = [] num = re.compile('\d+') let = re.compile('\D+') - f = open('scores','r') + f = open(os.path.join('data', 'snowballthrow', 'scores'),'r') x = 0 while x < 10: line = f.readline() --- scores DELETED --- |
|
From: Petteri K. <pz...@us...> - 2004-12-17 20:27:37
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31777 Modified Files: scores Log Message: Index: scores =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/scores,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- scores 17 Dec 2004 19:02:53 -0000 1.10 +++ scores 17 Dec 2004 20:27:28 -0000 1.11 @@ -1,10 +1,10 @@ -mau501 sin498 mau490 -mau489 -mau486 -mau484 -mau479 -mau474 -mau462 -mau461 +pzq479 +trk386 +jzz384 +ohh379 +zzz374 +oli262 +seb261 +liz251 |
|
From: Petteri K. <pz...@us...> - 2004-12-17 20:23:29
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30685 Modified Files: start_menu.py Log Message: Index: start_menu.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/start_menu.py,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- start_menu.py 17 Dec 2004 15:25:53 -0000 1.26 +++ start_menu.py 17 Dec 2004 20:23:20 -0000 1.27 @@ -85,9 +85,16 @@ def menuAbout(self): + #do mask over the bg so that text is shown more clearly + mask = pygame.Surface((self.screen.get_width(), self.screen.get_height()),pygame.HWSURFACE, self.screen) + mask.fill((255,255,255)) + mask.set_alpha(150) + self.screen.blit(mask,mask.get_rect()) + + help_file = open('README','r') help_text = help_file.readlines() - line_y = 180 + line_y = 20 for line in help_text: txt = self.font1.render(str(line).strip(), 1, (42,131,251)) |
|
From: Petteri K. <pz...@us...> - 2004-12-17 20:15:37
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28499 Modified Files: README Log Message: background fade to about txt Index: README =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/README,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- README 17 Dec 2004 15:25:53 -0000 1.2 +++ README 17 Dec 2004 20:15:22 -0000 1.3 @@ -1,7 +1,21 @@ -Tuxletics is a sports game featuring penguins. -The game will eventually consist of several events. -Each event has it's own README in it's -data/event_name directory. +Tuxletics is a sports game featuring penguins that are competing +in the yearly Polar Games, roughly an Antarctic equivalent of the +Olympics.Every contestant is, naturally, hoping to achieve the grand +prize of the Games: a year's supply of the tastiest herring available. -For now, the only event is a -snowball throwing game. +The Polar Games consist of several separate events. +The three best of each event get some herring of premium +quality, although slightly less tasty than the +carefully selected grand prize herring.Thus, some +penguins choose not to participate in all events, +but instead focus on only those where they consider +them most skilled in. The brave penguings who even +dare to participate in all events are very respected +and the winner of the grand prize - usually one of +these daring ones - is the greatest idol of all +young penguin hatchlings for at least a year. + +In the current incarnation of Tuxletics, +there's one event to compete in: the snowball throwing. +The goal of this event is to throw a snowball +as far as possible. |
|
From: Mauno <ma...@us...> - 2004-12-17 19:03:20
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13087 Modified Files: scores Log Message: Index: scores =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/scores,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- scores 17 Dec 2004 15:25:53 -0000 1.9 +++ scores 17 Dec 2004 19:02:53 -0000 1.10 @@ -1,10 +1,10 @@ +mau501 sin498 -pzq381 -gei380 -ki 374 -pzq363 -kil259 -zzs249 -gei247 -ki 145 -oks138 +mau490 +mau489 +mau486 +mau484 +mau479 +mau474 +mau462 +mau461 |
|
From: Mauno <ma...@us...> - 2004-12-17 17:39:13
|
Update of /cvsroot/tuxletics/tuxletics/data/snowballthrow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29382/data/snowballthrow Modified Files: stumble2.png Log Message: päivitys: taustat alphaksi Index: stumble2.png =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/data/snowballthrow/stumble2.png,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 Binary files /tmp/cvsMPmoA7 and /tmp/cvsKzYrxX differ |
|
From: Mauno <ma...@us...> - 2004-12-17 17:33:48
|
Update of /cvsroot/tuxletics/tuxletics/data/snowballthrow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28389/data/snowballthrow Added Files: stumble1.png stumble2.png Log Message: uudet kompastuskuvat --- NEW FILE: stumble1.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: stumble2.png --- (This appears to be a binary file; contents omitted.) |
|
From: Petteri K. <pz...@us...> - 2004-12-17 16:38:59
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15804 Modified Files: snowballgame.py Log Message: Index: snowballgame.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/snowballgame.py,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- snowballgame.py 17 Dec 2004 16:35:40 -0000 1.35 +++ snowballgame.py 17 Dec 2004 16:38:46 -0000 1.36 @@ -360,9 +360,9 @@ #write ten scores to screen highlighting players score if she made it to the list while x < 10:#we assume that there are 10 listings in scores-file if x < 9: - tx = " "+str(x+1) +"."+" "+ scores[x].name+": "+str(scores[x].score) + tx = " "+str(x+1) +"."+" "+ scores[x].name+" "+str(scores[x].score) else: - tx = str(x+1) +"."+" "+ scores[x].name+": "+str(scores[x].score) + tx = str(x+1) +"."+" "+ scores[x].name+" "+str(scores[x].score) if placing +1 == x+1: txt = self.font.render(tx,1,(10,10,10)) else: |
|
From: Petteri K. <pz...@us...> - 2004-12-17 16:35:55
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14827 Modified Files: snowballgame.py Log Message: fixed some minor bugs in drawing the highscores Index: snowballgame.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/snowballgame.py,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- snowballgame.py 17 Dec 2004 15:25:53 -0000 1.34 +++ snowballgame.py 17 Dec 2004 16:35:40 -0000 1.35 @@ -354,7 +354,7 @@ headline_rect.center = (self.rect.centerx, line_y) self.screen.blit(headline,headline_rect) self.font.set_underline(0) - line_y += 20 + line_y += 25 x = 0 #write ten scores to screen highlighting players score if she made it to the list @@ -370,7 +370,7 @@ txt_rect = txt.get_rect() txt_rect.center = (self.rect.centerx, line_y) self.screen.blit(txt,txt_rect) - line_y += 20 + line_y += 25 x += 1 #write press enter to play again to screen |
|
From: Petteri K. <pz...@us...> - 2004-12-17 15:26:06
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30149 Modified Files: README scores snowballgame.py start_menu.py Log Message: about menu item and minor fixes Index: README =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/README,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- README 12 Dec 2004 17:17:22 -0000 1.1 +++ README 17 Dec 2004 15:25:53 -0000 1.2 @@ -1,5 +1,7 @@ -Tuxletics is a sports game featuring penguins. The game will eventually consist -of several events. Each event has it's own README in it's data/event_name -directory. +Tuxletics is a sports game featuring penguins. +The game will eventually consist of several events. +Each event has it's own README in it's +data/event_name directory. -For now, the only event is a snowball throwing game. +For now, the only event is a +snowball throwing game. Index: snowballgame.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/snowballgame.py,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- snowballgame.py 17 Dec 2004 14:24:31 -0000 1.33 +++ snowballgame.py 17 Dec 2004 15:25:53 -0000 1.34 @@ -111,6 +111,11 @@ self.s_rect = self.s_text.get_rect() self.s_rect.move_ip(550, 185) + ptxt = "Player: "+self.players[0].name + self.p_text = self.font.render(ptxt, 1, COLOR_TEXT) + self.p_rect = self.p_text.get_rect() + self.p_rect.move_ip(10, 0) + #self.players=players #self.highscore=highscore @@ -455,6 +460,7 @@ if self.phase == PHASE_RUN or self.phase == PHASE_AIM or self.phase == PHASE_THROW: self.screen.blit(self.a_text, self.a_rect) self.screen.blit(self.s_text, self.s_rect) + self.screen.blit(self.p_text, self.p_rect) self.screen.blit(self.aim_image, self.aim_rect) self.screen.blit(self.speed_image, self.speed_rect) @@ -487,13 +493,22 @@ (self.speed_rect.left + xs, self.speed_rect.top), 8) if self.phase == PHASE_FLIGHT or self.phase == PHASE_RESULT: + + self.screen.blit(self.p_text, self.p_rect) + # render snowball self.ball_sprite.draw(self.screen) self.screen.blit(self.ball.shadow_image, self.ball.shadow_rect) + # render flight length - img = self.font.render("LENGTH: %d" % (int(self.flight_len)),1,(0,0,0)) - self.screen.blit(img, (0, 0)) + self.l_text = self.font.render("Length: %d" % (int(self.flight_len)),1,COLOR_TEXT) + self.l_rect = self.l_text.get_rect() + self.l_rect.move_ip(10, 25) + self.screen.blit(self.l_text, self.l_rect) + + #img = self.font.render("LENGTH: %d" % (int(self.flight_len)),1,(0,0,0)) + #self.screen.blit(img, (0, 0)) #if self.phase == PHASE_RESULT: # self.show_text("Press return to try again!", self.rect.center) Index: start_menu.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/start_menu.py,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- start_menu.py 17 Dec 2004 14:24:31 -0000 1.25 +++ start_menu.py 17 Dec 2004 15:25:53 -0000 1.26 @@ -35,7 +35,7 @@ MENU_MAIN = 0 MENU_CREDITS = 1 MENU_PLAYERS = 2 - +MENU_ABOUT = 3 class StartMenu: "Start menu for tuxletics" @@ -66,9 +66,9 @@ self.screen.blit(self.bg,(0,0)) pygame.display.flip() - buttonlist2=[Button("Start Event",1,self.font2,self.font3),Button("Start Tournament",2,self.font2,self.font3),Button("Credits",3,self.font2,self.font3),Button("Quit",4,self.font2,self.font3)] + buttonlist2=[Button("Start Event",1,self.font2,self.font3),Button("About",2,self.font2,self.font3),Button("Credits",3,self.font2,self.font3),Button("Quit",4,self.font2,self.font3)] t1=["Select this to","Start a Tuxletics Event"] - t2=["Select this to","Start a Tuxletics Tournament","NOT IMPLEMENTED YET"] + t2=["Read about tuxletics","",""] t3=["Look at People Behind", "Tuxletics"] t4=["Go Back to the Real World"] #self.creditsMenu() @@ -77,12 +77,40 @@ if mainoption == 1: self.menu = MENU_PLAYERS elif mainoption == 2: - self.menu = MENU_MAIN + self.menu = MENU_ABOUT elif mainoption == 3: self.menu = MENU_CREDITS else: self.menu = -1 + def menuAbout(self): + + help_file = open('README','r') + help_text = help_file.readlines() + line_y = 180 + + for line in help_text: + txt = self.font1.render(str(line).strip(), 1, (42,131,251)) + txt_rect = txt.get_rect() + txt_rect.center = (self.screen.get_rect().centerx, line_y) + self.screen.blit(txt, txt_rect) + line_y += 20 + + #write press enter to play again to screen + line_y += 20 + htext1 = self.font1.render("Press Any key to go back to menu",1,(42,131,251)) + htext1_rect = htext1.get_rect() + htext1_rect.center = (self.screen.get_rect().centerx, line_y) + self.screen.blit(htext1,htext1_rect) + + pygame.display.flip() + + while True: + for event in pygame.event.get(): + if event.type == pygame.KEYDOWN: + self.menu = MENU_MAIN + return + def menuPlayers(self): buttonlist2=[Button("One",1,self.font2,self.font3),Button("Two",2,self.font2,self.font3),Button("Three",3,self.font2,self.font3),Button("Four",4,self.font2,self.font3)] @@ -95,6 +123,10 @@ if numberofplayers == 0 or numberofplayers == 5: self.menu = MENU_MAIN + return + elif numberofplayers != 1:#if one chooses anything but 1 player will come back to this manu + self.menu = MENU_PLAYERS + return else: players=self.displayPlayerSelect(numberofplayers) @@ -107,7 +139,7 @@ t1=["Game Design and Programming","Send Sedatives and Virgins to:","pz...@us..."] t2=["Graphix and Other Art","Contact:","ma...@us..."] t3=["Producer, Design and Programming","Contact:","te...@us..."] - t4=["Design and Programming","Contact:","st...@he..."] + t4=["Design and Programming","Contact:","ste...@ya..."] #self.creditsMenu() creditsoption = self.displayBasicMenu(buttonlist2,t1,t2,t3,t4,"Credits") @@ -121,6 +153,8 @@ self.menuCredits() elif self.menu == MENU_PLAYERS: self.menuPlayers() + elif self.menu == MENU_ABOUT: + self.menuAbout() elif self.menu == -1: "QUIT GAME" break Index: scores =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/scores,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- scores 17 Dec 2004 14:24:31 -0000 1.8 +++ scores 17 Dec 2004 15:25:53 -0000 1.9 @@ -1,10 +1,10 @@ -as 481 -ki 474 -zzs449 -ki 445 -oks438 -l 433 -m 432 -aas416 -siz415 -asd409 +sin498 +pzq381 +gei380 +ki 374 +pzq363 +kil259 +zzs249 +gei247 +ki 145 +oks138 |
|
From: Petteri K. <pz...@us...> - 2004-12-17 14:24:42
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14825 Modified Files: highscore.py scores snowballgame.py start_menu.py Log Message: highscsores to screen Index: snowballgame.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/snowballgame.py,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- snowballgame.py 17 Dec 2004 13:55:14 -0000 1.32 +++ snowballgame.py 17 Dec 2004 14:24:31 -0000 1.33 @@ -330,8 +330,68 @@ def show_result(self): self.render() + #Higscore is here hs = highscore.HighScore() - hs.writeScoreToFile(self.players[0].name,int(self.flight_len)) + + #write score to file and get placing for player + placing = hs.writeScoreToFile(self.players[0].name,int(self.flight_len)) + + #draw scores to screen + + #first read scores from file + scores = hs.readScoreFromFile() + + #write HighScore to screen + line_y = 20 + self.font.set_underline(1) + headline = self.font.render("Highscores",1,COLOR_TEXT) + headline_rect = headline.get_rect() + headline_rect.center = (self.rect.centerx, line_y) + self.screen.blit(headline,headline_rect) + self.font.set_underline(0) + line_y += 20 + x = 0 + + #write ten scores to screen highlighting players score if she made it to the list + while x < 10:#we assume that there are 10 listings in scores-file + if x < 9: + tx = " "+str(x+1) +"."+" "+ scores[x].name+": "+str(scores[x].score) + else: + tx = str(x+1) +"."+" "+ scores[x].name+": "+str(scores[x].score) + if placing +1 == x+1: + txt = self.font.render(tx,1,(10,10,10)) + else: + txt = self.font.render(tx,1,COLOR_TEXT) + txt_rect = txt.get_rect() + txt_rect.center = (self.rect.centerx, line_y) + self.screen.blit(txt,txt_rect) + line_y += 20 + x += 1 + + #write press enter to play again to screen + line_y += 20 + htext1 = self.font.render("Press Enter to Play again",1,(10,10,10)) + htext1_rect = htext1.get_rect() + htext1_rect.center = (self.rect.centerx, line_y) + self.screen.blit(htext1,htext1_rect) + + #write or to screen + line_y += 40 + htext2 = self.font.render("Or",1,(10,10,10)) + htext2_rect = htext2.get_rect() + htext2_rect.center = (self.rect.centerx, line_y) + self.screen.blit(htext2,htext2_rect) + + #write press esc to go back to menu + line_y += 40 + htext3 = self.font.render("Press Esc to go back to menu",1,(10,10,10)) + htext3_rect = htext3.get_rect() + htext3_rect.center = (self.rect.centerx, line_y) + self.screen.blit(htext3,htext3_rect) + + #update the screen + pygame.display.flip() + while self.phase==PHASE_RESULT: for event in pygame.event.get(): @@ -434,8 +494,8 @@ # render flight length img = self.font.render("LENGTH: %d" % (int(self.flight_len)),1,(0,0,0)) self.screen.blit(img, (0, 0)) - if self.phase == PHASE_RESULT: - self.show_text("Press return to try again!", self.rect.center) + #if self.phase == PHASE_RESULT: + # self.show_text("Press return to try again!", self.rect.center) if self.phase == PHASE_FOUL: self.show_text("Don't step on the ice!", self.rect.center) Index: start_menu.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/start_menu.py,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- start_menu.py 16 Dec 2004 23:06:37 -0000 1.24 +++ start_menu.py 17 Dec 2004 14:24:31 -0000 1.25 @@ -189,6 +189,10 @@ name = name[:-1] elif event.key == K_RETURN: if len(name) != 0: + if len(name) == 1: + name += " " + elif len(name) == 2: + name += " " players.append(player.Player(name)) enterpushed=1 Index: highscore.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/highscore.py,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- highscore.py 16 Dec 2004 21:23:27 -0000 1.5 +++ highscore.py 17 Dec 2004 14:24:31 -0000 1.6 @@ -36,9 +36,22 @@ def __init__(self): self.x=0 - def readScoreFromFile(self,game): - "reads games highscores from local file" - #f=open('scores','r') + def readScoreFromFile(self): + """reads games highscores from local file""" + + #read the scores from file to scores list + scores = [] + num = re.compile('\d+') + let = re.compile('\D+') + f = open('scores','r') + x = 0 + while x < 10: + line = f.readline() + linescore = num.findall(line) + linename = let.findall(line) + scores.append(Score(linename[0],string.atoi(linescore[0]))) + x +=1 + f.close() return scores @@ -60,8 +73,9 @@ x +=1 f.close() + playerscore = Score(playername,score) #sort scores and add new score to list newscores - newscores = [Score(playername,score)] + newscores = [playerscore] for x in scores: y = 0 while y < len(newscores) and y < 10: @@ -87,6 +101,10 @@ x +=1 f.close + placing = newscores.index(playerscore) + print placing + return placing + def comp(self,score1,score2): if score1.score <= score2.score: return 1 Index: scores =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/scores,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- scores 17 Dec 2004 13:55:14 -0000 1.7 +++ scores 17 Dec 2004 14:24:31 -0000 1.8 @@ -1,10 +1,10 @@ -sss447 -nnn446 -sss444 -ttt441 -sss438 -ttt437 -nnn433 -sss429 -ttt425 -sss422 +as 481 +ki 474 +zzs449 +ki 445 +oks438 +l 433 +m 432 +aas416 +siz415 +asd409 |
|
From: Tero K. <te...@us...> - 2004-12-17 13:55:24
|
Update of /cvsroot/tuxletics/tuxletics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8368 Modified Files: penguin.py scores snowballgame.py Log Message: Slipping improved and some animation fixes. Index: snowballgame.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/snowballgame.py,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- snowballgame.py 17 Dec 2004 11:50:56 -0000 1.31 +++ snowballgame.py 17 Dec 2004 13:55:14 -0000 1.32 @@ -304,7 +304,7 @@ else: dy += 0.002 * FLIGHT_SPEED_FACTOR * FLIGHT_SPEED_FACTOR # gravity - self.penguin.set_visible_image( 12 ) + self.penguin.set_visible_image( 13 ) self.penguin.set_position(STAND_X - self.throw_behind_line, STAND_Y) self.ball.update(int(x), int(y), ground_level) self.render() @@ -332,7 +332,6 @@ hs = highscore.HighScore() hs.writeScoreToFile(self.players[0].name,int(self.flight_len)) - #print int(self.flight_len) while self.phase==PHASE_RESULT: for event in pygame.event.get(): @@ -345,21 +344,20 @@ def foul(self): print "FOUL!" # DEBUG - self.travelled += 1 # Every 5th pixel, we change the penguin image. This seems to achieve # pretty good animation, but could perhaps be fine tuned. p_img = 13 - print self.penguin.rect.left, " < ", self.rect.right + i = 1 while (self.penguin.rect.left < self.rect.right): - self.show_text("Don't step on the ice!", self.rect.center) - self.p_sprite.update() + self.p_sprite.update(i) if not self.travelled % 5: p_img += 1 + print "p_img ", p_img # DEBUG + self.penguin.set_visible_image( p_img ) if p_img is 17: p_img = 15 - self.penguin.set_visible_image( p_img ) - print "p_img ", p_img #DEBUG + i *= 1.3 # Sightly accelerating slide self.render() self.travelled += 1 self.start_event() @@ -374,16 +372,16 @@ def penguin_run(self, speed): # We move the penguin one pixel forward and add one to the distance # we've travelled. - self.p_sprite.update() + self.p_sprite.update(1) self.travelled += 1 # Every 5th pixel, we change the penguin image. This seems to achieve # pretty good animation, but could perhaps be fine tuned. if not self.travelled % 5: self.penguin.image_id += 1 + self.penguin.set_visible_image( self.penguin.image_id ) if self.penguin.image_id is 7: self.penguin.image_id = 3 - self.penguin.set_visible_image( self.penguin.image_id ) self.render() @@ -439,6 +437,8 @@ if self.phase == PHASE_RESULT: self.show_text("Press return to try again!", self.rect.center) + if self.phase == PHASE_FOUL: + self.show_text("Don't step on the ice!", self.rect.center) pygame.display.flip() def quit_event(self, event): Index: penguin.py =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/penguin.py,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- penguin.py 17 Dec 2004 08:36:21 -0000 1.9 +++ penguin.py 17 Dec 2004 13:55:13 -0000 1.10 @@ -36,35 +36,40 @@ self.image_id = 0 # Load the running images to a list - for i in range(7): + # p_images[0-6] + for i in range(8): s = "snowballthrow/run%s.png" % (i+1, ) img, rect = load_png(s) self.p_images.append(img) self.p_rects.append(rect) self.p_rects.append(rect) + print "p_images ", i, self.p_images[i] # DEBUG # Load the throwing images to a list - # From index 7 + # p_images[7-12] for i in range(5): s = "snowballthrow/throw%s.png" % (i+1, ) img, rect = load_png(s) self.p_images.append(img) self.p_rects.append(rect) + print "p_images ", i+8, self.p_images[i] # DEBUG # Load the standing_small image to a list - # Index 13 + # p_images[13] for i in range(1): s = "snowballthrow/stand_small.png" img, rect = load_png(s) self.p_images.append(img) self.p_rects.append(rect) + print "p_images ", i+13, self.p_images[i] # DEBUG # Load the slipping images to a list - # From index 14 + # p_images[14-17] for i in range(4): s = "snowballthrow/slip%s.png" % (i+1, ) img, rect = load_png(s) self.p_images.append(img) + print "p_images ", i+14, self.p_images[i] # DEBUG self.reinit() @@ -74,8 +79,8 @@ # We need a new rect since we want to move it around self.rect = self.rect.move([40, 250]) - def update(self): - self.rect.move_ip([1, 0]) + def update(self, speed): + self.rect.move_ip([speed, 0]) def set_visible_image(self, ind): Index: scores =================================================================== RCS file: /cvsroot/tuxletics/tuxletics/scores,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- scores 17 Dec 2004 11:50:56 -0000 1.6 +++ scores 17 Dec 2004 13:55:14 -0000 1.7 @@ -1,10 +1,10 @@ sss447 nnn446 sss444 +ttt441 sss438 +ttt437 nnn433 sss429 ttt425 sss422 -sss421 -nmn416 |
|
From: Tero K. <te...@us...> - 2004-12-17 12:23:36
|
Update of /cvsroot/tuxletics/tuxletics/data/snowballthrow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22545 Added Files: snowballshadow.png Log Message: Image for snowball shadow. --- NEW FILE: snowballshadow.png --- (This appears to be a binary file; contents omitted.) |