Commit Graph

19 Commits

Author SHA1 Message Date
hikerstk
68dae90d15 Added first beta version of 'follow the leader' mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1683 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-04-15 13:57:18 +00:00
hikerstk
3e6a0cf5ab 1) Removed race_setup and race_mode data structures. All this
information is now only managed by the race_manager, no
   more in-between objects to transfer information along.
2) The scores for grand prix are now defined in the stk_config.dat
   file (10, 8, 6, 5, 4, .., 1, 0, 0) points
3) Bugfix: unlock information wasn't saved anymore. Added specific
   saving after unlocking, plus re-inserted the 'generic' save
   at the end of STK again.
4) bugfix/work around: Visual Studio complains about incompatible
   iterators in sdldrv - apparently caused by using erase, and
   then keep on using the iterator.
5) Fixed bug when running a race in a GP again (scores/times
   were added each time).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1681 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-04-09 13:52:48 +00:00
hikerstk
796050e037 Fix: start displaying timer, map etc when GO is being displayed, and
not when the GO disappears.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1489 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-14 02:24:54 +00:00
hikerstk
0bf192c068 Bugfix: start phase was not correctly determined, resulting in penalty if a
key is pressed while 'go' is still on the screen.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-13 03:40:31 +00:00
hikerstk
7550f687da Bugfix/code cleanup: the loading time was counted as countdown time
in certain circumstances (e.g. when setting up a new race from the race menu).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1474 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-13 01:02:02 +00:00
hikerstk
8bc9fd0286 1) Added a better estimation of finishing time for karts that
didn't finish, based on the up-to-now average speed.
2) Changed the race result display to display all results 
   (and not to ignore the last entry).
3) The race will not finish if the last kart racing
   and not arriving in time is a player kart.
4) Made world->m_clock private and added getter function.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1449 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-08 04:43:35 +00:00
hikerstk
b75c9ec869 More minor code cleanup.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-01-30 04:55:11 +00:00
hikerstk
e0a96abe15 Removed traffic jam noise (played when a certain number of
collisions happend in a short time).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1373 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-01-07 00:53:22 +00:00
hikerstk
0f0ae96039 1) Fixed automatic rescue mode when kart is on reset terrain.
2) More non-bullet code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-12-17 13:16:09 +00:00
cosmosninja
af042fff54 Minor cleanups.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1359 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-12-16 17:02:08 +00:00
hikerstk
d0c1aa9e8c 1) Fixed 'rescue bug', i.e. karts have now a proper
heading after being rescued
2) Partly fixed 'automatic rescue' bug: karts get
   rescued when touching a reset material (though it
   currently can take a bit before it happens).
3) Restructured code: track loading and converting
   is now done in the track object.
4) Fixed several warnings for windows.
   


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1345 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-12-12 14:07:26 +00:00
hikerstk
7ed846ca3e 1) Improved rockets and sparks for bullet physics
Parameters for rockets etc. can for now be
   set in data/*.projectile
2) Fixed bugs causing rockets not to explode (and
   potentialy start rotating)
3) Added (somewhat temporarily) some cheats to get
   rockets, homing missiles and sparks as F1/2/3
4) Fixed several memory leaks.
5) Fixed (very rare) occurring crash when deleting
   phsyics.
6) Started to remove non-bullet physics code
7) Bullet physics is now the default, and it
   can not be disabled anymore!!
Important note: 
From this revision on, non-bullet physics is NOT
supported anymore, and will (most likely) not
compile. For now a -DBULLET is still necessary (it
is added as default), but the code will be cleaned
up in the near future.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1325 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-12-08 13:04:56 +00:00
hikerstk
c21c9b5573 1) Removed some memory leaks in physics.
2) Fixed bug 1827284 (sand track bridge could not be used with bullet) by not
   converting triangles which have the 'ignore' property set.
3) Fixed bug 1826773 (jumping while in air was possible)
4) Started adding support for projectiles which stay close
   to the ground (not finished yet).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1284 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-11-08 12:31:54 +00:00
ikework
0b7cadfbea replay:
* set max. sample-frequency to 30 frames per second
* put sample-freq-statistic in the end of replay-file as comments
* did some replay-cleaning

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-09-27 09:47:48 +00:00
hikerstk
fddfac77d2 Bugfix for 1778264: karts starting off the track (esp.
with about 10 karts in tuxtrack and islandtrack).
The number of karts is additionally now limited
to 10 (see stk_config.data), the only reason for this
is to avoid the same bug report when someone is using
more karts than the number of specified start locations.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1261 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-09-26 03:43:02 +00:00
ikework
0a44bf57d5 replay ghost works very basic.
* no interpolation of ghosts position between sampled frames
* no transparency or something else to distinguish

to see it:
* run a game, rename file replay/test.rph to replay/test1.rph - this file is shown in replay

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-09-21 18:02:53 +00:00
ikework
77bdd4a4fc the start of my replay-implementation
all code related to it must be activated with compiler-switch HAVE_GHOST_REPLAY
folder "replay" added to store the replay-files

there are 2 main classes. ReplayRecorder & ReplayPlayer. both are members of class World. the first is for recording/saving a replay and the latter one for showing the replay/loading/ghost-replay

*recording* a game works already very basic, only karts position-struct is stored and some data about the game (track,karts,player...)

the replay file currently is written to replay-folder in world's destructor to replay/test.rph
and it is loaded into ReplayPlayer in World's constructor

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1243 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-09-19 09:23:02 +00:00
coz
fd053ced67 Moved the pause code from being dependant on the widgetSet to being dependant from world.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1146 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-06-10 01:13:39 +00:00
grumbel
7a6d165641 - moved trunk/ to trunk/supertuxkart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-05-27 16:01:53 +00:00