Permalink
Browse files

initial import

  • Loading branch information...
0 parents commit 8af3bf1e347ee8425a86868370f9c576d7361352 Dmytro Lytovchenko committed Sep 28, 2011
Showing 575 changed files with 47,443 additions and 0 deletions.
@@ -0,0 +1,8 @@
+*.cpp text eol=lf
+*.hpp text eol=lf
+*.h text eol=lf
+*.c text eol=lf
+*.cc text eol=lf
+*.txt text
+*.vcproj eol=crlf
+*.sh eol=lf
@@ -0,0 +1,4 @@
+.build-*/
+bin/
+linklib/
+*.log
@@ -0,0 +1,46 @@
+#-----------------------------------------------------------------------
+#
+# This is minimal game skeleton in HGE based on HGE_TUTORIAL 06
+# to adapt this to your new game, search and replace HGESKEL with your project name
+#
+#-----------------------------------------------------------------------
+project( HGESKEL )
+cmake_minimum_required( VERSION 2.8 )
+
+
+##--- set this to 8 or 9 ---
+SET( HGE_DIRECTX_VER "9" )
+SET( HGE_UNICODE "0" )
+
+add_definitions( "-DHGE_DIRECTX_VER=${HGE_DIRECTX_VER}" "-DHGE_UNICODE=${HGE_UNICODE}" )
+# disable warnings on STD non conformance and security issues
+add_definitions( "-D_CRT_SECURE_NO_WARNINGS" "-D_CRT_NONSTDC_NO_WARNINGS" "-D_SCL_SECURE_NO_WARNINGS" "-D_WIN32_WINNT=0x0501" "/MP" )
+
+SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${HGE_SOURCE_DIR}/bin CACHE PATH "Single Directory for all executables." )
+SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${HGE_SOURCE_DIR}/bin CACHE PATH "Single Directory for all executables." )
+SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${HGE_SOURCE_DIR}/linklib CACHE PATH "Single Directory for all static libraries." )
+SET( CMAKE_INCLUDE_CURRENT_DIR ON )
+
+#------ sources ------
+set( TUT06_SRC
+ src/main.cpp
+ src/menuitem.cpp
+ src/menuitem.h )
+
+#------ additional includes ------
+include_directories( ${HGE_SOURCE_DIR}/include )
+include_directories( ${HGE_SOURCE_DIR}/src/libPNG )
+include_directories( ${HGE_SOURCE_DIR}/src/zlib-1.2.5 )
+include_directories( ${DIRECTX_SDK_DIR}/include )
+
+#------ link directories listed ------
+link_directories( ${HGE_SOURCE_DIR}/linklib )
+link_directories( ${DIRECTX_SDK_DIR}/lib ${DIRECTX_SDK_DIR}/lib/x64 ${DIRECTX_SDK_DIR}/lib/x86 )
+link_libraries( hge )
+
+#------ target -----
+add_executable( HGESKEL WIN32 ${TUT06_SRC} )
+
+if( MSVC )
+ SET_TARGET_PROPERTIES( HGESKEL PROPERTIES LINK_FLAGS "/NODEFAULTLIB:libci" )
+endif()
@@ -0,0 +1,20 @@
+What's this?
+============
+This is a platform scroller (somewhat similar to Super Mario with few differences)
+game skeleton to use with HGE library, which does very basic functions and leaves
+lot of placeholder functions for you to code your very own side-scroller game.
+
+How to make this work?
+======================
+This thing works with either HGE clone from here https://github.com/kvakvs/hge
+or original HGE 1.8.1 located at http://hge.relishgames.com
+
+This thing will require compiled HGE.DLL and HGE.LIB, or, if you go further and want
+to build it from source, you will need either DirectX 8 SDK or DirectX 9 SDK from
+Microsoft website, and the source of HGE library. I (the author) was nice and put
+the compiled DLL and LIB for you to try the game right out of the box, but you can
+go ahead and replace them at any time.
+
+To create solution file, run one of BAT files attached. You can also run CMake to
+support some other IDE, see what it can do:
+http://www.cmake.org/cmake/help/cmake-2-8-docs.html#section_Generators
@@ -0,0 +1,56 @@
+CMake - Cross Platform Makefile Generator
+Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+* Neither the names of Kitware, Inc., the Insight Software Consortium,
+ nor the names of their contributors may be used to endorse or promote
+ products derived from this software without specific prior written
+ permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+------------------------------------------------------------------------------
+
+The above copyright and license notice applies to distributions of
+CMake in source and binary form. Some source files contain additional
+notices of original copyright by their contributors; see each source
+for details. Third-party software packages supplied with CMake under
+compatible licenses provide their own copyright notices documented in
+corresponding subdirectories.
+
+------------------------------------------------------------------------------
+
+CMake was initially developed by Kitware with the following sponsorship:
+
+ * National Library of Medicine at the National Institutes of Health
+ as part of the Insight Segmentation and Registration Toolkit (ITK).
+
+ * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
+ Visualization Initiative.
+
+ * National Alliance for Medical Image Computing (NAMIC) is funded by the
+ National Institutes of Health through the NIH Roadmap for Medical Research,
+ Grant U54 EB005149.
+
+ * Kitware, Inc.
@@ -0,0 +1,29 @@
+# - ADD_FILE_DEPENDENCIES(source_file depend_files...)
+# Adds the given files as dependencies to source_file
+#
+
+#=============================================================================
+# Copyright 2006-2009 Kitware, Inc.
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+# (To distribute this file outside of CMake, substitute the full
+# License text for the above reference.)
+
+MACRO(ADD_FILE_DEPENDENCIES _file)
+
+ GET_SOURCE_FILE_PROPERTY(_deps ${_file} OBJECT_DEPENDS)
+ IF (_deps)
+ SET(_deps ${_deps} ${ARGN})
+ ELSE (_deps)
+ SET(_deps ${ARGN})
+ ENDIF (_deps)
+
+ SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES OBJECT_DEPENDS "${_deps}")
+
+ENDMACRO(ADD_FILE_DEPENDENCIES)
Oops, something went wrong.

0 comments on commit 8af3bf1

Please sign in to comment.