INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
SET(HAVE_OPENGL TRUE)
ENDIF(OPENGL_FOUND)
+
+ FIND_PACKAGE(GLEW)
+ IF(GLEW_FOUND)
+ INCLUDE_DIRECTORIES(${GLEW_INCLUDE_DIR})
+ ENDIF(GLEW_FOUND)
ENDIF(ENABLE_OPENGL)
FIND_PACKAGE(OpenAL REQUIRED)
TARGET_LINK_LIBRARIES(supertux2 ${PHYSFS_LIBRARY})
IF(HAVE_OPENGL)
TARGET_LINK_LIBRARIES(supertux2 ${OPENGL_LIBRARY})
- TARGET_LINK_LIBRARIES(supertux2 GLEW)
+ TARGET_LINK_LIBRARIES(supertux2 ${GLEW_LIBRARY})
ENDIF(HAVE_OPENGL)
IF(HAVE_LIBCURL)
TARGET_LINK_LIBRARIES(supertux2 ${CURL_LIBRARY})
function intro()
{
//initialize
- SUPERTUX.set_action("big-walk-right");
+ Camera.set_mode("manual");
+ Tux.deactivate();
+// Tux.set_position(2291,1280);
+ Tux.add_bonus("grow");
RADIO.set_action("quiet");
PENNY.set_action("stand-left");
NOLOK.set_visible(false);
logo <- FloatingImage("images/objects/logo/logo.sprite");
- Tux.deactivate();
- Tux.set_visible(false);
Effect.sixteen_to_nine(0);
//begin scrolling sequence
wait(3);
Text.fade_out(2);
wait(10);
- SUPERTUX.set_velocity(50,0);
+ Tux.walk(0);
Camera.scroll_to(3100, 945, 18);
wait(6);
logo.set_anchor_point(ANCHOR_TOP);
wait(5.3);
//begin conversation and Tux rap
- SUPERTUX.set_velocity(0,0);
- SUPERTUX.set_action("big-stand-right");
+ Tux.walk(0);
play_sound("speech/tux_hello.ogg");
wait(3);
play_sound("speech/penny_runt_01.ogg");
NOLOK.set_visible(false);
PENNY.set_visible(false);
RADIO.set_action("quiet");
- SUPERTUX.set_pos(3550, SUPERTUX.get_pos_y());
+// Tux.set_position(3550, 1270);
//wake up, Tux...
Effect.fade_in(4);
wait(1);
tux_upset();
wait(4);
- SUPERTUX.set_action("big-walk-right");
- SUPERTUX.set_velocity(300,0);
+ Tux.walk(3000);
wait(2);
//end intro sequence
function tux_upset()
{
- SUPERTUX.set_action("big-walk-right");
- SUPERTUX.set_velocity(200,0);
- wait(0.3);
- SUPERTUX.set_action("big-stand-right");
- SUPERTUX.set_velocity(0,0);
- wait(0.4);
- SUPERTUX.set_action("big-walk-left");
- SUPERTUX.set_velocity(-200,0);
- wait(0.3);
- SUPERTUX.set_action("big-stand-left");
+ Tux.walk(200);
+ wait(1);
+ Tux.walk(0);
+ wait(1);
+ Tux.walk(-200);
+ wait(1);
+ Tux.walk(0);
}
function logo_in()
(bottom_color 0 0.6 1)
)
(scriptedobject
- (name "SUPERTUX")
- (visible #t)
- (physic-enabled #t)
- (solid #t)
- (x 2291)
- (y 1280)
- (sprite "images/creatures/tux/tux.sprite")
- )
- (scriptedobject
(name "PENNY")
(visible #t)
(physic-enabled #t)
--- /dev/null
+# - Try to find GLEW\r
+# Once done this will define\r
+# \r
+# GLEW_FOUND - system has GLEW\r
+# GLEW_INCLUDE_DIR - the GLEW include directory\r
+# GLEW_LIBRARY - Link these to use GLEW\r
+# \r
+\r
+ FIND_PATH( GLEW_INCLUDE_DIR glew.h wglew.h\r
+ PATHS /usr/local /usr c:/glew "C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK" "C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK"\r
+ PATH_SUFFIXES include include/gl include/GL Include Include/gl Include/GL )\r
+ FIND_LIBRARY( GLEW_LIBRARY\r
+ NAMES glew32 glew GLEW\r
+ PATHS /usr /usr/local c:/glew "C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK" "C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK"\r
+ PATH_SUFFIXES lib Lib\r
+ )\r
+\r
+IF (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)\r
+ SET(GLEW_FOUND TRUE)\r
+ SET( GLEW_LIBRARY_DIR ${GLEW_LIBRARY} )\r
+ELSE (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)\r
+ SET( GLEW_FOUND FALSE )\r
+ENDIF (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)\r
int main(int argc, char** argv)
{
- return Main().main(argc, argv);
+ return Main().SDL_main(argc, argv);
}
/* EOF */
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "supertux/main.hpp"
-
#include <config.h>
#include <version.h>
#include <SDL_image.h>
-#undef main
#include <physfs.h>
#include <iostream>
#include <binreloc.h>
#include <tinygettext/log.hpp>
+#include "supertux/main.hpp"
+
#ifdef MACOSX
namespace supertux_apple {
# include <CoreFoundation/CoreFoundation.h>