Commit Graph

7526 Commits

Author SHA1 Message Date
hikerstk
ff67a5cf4e Removed the usage of friend declaration. CheckStructure dependencies are
now not read in CheckStructure anymore, instead they are set by the
CheckManager depending on the direction of the track.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10832 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-09 21:14:32 +00:00
hikerstk
45bb8ceb40 Bugfix: In reverse mode, distance along track started with the wrong
graph node, causing the first lap crossing not being detected.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10831 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-09 11:21:07 +00:00
mcmic
01458892f0 Now reversing check structures order.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10824 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-08 12:48:07 +00:00
hikerstk
c3a9c03b8b Worked around the problem that the reverse check box could not be
selected by mouse on 800x600 resolution (the checkbox was then
outside of the dialog window).
A proper solution (imho) should be to convert the dialog into
a full-screen menu (which would also be consistent with all
other menus).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10823 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 05:32:20 +00:00
hikerstk
7bdcb9d681 Updated comment.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 05:16:05 +00:00
hikerstk
92ef262bb0 Removed reversal of quads, instead fixed handling of the data structures
that depend on the orientation to properly handle reverse tracks.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10821 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 05:15:19 +00:00
hikerstk
9c51953e7a Removed dead code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10820 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 04:15:13 +00:00
hikerstk
3659b14667 Redone 'distance from start' calculation to use the proper graph structure
(and not to assume that the quads/graph nodes will be added in a specific
order, i.e. in the order in which they are connected).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10819 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 03:10:43 +00:00
hikerstk
f2d5ca5203 1) Set reverse state to false if no reverse track is available
(otherwise after racing one track in reverse mode, the next track
   without reverse available will still have reverse flag set).
2) Set the state of the checkbox to the previsouly selected
   reverse status (which makes it a bit more convenient if you
   want to replay with the same settings).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 03:08:43 +00:00
hikerstk
59c5537fe5 Fixed crash in case of using -N without --reverse on the command line.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10812 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-06 21:12:10 +00:00
hikerstk
b5bb733e19 Make the karts start just ahead of the starting line in reverse mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 22:33:17 +00:00
hikerstk
80ec893758 Use singleton-like constructs instead of static
pointer to quad set etc.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 22:24:20 +00:00
hikerstk
648eb17e0a Added command line option for reversing tracks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10808 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 20:56:45 +00:00
hikerstk
c49226aefc Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10806 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 11:33:19 +00:00
hikerstk
6e099ebbb9 Marked more tracks to be reversable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 11:32:31 +00:00
mcmic
29192e7fc6 Added text next to reverse checkbox
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10800 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-04 16:02:02 +00:00
mcmic
d81cc54fa8 Implementation of reversed track.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10799 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-03 23:18:14 +00:00
hikerstk
a993cebca0 Applied first part of MCMic's patch to allow driving a track in reverse.
It adds a flag to the track.xml files, a (currently unnamed) checkbox
in the track selection screen, but doesn't do any actualy reversing (see
forum http://forum.freegamedev.net/viewtopic.php?f=18&t=2661 for
details).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 23:35:46 +00:00
hikerstk
7712af3070 Created branch for reverse-mode driving.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10763 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 03:47:02 +00:00
auria
3fbaeab536 Fix pedestrals by the sea
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10761 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 02:55:26 +00:00
auria
665ee15cdd Fix large font
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10760 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 02:25:38 +00:00
auria
3e3c676db0 Clean up text nodes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10759 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 01:59:33 +00:00
auria
b29456012c Silence those remaining of the annoying warnings that are printed when loading the overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10758 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 01:00:33 +00:00
auria
e346b44ba1 Silence many of the annoying warnings that are printed when loading the overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10757 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 00:54:13 +00:00
auria
973a7cd4bb Use higher-res font for the digits in the overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 00:27:53 +00:00
hikerstk
369338e39f Fix nitro in old (current default) skidding code (skidding effect
was shown all the time after 2.5 seconds of skidding all in all).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 22:41:05 +00:00
hikerstk
35d02e2547 Added indication when the skid bonus 1 and 2 is reached. ATM this
still looks like nitro, and there the bonus of bonus 1 and 2
is actually still the same (wip).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10754 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 22:31:40 +00:00
hikerstk
b68e849521 Updates VS 9 project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10753 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 22:26:22 +00:00
auria
c4507211db Make water in overworld trigger rescue
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10751 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 21:51:46 +00:00
auria
6ff2734b11 Fix crash when starting race in overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10750 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 21:44:29 +00:00
auria
91cdec00a6 Correct crashes in overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 21:28:31 +00:00
auria
9d4157de93 Add sound hack in debug mode on OSX to make STK more pleasant to debug ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10748 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 20:08:49 +00:00
auria
a9516bb08d Fix boats hovering in mid-air, update license
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10747 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 17:04:52 +00:00
auria
691319efd3 Only use water shader when driver supports GLSL and shaders are enabled in preferences
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10744 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 16:40:35 +00:00
auria
71118f24cf Add water shader for the overworld. Feedback ewlcome
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10743 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 16:39:30 +00:00
auria
652e3180f0 Added needed code for shader
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10742 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 03:13:12 +00:00
auria
1d12c3c9aa Improve water shaders a bit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10741 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 03:11:48 +00:00
auria
f33cbb8dc0 Add WIP water shader. Not yet used because not satisfying
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 02:55:52 +00:00
auria
b57ea6a182 Slightly improve normal map shader. It's less physically realistic than before but IMO looks better
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10739 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 01:10:57 +00:00
auria
bae9f0e15e Stop time while the challenge dialog is shown
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10738 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-28 03:00:31 +00:00
mbjornstk
c551aa5c59 Add select_challenge.[ch]pp to build system.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10737 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-28 02:51:37 +00:00
auria
708d79b2f4 Add dialog asking to select challenge difficulty. Crashes for now so don't report bugs yet
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-28 02:06:44 +00:00
auria
0bf039c09e Update Xcode and CMake files
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-27 23:47:21 +00:00
mbjornstk
3f0fc54773 Add string include so compile completes.
Error was "string in namespace std does not name a type".


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10734 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-27 22:33:35 +00:00
hikerstk
1a49c6bfe5 1) Moved zipper and nitro particle code into a common class
KartGFX (to make kart.cpp smaller). Work in progress.
2) Updated VS 9 project file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-27 13:09:51 +00:00
hikerstk
ad2a999034 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10732 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-27 13:08:11 +00:00
auria
af51e45217 Fixed leaks when a challenge file could not be read
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-27 02:46:58 +00:00
mbjornstk
23fe90cd61 Remove references to challenges.[ch]pp, including the include.
Maybe main_menu_screen.cpp is also useless now? Otherwise it would had failed
compiling in other plataforms too.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10730 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-27 00:33:39 +00:00
auria
0bab0045bf Update challenges in the overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-26 19:23:57 +00:00
auria
57b727f68d Big overhaul of challenges. Bumped challenge XML file format to version 2.0. Now each challenge file speficies 3 difficulty levels. Started adapting unlock manager for these changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10727 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-26 19:12:48 +00:00