super-tux-commit Mailing List for Super Tux (Page 66)
Brought to you by:
wkendrick
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
(94) |
Apr
(500) |
May
(531) |
Jun
(196) |
Jul
(224) |
Aug
(193) |
Sep
(117) |
Oct
(115) |
Nov
(319) |
Dec
(97) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
|
Mar
(105) |
Apr
(41) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2007 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(2) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(4) |
Jul
|
Aug
|
Sep
(7) |
Oct
(12) |
Nov
(26) |
Dec
(39) |
2009 |
Jan
(6) |
Feb
(15) |
Mar
(10) |
Apr
(25) |
May
(29) |
Jun
(21) |
Jul
(26) |
Aug
(8) |
Sep
(3) |
Oct
|
Nov
|
Dec
(10) |
2010 |
Jan
(5) |
Feb
(5) |
Mar
(2) |
Apr
|
May
(5) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
From: Ryan F. <sik...@us...> - 2004-05-17 05:24:48
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23403 Modified Files: gameobjs.cpp gameobjs.h player.cpp Log Message: - tux can now pick up trampoline Index: player.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/player.cpp,v retrieving revision 1.95 retrieving revision 1.96 diff -u -d -r1.95 -r1.96 --- player.cpp 16 May 2004 05:48:28 -0000 1.95 +++ player.cpp 17 May 2004 05:24:40 -0000 1.96 @@ -18,6 +18,8 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <math.h> +#include <iostream> +#include <iostream> #include <cassert> #include "gameloop.h" #include "globals.h" @@ -699,19 +701,43 @@ case CO_TRAMPOLINE: ptramp_c = (Trampoline*) p_c_object; - if (physic.get_velocity_x() > 0) // RIGHT + // Pick up trampoline + if (ptramp_c->mode != Trampoline::M_HELD && input.fire == DOWN && !holding_something) { - physic.set_velocity_x(0); - base.x = ptramp_c->base.x - base.width; + holding_something = true; + ptramp_c->mode = Trampoline::M_HELD; + ptramp_c->base.y -= 8; } - else if (physic.get_velocity_x() < 0) // LEFT + // Set down trampoline + else if (ptramp_c->mode == Trampoline::M_HELD && input.fire != DOWN) { - physic.set_velocity_x(0); - base.x = ptramp_c->base.x + ptramp_c->base.width; + holding_something = false; + ptramp_c->mode = Trampoline::M_NORMAL; + ptramp_c->base.y += 8; + ptramp_c->physic.set_velocity(physic.get_velocity_x(), physic.get_velocity_y()); + + //if (dir == RIGHT) + // ptramp_c->base.x = base.x + base.width+1; + //else /* LEFT */ + // ptramp_c->base.x = base.x - base.width-1; } - else +/* + // Don't let tux walk through trampoline + else if (ptramp_c->mode != Trampoline::M_HELD && on_ground()) { + if (physic.get_velocity_x() > 0) // RIGHT + { + physic.set_velocity_x(0); + base.x = ptramp_c->base.x - base.width; + } + else if (physic.get_velocity_x() < 0) // LEFT + { + physic.set_velocity_x(0); + base.x = ptramp_c->base.x + ptramp_c->base.width; + } } +*/ + break; default: Index: gameobjs.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.cpp,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- gameobjs.cpp 17 May 2004 01:24:24 -0000 1.22 +++ gameobjs.cpp 17 May 2004 05:24:40 -0000 1.23 @@ -26,6 +26,7 @@ #include "gameobjs.h" #include "sprite_manager.h" #include "resources.h" +#include "level.h" void BouncyDistro::init(float x, float y) @@ -232,11 +233,12 @@ { base.x = x; base.y = y; - base.width = 32; base.height = 32; frame = 0; + mode = M_NORMAL; + physic.reset(); } void @@ -256,23 +258,47 @@ physic.apply(frame_ratio, base.x, base.y); // Falling - if (issolid(base.x + base.width/2, base.y + base.height)) + if (mode != M_HELD) { - base.y = int((base.y + base.height)/32) * 32 - base.height; + if (issolid(base.x + base.width/2, base.y + base.height)) + { + base.y = int((base.y + base.height)/32) * 32 - base.height; - physic.enable_gravity(false); - physic.set_velocity_y(0.0f); + physic.enable_gravity(false); + physic.set_velocity_y(0.0f); + + physic.set_velocity_x(0); + } + else + { + physic.enable_gravity(true); + } } - else - physic.enable_gravity(true); + else // Player is carrying us around + { + /* FIXME: The trampoline object shouldn't know about pplayer objects. */ + /* If we're holding the iceblock */ + Player& tux = *World::current()->get_tux(); + Direction dir = tux.dir; -} + if(dir == RIGHT) + { + base.x = tux.base.x + 16; + base.y = tux.base.y + tux.base.height/1.5 - base.height; + } + else /* facing left */ + { + base.x = tux.base.x - 16; + base.y = tux.base.y + tux.base.height/1.5 - base.height; + } -// TODO: -// If HELD -// - move with tux -// If jumped on -// - compress springs (reduce height) + if(collision_object_map(base)) + { + base.x = tux.base.x; + base.y = tux.base.y + tux.base.height/1.5 - base.height; + } + } +} void Trampoline::collision(void *p_c_object, int c_object, CollisionType type) @@ -285,14 +311,11 @@ if (type == COLLISION_NORMAL) { - // TODO: Pick up if HELD + // Pick up if HELD (done in Player) } else if (type == COLLISION_SQUISH) { - // TODO: compress springs - // TODO: launch tux, if necessary - int squish_amount = (32 - (int)pplayer_c->base.y % 32); if (squish_amount < 24) Index: gameobjs.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- gameobjs.h 17 May 2004 01:24:24 -0000 1.15 +++ gameobjs.h 17 May 2004 05:24:40 -0000 1.16 @@ -131,6 +131,7 @@ void collision(void *p_c_object, int c_object, CollisionType type); Physic physic; + enum { M_NORMAL, M_HELD } mode; private: float power; |
From: Ryan F. <sik...@us...> - 2004-05-17 01:24:37
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11795 Modified Files: gameobjs.cpp gameobjs.h level.cpp world.cpp Log Message: - trampoline stuff Index: gameobjs.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- gameobjs.h 16 May 2004 16:49:13 -0000 1.14 +++ gameobjs.h 17 May 2004 01:24:24 -0000 1.15 @@ -110,7 +110,7 @@ /* Trampoline */ struct TrampolineData { - int power; + float power; }; class Trampoline : public GameObject @@ -133,7 +133,7 @@ Physic physic; private: - int power; + float power; unsigned int frame; }; Index: level.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/level.cpp,v retrieving revision 1.75 retrieving revision 1.76 diff -u -d -r1.75 -r1.76 --- level.cpp 16 May 2004 12:18:05 -0000 1.75 +++ level.cpp 17 May 2004 01:24:24 -0000 1.76 @@ -416,7 +416,7 @@ _trampoline_data.type = OBJ_TRAMPOLINE; reader.read_int("x", &_trampoline_data.x); reader.read_int("y", &_trampoline_data.y); - reader.read_int("power", &_trampoline_data.type_specific.power); + reader.read_float("power", &_trampoline_data.type_specific.power); trampoline_data.push_back(_trampoline_data); } Index: world.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/world.cpp,v retrieving revision 1.95 retrieving revision 1.96 diff -u -d -r1.95 -r1.96 --- world.cpp 16 May 2004 05:48:28 -0000 1.95 +++ world.cpp 17 May 2004 01:24:24 -0000 1.96 @@ -511,7 +511,7 @@ { (*i)->collision(&tux, CO_PLAYER, COLLISION_SQUISH); } - else + else if (tux.previous_base.y <= tux.base.y) { tux.collision(*i, CO_TRAMPOLINE); (*i)->collision(&tux, CO_PLAYER, COLLISION_NORMAL); Index: gameobjs.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- gameobjs.cpp 16 May 2004 16:49:13 -0000 1.21 +++ gameobjs.cpp 17 May 2004 01:24:24 -0000 1.22 @@ -305,9 +305,9 @@ frame = 0; if (squish_amount < 24) - { - pplayer_c->physic.set_velocity_y(8); - } + pplayer_c->physic.set_velocity_y(power); + else if (pplayer_c->physic.get_velocity_y() < 0) + pplayer_c->physic.set_velocity_y(-squish_amount/32); } break; |
From: Ryan F. <sik...@us...> - 2004-05-17 00:54:32
|
Update of /cvsroot/super-tux/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7110 Modified Files: Makefile Log Message: - oops, forgot to remove an 'echo' Index: Makefile =================================================================== RCS file: /cvsroot/super-tux/htdocs/Makefile,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- Makefile 17 May 2004 00:52:40 -0000 1.17 +++ Makefile 17 May 2004 00:54:23 -0000 1.18 @@ -87,7 +87,7 @@ upload: content - echo rsync -rv -e ssh output/ $(USERNAME)@super-tux.sourceforge.net:/home/groups/s/su/super-tux/htdocs/ + rsync -rv -e ssh output/ $(USERNAME)@super-tux.sourceforge.net:/home/groups/s/su/super-tux/htdocs/ clean: rm -rf output/* |
From: Ryan F. <sik...@us...> - 2004-05-17 00:52:48
|
Update of /cvsroot/super-tux/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6816 Modified Files: Makefile Log Message: - touched up Makefile for website Index: Makefile =================================================================== RCS file: /cvsroot/super-tux/htdocs/Makefile,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- Makefile 5 May 2004 15:33:33 -0000 1.16 +++ Makefile 17 May 2004 00:52:40 -0000 1.17 @@ -24,6 +24,10 @@ milestone1/misc.html OUTFILES=$(patsubst %,output/%,$(HTMLOUT)) +USERNAME=`cat CVS/Root | sed "s/:[^:]*:\([^:@]*\)@[^:]*:.*/\1/"` +XALAN_VERSION_X=`xalan 2>&1 | head -n 1 | sed "s/\./ /g" | awk '{print $$3}'` +XALAN_VERSION_Y=`xalan 2>&1 | head -n 1 | sed "s/\./ /g" | awk '{print $$4}'` +XALAN_VERSION_Z=`xalan 2>&1 | head -n 1 | sed "s/\./ /g" | awk '{print $$5}'` all: content @@ -37,21 +41,27 @@ echo Section: $$SECTION ; \ if [ "x$$SECTION" = "xsfnet" -o "x$$SECTION" = "x." ]; then BASEDIR=""; \ else BASEDIR="../"; fi; \ + if [ $(XALAN_VERSION_X) -eq 1 -a $(XALAN_VERSION_Y) -ge 7 ]; then \ + XALAN_PARAM="-p"; \ + XALAN_IN=""; \ + XALAN_OUT="-o"; \ + XALAN_XSL=""; \ + else \ + XALAN_PARAM="-PARAM"; \ + XALAN_IN="-IN"; \ + XALAN_OUT="-OUT"; \ + XALAN_XSL="-XSL"; \ + fi; \ xalan \ - -PARAM filename "'$${FILENAME%%.xml}'" \ - -PARAM section "'$${SECTION}'" \ - -PARAM lastchange "'$${LASTCHANGE}'" \ - -PARAM basedir "'$${BASEDIR}'" \ - -IN $< \ - -OUT $@ \ - -XSL default.xsl + $$XALAN_PARAM filename "'$${FILENAME%%.xml}'" \ + $$XALAN_PARAM section "'$${SECTION}'" \ + $$XALAN_PARAM lastchange "'$${LASTCHANGE}'" \ + $$XALAN_PARAM basedir "'$${BASEDIR}'" \ + $$XALAN_OUT $@ \ + $$XALAN_IN $< \ + $$XALAN_XSL default.xsl -content: $(OUTFILES) development/default.css - mkdir -p output - mkdir -p output/development/ - mkdir -p output/milestone1/ - mkdir -p output/development/images/ - mkdir -p output/milestone1/images/ +content: directories $(OUTFILES) development/default.css cp -v output/welcome.html output/index.html cp -v default.css output/ cp -v images/*.jpg output/images/ @@ -59,10 +69,27 @@ cp -v milestone1/images/*.jpg output/milestone1/images/ cp -v milestone1/images/*.png output/milestone1/images/ cp -v milestone1/images/*.gif output/milestone1/images/ + #cp -v milestone2/images/*.jpg output/milestone2/images/ + #cp -v milestone2/images/*.png output/milestone2/images/ + #cp -v milestone2/images/*.gif output/milestone2/images/ cp -v development/images/*.jpg output/development/images/ cp -v development/images/*.png output/development/images/ +directories: + mkdir -p output + mkdir -p output/development/ + mkdir -p output/milestone1/ + mkdir -p output/milestone2/ + mkdir -p output/images/ + mkdir -p output/development/images/ + mkdir -p output/milestone1/images/ + #mkdir -p output/milestone2/images/ + + upload: content - rsync -rv -e ssh output/ gr...@su...:/home/groups/s/su/super-tux/htdocs/ + echo rsync -rv -e ssh output/ $(USERNAME)@super-tux.sourceforge.net:/home/groups/s/su/super-tux/htdocs/ + +clean: + rm -rf output/* # EOF # |
From: Ryan F. <sik...@us...> - 2004-05-16 23:12:04
|
Update of /cvsroot/super-tux/supertux/data/levels/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19230/data/levels/test Modified Files: level6.stl Log Message: - Trampoline test level Index: level6.stl =================================================================== RCS file: /cvsroot/super-tux/supertux/data/levels/test/level6.stl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- level6.stl 2 May 2004 22:31:46 -0000 1.1 +++ level6.stl 16 May 2004 23:11:54 -0000 1.2 @@ -2,7 +2,7 @@ (supertux-level (version 1) (author "") - (name "Enemy Test 3 - Stay on Platform") + (name "Enemy Test 3 - Stay on Platform / Trampoline Test") (width 50) (height 15) (start_pos_x 100) @@ -77,7 +77,8 @@ ) (objects (mriceblock (x 439) (y 159) (stay-on-platform #t)) - (mriceblock (x 479) (y 159) (stay-on-platform #f)) + (mriceblock (x 479) (y 159) (stay-on-platform #f)) + (trampoline (x 250) (y 150) (power 7.5) (type "trampoline")) ) ) |
From: Ryan F. <sik...@us...> - 2004-05-16 18:45:04
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30395 Modified Files: badguy.cpp Log Message: - collision fix Index: badguy.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/badguy.cpp,v retrieving revision 1.75 retrieving revision 1.76 diff -u -d -r1.75 -r1.76 --- badguy.cpp 14 May 2004 08:10:24 -0000 1.75 +++ badguy.cpp 16 May 2004 18:44:54 -0000 1.76 @@ -1095,7 +1095,8 @@ physic.set_velocity_x(fabsf(physic.get_velocity_x())); // in case badguys get "jammed" - base.x = pbad_c->base.x + pbad_c->base.width; + if (physic.get_velocity_x() != 0) + base.x = pbad_c->base.x + pbad_c->base.width; } else if (dir == RIGHT) { |
From: Marek M. <wa...@us...> - 2004-05-16 18:19:45
|
Update of /cvsroot/super-tux/supertux/data/levels/world1 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23361/data/levels/world1 Modified Files: level11.stl Log Message: New music! Index: level11.stl =================================================================== RCS file: /cvsroot/super-tux/supertux/data/levels/world1/level11.stl,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- level11.stl 16 May 2004 09:48:49 -0000 1.11 +++ level11.stl 16 May 2004 18:19:35 -0000 1.12 @@ -38,7 +38,7 @@ 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 10 11 11 11 12 0 0 0 0 0 0 0 0 16 17 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 16 17 31 11 11 11 11 11 30 17 18 0 0 0 0 0 0 0 0 0 0 0 0 0 16 17 17 18 0 0 0 16 17 17 18 0 0 0 0 0 0 0 16 17 17 18 0 0 0 0 0 0 0 0 0 10 11 11 12 0 0 0 10 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 12 0 0 0 10 11 11 11 11 11 11 11 11 11 12 0 0 59 60 0 0 59 60 0 0 59 60 0 0 59 60 0 0 16 17 17 17 17 17 17 17 17 17 17 17 18 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 13 14 23 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 0 0 20 77 15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 10 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 18 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 12 0 0 0 16 17 17 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 12 0 0 0 10 11 11 11 11 11 11 11 11 11 12 0 0 59 60 0 0 59 60 0 0 59 60 0 0 59 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 6 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 16 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 18 0 0 0 0 0 0 0 0 0 0 16 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 10 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 17 17 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 12 0 0 0 10 11 11 11 11 11 11 11 11 11 12 0 0 59 60 0 0 59 60 0 0 59 60 0 0 59 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 6 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 17 31 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 - 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 10 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 12 0 0 0 10 11 11 11 11 11 11 11 11 11 12 0 0 59 60 0 0 59 60 0 0 59 60 0 0 59 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 112 0 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 + 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 10 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 12 0 0 0 10 11 11 11 11 11 11 11 11 11 12 0 0 59 60 0 0 59 60 0 0 59 60 0 0 59 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 11 11 11 11 11 11 11 11 11 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ) (background-tm |
From: Marek M. <wa...@us...> - 2004-05-16 18:19:45
|
Update of /cvsroot/super-tux/supertux/data/music In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23361/data/music Added Files: forest-fast.mod forest.mod scary-fast.mod scary.mod Log Message: New music! --- NEW FILE: forest.mod --- (This appears to be a binary file; contents omitted.) --- NEW FILE: forest-fast.mod --- (This appears to be a binary file; contents omitted.) --- NEW FILE: scary-fast.mod --- (This appears to be a binary file; contents omitted.) --- NEW FILE: scary.mod --- (This appears to be a binary file; contents omitted.) |
From: Ricardo C. <rm...@us...> - 2004-05-16 18:14:30
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23766/src Modified Files: title.cpp Log Message: Pushed copyright message down. It feels a bit empty, but I am thinking in re-introducing Highscores, so... Index: title.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/title.cpp,v retrieving revision 1.84 retrieving revision 1.85 diff -u -d -r1.84 -r1.85 --- title.cpp 15 May 2004 18:27:57 -0000 1.84 +++ title.cpp 16 May 2004 18:14:19 -0000 1.85 @@ -278,7 +278,7 @@ "This game comes with ABSOLUTELY NO WARRANTY. This is free software, and you\n" "are welcome to redistribute it under certain conditions; see the file COPYING\n" "for details.\n", - 0, 420, 0); + 0, screen->h - 70, 0); /* Don't draw menu, if quit is true */ Menu* menu = Menu::current(); |
From: Ryan F. <sik...@us...> - 2004-05-16 18:05:19
|
Update of /cvsroot/super-tux/supertux/data In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21564 Modified Files: supertux.strf Log Message: - added trampoline entries Index: supertux.strf =================================================================== RCS file: /cvsroot/super-tux/supertux/data/supertux.strf,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- supertux.strf 13 May 2004 12:46:29 -0000 1.32 +++ supertux.strf 16 May 2004 18:05:10 -0000 1.33 @@ -613,6 +613,25 @@ (x-hotspot 12) (fps 20) (images "shared/icebullet-1.png")) + + ; Trampoline + (sprite (name "trampoline-1") + (x-hotspot 0) + (x-hotspot 0) + (images "shared/trampoline-1.png")) + (sprite (name "trampoline-2") + (x-hotspot 0) + (x-hotspot 0) + (images "shared/trampoline-2.png")) + (sprite (name "trampoline-3") + (x-hotspot 0) + (x-hotspot 0) + (images "shared/trampoline-3.png")) + (sprite (name "trampoline-4") + (x-hotspot 0) + (x-hotspot 0) + (images "shared/trampoline-4.png")) + ) ;; EOF ;; |
From: Ricardo C. <rm...@us...> - 2004-05-16 17:57:08
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19949/src Modified Files: setup.cpp Log Message: Added '--leveleditor' to --usage and corrected another thing. Index: setup.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/setup.cpp,v retrieving revision 1.83 retrieving revision 1.84 diff -u -d -r1.83 -r1.84 --- setup.cpp 14 May 2004 16:02:41 -0000 1.83 +++ setup.cpp 16 May 2004 17:56:58 -0000 1.84 @@ -1051,8 +1051,8 @@ "Misc Options:\n" " -j, --joystick NUM Use joystick NUM (default: 0)\n" " --joymap XAXIS:YAXIS:A:B:START\n" - " --leveleditor Opens the leveleditor in a file. (Only works when a file is provided.)\n" " Define how joystick buttons and axis should be mapped\n" + " --leveleditor Opens the leveleditor in a file. (Only works when a file is provided.)\n" " -d, --datadir DIR Load Game data from DIR (default: automatic)\n" " --debug-mode Enables the debug-mode, which is useful for developers.\n" " --help Display a help message summarizing command-line\n" @@ -1093,7 +1093,7 @@ /* Display the usage message: */ - fprintf(fi, "Usage: %s [--fullscreen] [--opengl] [--disable-sound] [--disable-music] [--debug-mode] | [--usage | --help | --version] [--worldmap] FILENAME\n", + fprintf(fi, "Usage: %s [--fullscreen] [--opengl] [--disable-sound] [--disable-music] [--debug-mode] | [--usage | --help | --version] [--leveleditor] FILENAME\n", prog); |
From: Ryan F. <sik...@us...> - 2004-05-16 17:44:49
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16674 Modified Files: worldmap.cpp Log Message: - added missing include Index: worldmap.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/worldmap.cpp,v retrieving revision 1.73 retrieving revision 1.74 diff -u -d -r1.73 -r1.74 --- worldmap.cpp 16 May 2004 12:31:31 -0000 1.73 +++ worldmap.cpp 16 May 2004 17:44:39 -0000 1.74 @@ -21,6 +21,7 @@ #include <fstream> #include <vector> #include <assert.h> +#include <unistd.h> #include "globals.h" #include "texture.h" #include "screen.h" |
From: Ryan F. <sik...@us...> - 2004-05-16 17:30:22
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13316 Modified Files: Tag: supertux_0_1_1_branch worldmap.cpp Log Message: - added missing include (supertux_0_1_1_branch) Index: worldmap.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/worldmap.cpp,v retrieving revision 1.68.2.1 retrieving revision 1.68.2.2 diff -u -d -r1.68.2.1 -r1.68.2.2 --- worldmap.cpp 15 May 2004 22:22:54 -0000 1.68.2.1 +++ worldmap.cpp 16 May 2004 17:30:12 -0000 1.68.2.2 @@ -21,6 +21,7 @@ #include <fstream> #include <vector> #include <assert.h> +#include <unistd.h> #include "globals.h" #include "texture.h" #include "screen.h" |
From: Ryan F. <sik...@us...> - 2004-05-16 16:49:22
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5337 Modified Files: gameobjs.cpp gameobjs.h Log Message: - trampoline stuff Index: gameobjs.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- gameobjs.h 16 May 2004 05:48:28 -0000 1.13 +++ gameobjs.h 16 May 2004 16:49:13 -0000 1.14 @@ -134,6 +134,7 @@ private: int power; + unsigned int frame; }; Index: gameobjs.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- gameobjs.cpp 16 May 2004 05:48:28 -0000 1.20 +++ gameobjs.cpp 16 May 2004 16:49:13 -0000 1.21 @@ -235,12 +235,16 @@ base.width = 32; base.height = 32; + + frame = 0; } void Trampoline::draw() { - img_trampoline[0]->draw((int)base.x, (int)base.y); + img_trampoline[frame]->draw((int)base.x, (int)base.y); + + frame = 0; if (debug_mode) fillrect(base.x - scroll_x, base.y - scroll_y, base.width, base.height, 75, 75, 0, 150); @@ -251,7 +255,7 @@ { physic.apply(frame_ratio, base.x, base.y); - + // Falling if (issolid(base.x + base.width/2, base.y + base.height)) { base.y = int((base.y + base.height)/32) * 32 - base.height; @@ -289,12 +293,19 @@ // TODO: compress springs // TODO: launch tux, if necessary - base.y = pplayer_c->base.y + pplayer_c->base.height; - base.height = (32 - (int)pplayer_c->base.y % 32); - if (base.height < 16) - { - base.height = 32; + int squish_amount = (32 - (int)pplayer_c->base.y % 32); + + if (squish_amount < 24) + frame = 3; + else if (squish_amount < 28) + frame = 2; + else if (squish_amount < 30) + frame = 1; + else + frame = 0; + if (squish_amount < 24) + { pplayer_c->physic.set_velocity_y(8); } } |
From: Ricardo C. <rm...@us...> - 2004-05-16 16:33:29
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2268/src Modified Files: sound.cpp Log Message: Renamed sound effect files, so that musiceans now better what which one means. Index: sound.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/sound.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- sound.cpp 26 Apr 2004 12:21:22 -0000 1.15 +++ sound.cpp 16 May 2004 16:33:21 -0000 1.16 @@ -32,8 +32,8 @@ "/sounds/jump.wav", "/sounds/bigjump.wav", "/sounds/skid.wav", - "/sounds/distro.wav", - "/sounds/herring.wav", + "/sounds/coin.wav", + "/sounds/invincible.wav", "/sounds/brick.wav", "/sounds/hurt.wav", "/sounds/squish.wav", @@ -41,13 +41,13 @@ "/sounds/ricochet.wav", "/sounds/bump-upgrade.wav", "/sounds/upgrade.wav", - "/sounds/excellent.wav", - "/sounds/coffee.wav", + "/sounds/grow.wav", + "/sounds/fire-flower.wav", "/sounds/shoot.wav", "/sounds/lifeup.wav", "/sounds/stomp.wav", "/sounds/kick.wav", - "/sounds/explode.wav" + "/sounds/explosion.wav" }; |
From: Ricardo C. <rm...@us...> - 2004-05-16 16:33:06
|
Update of /cvsroot/super-tux/supertux/data/sounds In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2152/data/sounds Added Files: coin.wav explosion.wav fire-flower.wav grow.wav invincible.wav Removed Files: coffee.wav distro.wav excellent.wav explode.wav herring.wav Log Message: Renamed sound effect files, so that musiceans now better what which one means. --- herring.wav DELETED --- --- explode.wav DELETED --- --- NEW FILE: grow.wav --- (This appears to be a binary file; contents omitted.) --- distro.wav DELETED --- --- NEW FILE: explosion.wav --- (This appears to be a binary file; contents omitted.) --- coffee.wav DELETED --- --- excellent.wav DELETED --- --- NEW FILE: coin.wav --- (This appears to be a binary file; contents omitted.) --- NEW FILE: invincible.wav --- (This appears to be a binary file; contents omitted.) --- NEW FILE: fire-flower.wav --- (This appears to be a binary file; contents omitted.) |
From: Ricardo C. <rm...@us...> - 2004-05-16 12:31:42
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17160/src Modified Files: gameloop.cpp worldmap.cpp Log Message: Game end screen is drawn by the world map now. This is just a step to make a dialog like the SM3 one when the player's lost all lives. (In case there isn't any worldmap, we should draw it anyway...) Also, don't allow the player to open the menu when he is dying. Avoids cheating. Index: worldmap.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/worldmap.cpp,v retrieving revision 1.72 retrieving revision 1.73 diff -u -d -r1.72 -r1.73 --- worldmap.cpp 15 May 2004 11:29:47 -0000 1.72 +++ worldmap.cpp 16 May 2004 12:31:31 -0000 1.73 @@ -706,6 +706,27 @@ // is to hard) break; case GameSession::ES_GAME_OVER: + /* draw an end screen */ + /* in the future, this should make a dialog a la SuperMario, asking + if the player wants to restart the world map with no score and from + level 1 */ + char str[80]; + + drawgradient(Color (0, 255, 0), Color (255, 0, 255)); + + blue_text->drawf("GAMEOVER", 0, 200, A_HMIDDLE, A_TOP, 1); + + sprintf(str, "SCORE: %d", player_status.score); + gold_text->drawf(str, 0, 224, A_HMIDDLE, A_TOP, 1); + + sprintf(str, "COINS: %d", player_status.distros); + gold_text->drawf(str, 0, screen->w - gold_text->w*2, A_HMIDDLE, A_TOP, 1); + + flipscreen(); + + SDL_Event event; + wait_for_event(event,2000,5000,true); + quit = true; player_status.reset(); break; Index: gameloop.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameloop.cpp,v retrieving revision 1.128 retrieving revision 1.129 diff -u -d -r1.128 -r1.129 --- gameloop.cpp 14 May 2004 22:47:35 -0000 1.128 +++ gameloop.cpp 16 May 2004 12:31:31 -0000 1.129 @@ -178,6 +178,8 @@ void GameSession::on_escape_press() { + if(world->get_tux()->dying) + return; // don't let the player open the menu, when he is dying if(game_pause) return; @@ -466,9 +468,6 @@ if (player_status.lives < 0) { // No more lives!? - if(st_gl_mode != ST_GL_TEST) - drawendscreen(); - exit_status = ES_GAME_OVER; } else @@ -716,30 +715,6 @@ } void -GameSession::drawendscreen() -{ - char str[80]; - - if (get_level()->img_bkgd) - get_level()->draw_bg(); - else - drawgradient(get_level()->bkgd_top, get_level()->bkgd_bottom); - - blue_text->drawf("GAMEOVER", 0, 200, A_HMIDDLE, A_TOP, 1); - - sprintf(str, "SCORE: %d", player_status.score); - gold_text->drawf(str, 0, 224, A_HMIDDLE, A_TOP, 1); - - sprintf(str, "COINS: %d", player_status.distros); - gold_text->drawf(str, 0, screen->w - gold_text->w*2, A_HMIDDLE, A_TOP, 1); - - flipscreen(); - - SDL_Event event; - wait_for_event(event,2000,5000,true); -} - -void GameSession::drawresultscreen(void) { char str[80]; |
From: Ricardo C. <rm...@us...> - 2004-05-16 12:18:14
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15008/src Modified Files: level.cpp Log Message: Y background scrolling. It should start be drawing from the bottom of the level to the up. Dunno if it is working well. Index: level.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/level.cpp,v retrieving revision 1.74 retrieving revision 1.75 diff -u -d -r1.74 -r1.75 --- level.cpp 16 May 2004 02:07:26 -0000 1.74 +++ level.cpp 16 May 2004 12:18:05 -0000 1.75 @@ -764,10 +764,12 @@ { // Tile background horizontally int sx = (int)((float)scroll_x * ((float)bkgd_speed/100.0f)) % img_bkgd->w; - for (int i = 0; (i-1)*img_bkgd->w <= screen->w; i++) - img_bkgd->draw_part(i == 0 ? sx : 0, 0, - i == 0 ? 0 : (img_bkgd->w * i) - sx, 0, - i == 0 ? img_bkgd->w - sx : img_bkgd->w, img_bkgd->h); + int sy = (int)((float)scroll_y * ((float)bkgd_speed/100.0f)) % img_bkgd->h; + for (int x = 0; (x-1)*img_bkgd->w <= screen->w; x++) + for (int y = 0; (y-1)*img_bkgd->h <= screen->h; y++) + img_bkgd->draw_part(x == 0 ? sx : 0, y == 0 ? sy : 0, + x == 0 ? 0 : (img_bkgd->w * x) - sx, y == 0 ? 0 : (img_bkgd->h * y) - sy + (height*32 - screen->h), + x == 0 ? img_bkgd->w - sx : img_bkgd->w, y == 0 ? img_bkgd->h - sy : img_bkgd->h); } void |
From: Marek M. <wa...@us...> - 2004-05-16 09:48:58
|
Update of /cvsroot/super-tux/supertux/data/images/background In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14037/data/images/background Modified Files: arctis.jpg Added Files: arctis640.jpg Log Message: Resized the arctis background to 800x600 (Has a few glitches, don't know if they are noticable) Saved the old background as arctis640.png Resized levels 9-12 Index: arctis.jpg =================================================================== RCS file: /cvsroot/super-tux/supertux/data/images/background/arctis.jpg,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 Binary files /tmp/cvszpnJr2 and /tmp/cvsETr15q differ --- NEW FILE: arctis640.jpg --- (This appears to be a binary file; contents omitted.) |
From: Ryan F. <sik...@us...> - 2004-05-16 05:48:37
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5449 Modified Files: collision.h gameobjs.cpp gameobjs.h player.cpp world.cpp Log Message: - trampoline stuff Index: collision.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/collision.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- collision.h 26 Apr 2004 19:11:53 -0000 1.11 +++ collision.h 16 May 2004 05:48:28 -0000 1.12 @@ -31,7 +31,8 @@ { CO_BULLET, CO_BADGUY, - CO_PLAYER + CO_PLAYER, + CO_TRAMPOLINE }; enum CollisionType { Index: player.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/player.cpp,v retrieving revision 1.94 retrieving revision 1.95 diff -u -d -r1.94 -r1.95 --- player.cpp 13 May 2004 12:44:36 -0000 1.94 +++ player.cpp 16 May 2004 05:48:28 -0000 1.95 @@ -18,6 +18,7 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <math.h> +#include <cassert> #include "gameloop.h" #include "globals.h" #include "player.h" @@ -643,6 +644,7 @@ Player::collision(void* p_c_object, int c_object) { BadGuy* pbad_c = NULL; + Trampoline* ptramp_c = NULL; switch (c_object) { @@ -693,6 +695,25 @@ player_status.score_multiplier++; } break; + + case CO_TRAMPOLINE: + ptramp_c = (Trampoline*) p_c_object; + + if (physic.get_velocity_x() > 0) // RIGHT + { + physic.set_velocity_x(0); + base.x = ptramp_c->base.x - base.width; + } + else if (physic.get_velocity_x() < 0) // LEFT + { + physic.set_velocity_x(0); + base.x = ptramp_c->base.x + ptramp_c->base.width; + } + else + { + } + break; + default: break; } Index: gameobjs.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- gameobjs.cpp 16 May 2004 04:04:03 -0000 1.19 +++ gameobjs.cpp 16 May 2004 05:48:28 -0000 1.20 @@ -223,7 +223,7 @@ { char sprite_name[16]; sprintf(sprite_name, "trampoline-%i", i+1); - img_trampoline[0] = sprite_manager->load(sprite_name); + img_trampoline[i] = sprite_manager->load(sprite_name); } } @@ -238,6 +238,15 @@ } void +Trampoline::draw() +{ + img_trampoline[0]->draw((int)base.x, (int)base.y); + + if (debug_mode) + fillrect(base.x - scroll_x, base.y - scroll_y, base.width, base.height, 75, 75, 0, 150); +} + +void Trampoline::action(double frame_ratio) { physic.apply(frame_ratio, base.x, base.y); @@ -253,19 +262,50 @@ else physic.enable_gravity(true); - // TODO: - // If HELD - // - move with tux - // If jumped on - // - compress springs (reduce height) } +// TODO: +// If HELD +// - move with tux +// If jumped on +// - compress springs (reduce height) + void -Trampoline::draw() +Trampoline::collision(void *p_c_object, int c_object, CollisionType type) { - img_trampoline[0]->draw((int)base.x, (int)base.y); -} + Player* pplayer_c = NULL; + switch (c_object) + { + case CO_PLAYER: + pplayer_c = (Player*) p_c_object; + + if (type == COLLISION_NORMAL) + { + // TODO: Pick up if HELD + } + else if (type == COLLISION_SQUISH) + { + // TODO: compress springs + // TODO: launch tux, if necessary + + base.y = pplayer_c->base.y + pplayer_c->base.height; + base.height = (32 - (int)pplayer_c->base.y % 32); + if (base.height < 16) + { + base.height = 32; + + pplayer_c->physic.set_velocity_y(8); + } + } + + break; + + default: + break; + + } +} /* EOF */ Index: world.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/world.cpp,v retrieving revision 1.94 retrieving revision 1.95 diff -u -d -r1.94 -r1.95 --- world.cpp 16 May 2004 03:28:22 -0000 1.94 +++ world.cpp 16 May 2004 05:48:28 -0000 1.95 @@ -499,6 +499,25 @@ upgrades[i].collision(&tux, CO_PLAYER, COLLISION_NORMAL); } } + + // CO_TRAMPOLINE & (CO_PLAYER or CO_BADGUY) + for (Trampolines::iterator i = trampolines.begin(); i != trampolines.end(); ++i) + { + if (rectcollision((*i)->base, tux.base)) + { + if (tux.previous_base.y < tux.base.y && + tux.previous_base.y + tux.previous_base.height + < (*i)->base.y + (*i)->base.height/2) + { + (*i)->collision(&tux, CO_PLAYER, COLLISION_SQUISH); + } + else + { + tux.collision(*i, CO_TRAMPOLINE); + (*i)->collision(&tux, CO_PLAYER, COLLISION_NORMAL); + } + } + } } void Index: gameobjs.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- gameobjs.h 16 May 2004 03:28:22 -0000 1.12 +++ gameobjs.h 16 May 2004 05:48:28 -0000 1.13 @@ -27,6 +27,7 @@ #include "timer.h" #include "scene.h" #include "physic.h" +#include "collision.h" enum ObjectType { OBJ_NONE, OBJ_BADGUY, OBJ_TRAMPOLINE }; @@ -127,6 +128,8 @@ init(data.x, data.y); }; + void collision(void *p_c_object, int c_object, CollisionType type); + Physic physic; private: |
From: Ryan F. <sik...@us...> - 2004-05-16 04:04:12
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23041 Modified Files: gameobjs.cpp Log Message: - started creating trampoline functions Index: gameobjs.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- gameobjs.cpp 16 May 2004 03:28:22 -0000 1.18 +++ gameobjs.cpp 16 May 2004 04:04:03 -0000 1.19 @@ -19,6 +19,7 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. #include <algorithm> +#include <iostream> #include "world.h" #include "tile.h" #include "gameloop.h" @@ -232,14 +233,26 @@ base.x = x; base.y = y; + base.width = 32; base.height = 32; } void Trampoline::action(double frame_ratio) { - (void) frame_ratio; physic.apply(frame_ratio, base.x, base.y); + + + if (issolid(base.x + base.width/2, base.y + base.height)) + { + base.y = int((base.y + base.height)/32) * 32 - base.height; + + physic.enable_gravity(false); + physic.set_velocity_y(0.0f); + } + else + physic.enable_gravity(true); + // TODO: // If HELD // - move with tux |
From: Ryan F. <sik...@us...> - 2004-05-16 03:28:31
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16389 Modified Files: gameobjs.cpp gameobjs.h resources.cpp world.cpp Log Message: - more game object changes. looks a bit nicer now Index: gameobjs.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- gameobjs.cpp 16 May 2004 00:36:58 -0000 1.17 +++ gameobjs.cpp 16 May 2004 03:28:22 -0000 1.18 @@ -216,7 +216,7 @@ #define TRAMPOLINE_FRAMES 4 Sprite *img_trampoline[TRAMPOLINE_FRAMES]; -void load_trampoline_gfx() +void load_object_gfx() { for (int i = 0; i < TRAMPOLINE_FRAMES; i++) { @@ -231,12 +231,15 @@ { base.x = x; base.y = y; + + base.height = 32; } void Trampoline::action(double frame_ratio) { (void) frame_ratio; + physic.apply(frame_ratio, base.x, base.y); // TODO: // If HELD // - move with tux Index: world.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/world.cpp,v retrieving revision 1.93 retrieving revision 1.94 diff -u -d -r1.93 -r1.94 --- world.cpp 16 May 2004 02:07:26 -0000 1.93 +++ world.cpp 16 May 2004 03:28:22 -0000 1.94 @@ -32,6 +32,7 @@ #include "level.h" #include "tile.h" #include "resources.h" +#include "gameobjs.h" Surface* img_distro[4]; @@ -166,7 +167,7 @@ for (std::vector< ObjectData<TrampolineData> >::iterator i = level->trampoline_data.begin(); i != level->trampoline_data.end(); ++i) - {puts("fo"); + { add_object<Trampoline, ObjectData<TrampolineData> >(*i); } } @@ -301,6 +302,9 @@ for (BadGuys::iterator i = bad_guys.begin(); i != bad_guys.end(); ++i) (*i)->action(frame_ratio); + for (Trampolines::iterator i = trampolines.begin(); i != trampolines.end(); ++i) + (*i)->action(frame_ratio); + /* update particle systems */ std::vector<ParticleSystem*>::iterator p; for(p = particle_systems.begin(); p != particle_systems.end(); ++p) @@ -554,7 +558,9 @@ World::add_object(U data) { T* tobject = new T(data); - trampolines.push_back(tobject); + + if (data.type == OBJ_TRAMPOLINE) + trampolines.push_back(tobject); return tobject; } Index: gameobjs.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- gameobjs.h 16 May 2004 01:36:54 -0000 1.11 +++ gameobjs.h 16 May 2004 03:28:22 -0000 1.12 @@ -26,6 +26,7 @@ #include "texture.h" #include "timer.h" #include "scene.h" +#include "physic.h" enum ObjectType { OBJ_NONE, OBJ_BADGUY, OBJ_TRAMPOLINE }; @@ -46,12 +47,6 @@ : x(0), y(0), type(OBJ_NONE), type_specific() {}; }; -struct TrampolineData -{ - int power; -}; - - /* Bounciness of distros: */ #define NO_BOUNCE 0 #define BOUNCE 1 @@ -110,6 +105,13 @@ std::string type() { return "FloatingScore"; }; }; + +/* Trampoline */ +struct TrampolineData +{ + int power; +}; + class Trampoline : public GameObject { public: @@ -120,17 +122,19 @@ Trampoline(ObjectData<TrampolineData> data) { - base.x = data.x; - base.y = data.y; - power = data.type_specific.power; - } + + init(data.x, data.y); + }; + + Physic physic; private: int power; }; -void load_trampoline_gfx(); + +void load_object_gfx(); #endif Index: resources.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/resources.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- resources.cpp 16 May 2004 00:36:58 -0000 1.32 +++ resources.cpp 16 May 2004 03:28:22 -0000 1.33 @@ -175,8 +175,8 @@ /* Upgrades: */ load_special_gfx(); - /* Trampoline */ - load_trampoline_gfx(); + /* Objects */ + load_object_gfx(); /* Distros: */ img_distro[0] = new Surface(datadir + "/images/tilesets/coin1.png", |
From: Ryan F. <sik...@us...> - 2004-05-16 02:07:37
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3161 Modified Files: level.cpp world.cpp Log Message: - more game object progress Index: level.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/level.cpp,v retrieving revision 1.73 retrieving revision 1.74 diff -u -d -r1.73 -r1.74 --- level.cpp 16 May 2004 01:36:54 -0000 1.73 +++ level.cpp 16 May 2004 02:07:26 -0000 1.74 @@ -409,7 +409,7 @@ } else { - if (lisp_symbol(lisp_car(data)) == "trampoline") + if (strcmp(lisp_symbol(lisp_car(data)),"trampoline") == 0) { ObjectData<TrampolineData> _trampoline_data; Index: world.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/world.cpp,v retrieving revision 1.92 retrieving revision 1.93 diff -u -d -r1.92 -r1.93 --- world.cpp 16 May 2004 01:36:54 -0000 1.92 +++ world.cpp 16 May 2004 02:07:26 -0000 1.93 @@ -50,6 +50,7 @@ get_level()->load_gfx(); activate_bad_guys(); + activate_objects(); activate_particle_systems(); get_level()->load_song(); @@ -71,6 +72,7 @@ get_level()->load_gfx(); activate_bad_guys(); + activate_objects(); activate_particle_systems(); get_level()->load_song(); @@ -106,6 +108,9 @@ for (BadGuys::iterator i = bad_guys.begin(); i != bad_guys.end(); ++i) delete *i; + for (Trampolines::iterator i = trampolines.begin(); i != trampolines.end(); ++i) + delete *i; + for (ParticleSystems::iterator i = particle_systems.begin(); i != particle_systems.end(); ++i) delete *i; @@ -161,7 +166,7 @@ for (std::vector< ObjectData<TrampolineData> >::iterator i = level->trampoline_data.begin(); i != level->trampoline_data.end(); ++i) - { + {puts("fo"); add_object<Trampoline, ObjectData<TrampolineData> >(*i); } } @@ -228,6 +233,9 @@ for (BadGuys::iterator i = bad_guys.begin(); i != bad_guys.end(); ++i) (*i)->draw(); + for (Trampolines::iterator i = trampolines.begin(); i != trampolines.end(); ++i) + (*i)->draw(); + tux.draw(); for (unsigned int i = 0; i < bullets.size(); ++i) |
From: Ryan F. <sik...@us...> - 2004-05-16 01:37:04
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30537 Modified Files: gameobjs.h level.cpp world.cpp world.h Log Message: - Made some changes to object code I'm Cleaning up object code to make it more flexible/reusable. It's currently in an unfinished state. Index: world.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/world.h,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- world.h 10 May 2004 13:21:41 -0000 1.39 +++ world.h 16 May 2004 01:36:54 -0000 1.40 @@ -40,6 +40,8 @@ private: typedef std::list<BadGuy*> BadGuys; BadGuys bad_guys_to_add; + typedef std::list<Trampoline*> Trampolines; + Trampolines trampolines; Level* level; Player tux; @@ -91,6 +93,7 @@ void activate_particle_systems(); void activate_bad_guys(); + void activate_objects(); void add_score(float x, float y, int s); void add_bouncy_distro(float x, float y); @@ -99,6 +102,7 @@ void add_bouncy_brick(float x, float y); BadGuy* add_bad_guy(float x, float y, BadGuyKind kind, bool stay_on_platform = false); + template <class T, class U> T* add_object(U data); void add_upgrade(float x, float y, Direction dir, UpgradeKind kind); void add_bullet(float x, float y, float xm, Direction dir); Index: gameobjs.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- gameobjs.h 16 May 2004 00:36:58 -0000 1.10 +++ gameobjs.h 16 May 2004 01:36:54 -0000 1.11 @@ -27,25 +27,28 @@ #include "timer.h" #include "scene.h" +enum ObjectType { OBJ_NONE, OBJ_BADGUY, OBJ_TRAMPOLINE }; + template <class T> struct ObjectData { int x; int y; + ObjectType type; T type_specific; ObjectData(ObjectData* pobject) - : x((int)pobject->x), y((int)pobject->y) {}; - ObjectData(int x_, int y_, T type_specific_) - : x(x_), y(y_), type_specific(type_specific_) {}; + : x((int)pobject->x), y((int)pobject->y), type(pobject->type), type_specific(pobject->type_specific) {}; + ObjectData(int x_, int y_, ObjectType type_, T type_specific_) + : x(x_), y(y_), type(type_), type_specific(type_specific_) {}; ObjectData() - : x(0), y(0), type_specific() {}; + : x(0), y(0), type(OBJ_NONE), type_specific() {}; }; struct TrampolineData { - unsigned int power; + int power; }; @@ -114,6 +117,17 @@ void action(double frame_ratio); void draw(); std::string type() { return "Trampoline"; }; + + Trampoline(ObjectData<TrampolineData> data) + { + base.x = data.x; + base.y = data.y; + + power = data.type_specific.power; + } + + private: + int power; }; void load_trampoline_gfx(); Index: level.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/level.cpp,v retrieving revision 1.72 retrieving revision 1.73 diff -u -d -r1.72 -r1.73 --- level.cpp 16 May 2004 00:36:58 -0000 1.72 +++ level.cpp 16 May 2004 01:36:54 -0000 1.73 @@ -412,6 +412,13 @@ if (lisp_symbol(lisp_car(data)) == "trampoline") { ObjectData<TrampolineData> _trampoline_data; + + _trampoline_data.type = OBJ_TRAMPOLINE; + reader.read_int("x", &_trampoline_data.x); + reader.read_int("y", &_trampoline_data.y); + reader.read_int("power", &_trampoline_data.type_specific.power); + + trampoline_data.push_back(_trampoline_data); } } Index: world.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/world.cpp,v retrieving revision 1.91 retrieving revision 1.92 diff -u -d -r1.91 -r1.92 --- world.cpp 15 May 2004 12:08:57 -0000 1.91 +++ world.cpp 16 May 2004 01:36:54 -0000 1.92 @@ -156,6 +156,17 @@ } void +World::activate_objects() +{ + for (std::vector< ObjectData<TrampolineData> >::iterator i = level->trampoline_data.begin(); + i != level->trampoline_data.end(); + ++i) + { + add_object<Trampoline, ObjectData<TrampolineData> >(*i); + } +} + +void World::activate_particle_systems() { if (level->particle_system == "clouds") @@ -530,6 +541,16 @@ return badguy; } +template<class T, class U> +T* +World::add_object(U data) +{ + T* tobject = new T(data); + trampolines.push_back(tobject); + + return tobject; +} + void World::add_upgrade(float x, float y, Direction dir, UpgradeKind kind) { |
From: Ryan F. <sik...@us...> - 2004-05-16 00:37:09
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20750 Modified Files: gameobjs.cpp gameobjs.h level.cpp level.h resources.cpp Log Message: - added support for different types of objects - working on adding trampoline Index: level.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/level.h,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- level.h 14 May 2004 21:49:30 -0000 1.48 +++ level.h 16 May 2004 00:36:58 -0000 1.49 @@ -26,6 +26,7 @@ #include "badguy.h" #include "lispreader.h" #include "musicref.h" +#include "gameobjs.h" class Tile; @@ -97,6 +98,7 @@ float hor_autoscroll_speed; std::vector<BadGuyData> badguy_data; + std::vector< ObjectData<TrampolineData> > trampoline_data; /** A collection of points to which Tux can be reset after a lost live */ std::vector<ResetPoint> reset_points; Index: gameobjs.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- gameobjs.cpp 11 May 2004 21:53:50 -0000 1.16 +++ gameobjs.cpp 16 May 2004 00:36:58 -0000 1.17 @@ -23,6 +23,8 @@ #include "tile.h" #include "gameloop.h" #include "gameobjs.h" +#include "sprite_manager.h" +#include "resources.h" void BouncyDistro::init(float x, float y) @@ -209,5 +211,45 @@ gold_text->draw(str, (int)base.x + 16 - strlen(str) * 8, (int)base.y, 1); } +/* Trampoline */ + +#define TRAMPOLINE_FRAMES 4 +Sprite *img_trampoline[TRAMPOLINE_FRAMES]; + +void load_trampoline_gfx() +{ + for (int i = 0; i < TRAMPOLINE_FRAMES; i++) + { + char sprite_name[16]; + sprintf(sprite_name, "trampoline-%i", i+1); + img_trampoline[0] = sprite_manager->load(sprite_name); + } +} + +void +Trampoline::init(float x, float y) +{ + base.x = x; + base.y = y; +} + +void +Trampoline::action(double frame_ratio) +{ + (void) frame_ratio; + // TODO: + // If HELD + // - move with tux + // If jumped on + // - compress springs (reduce height) +} + +void +Trampoline::draw() +{ + img_trampoline[0]->draw((int)base.x, (int)base.y); +} + + /* EOF */ Index: level.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/level.cpp,v retrieving revision 1.71 retrieving revision 1.72 diff -u -d -r1.71 -r1.72 --- level.cpp 14 May 2004 21:49:30 -0000 1.71 +++ level.cpp 16 May 2004 00:36:58 -0000 1.72 @@ -33,6 +33,7 @@ #include "lispreader.h" #include "resources.h" #include "music_manager.h" +#include "gameobjs.h" using namespace std; @@ -391,15 +392,28 @@ while (!lisp_nil_p(cur)) { lisp_object_t* data = lisp_car(cur); + std::string object_type = ""; - BadGuyData bg_data; - bg_data.kind = badguykind_from_string(lisp_symbol(lisp_car(data))); LispReader reader(lisp_cdr(data)); - reader.read_int("x", &bg_data.x); - reader.read_int("y", &bg_data.y); - reader.read_bool("stay-on-platform", &bg_data.stay_on_platform); + reader.read_string("type", &object_type); - badguy_data.push_back(bg_data); + if (object_type == "badguy" || object_type == "") + { + BadGuyData bg_data; + bg_data.kind = badguykind_from_string(lisp_symbol(lisp_car(data))); + reader.read_int("x", &bg_data.x); + reader.read_int("y", &bg_data.y); + reader.read_bool("stay-on-platform", &bg_data.stay_on_platform); + + badguy_data.push_back(bg_data); + } + else + { + if (lisp_symbol(lisp_car(data)) == "trampoline") + { + ObjectData<TrampolineData> _trampoline_data; + } + } cur = lisp_cdr(cur); } Index: gameobjs.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameobjs.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- gameobjs.h 2 May 2004 21:28:32 -0000 1.9 +++ gameobjs.h 16 May 2004 00:36:58 -0000 1.10 @@ -27,6 +27,28 @@ #include "timer.h" #include "scene.h" +template <class T> +struct ObjectData +{ + int x; + int y; + T type_specific; + + ObjectData(ObjectData* pobject) + : x((int)pobject->x), y((int)pobject->y) {}; + ObjectData(int x_, int y_, T type_specific_) + : x(x_), y(y_), type_specific(type_specific_) {}; + + ObjectData() + : x(0), y(0), type_specific() {}; +}; + +struct TrampolineData +{ + unsigned int power; +}; + + /* Bounciness of distros: */ #define NO_BOUNCE 0 #define BOUNCE 1 @@ -85,6 +107,17 @@ std::string type() { return "FloatingScore"; }; }; +class Trampoline : public GameObject +{ + public: + void init(float x, float y); + void action(double frame_ratio); + void draw(); + std::string type() { return "Trampoline"; }; +}; + +void load_trampoline_gfx(); + #endif /* Local Variables: */ Index: resources.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/resources.cpp,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- resources.cpp 12 May 2004 17:56:34 -0000 1.31 +++ resources.cpp 16 May 2004 00:36:58 -0000 1.32 @@ -175,6 +175,9 @@ /* Upgrades: */ load_special_gfx(); + /* Trampoline */ + load_trampoline_gfx(); + /* Distros: */ img_distro[0] = new Surface(datadir + "/images/tilesets/coin1.png", USE_ALPHA); |