.
This commit is contained in:
lugaru
.appveyor.yml.clang-format.doozer.json.gitattributes.gitignore.gitlab-ci.ymlAUTHORSCMakeLists.txtCOMPILING.mdCONTENT-LICENSE.txtCOPYING.txt
Data
Animations
BackFlipBackHandspringBlockHighLeftBlockHighLeftStrikeClimbCrouchCrouchDrawRightCrouchRemoveKnifeCrouchStabDead1Dead2Dead3Dead4DodgeBackDrawLeftDrawRightDropKickDyingFightIdleFightSideStepFlipGetUpFromBackGetUpFromFrontHangOnHurtIdleIdleJumpCatchJumpCaughtJumpDownJumpUpKillKnifeFightIdleKnifeSlashCatchKnifeSlashCaughtKnifeSneakAttackKnifeSneakAttackedKnifeThrowLandHardLandingLeftFlipLowKickRabbitKickRabbitKickCatchRabbitKickCaughtRabbitRunningRabbitTackleRabbitTackledBackRabbitTackledFrontRabbitTacklingRemoveKnifeRightFlipRollRunSitSlashFollowSlashFollowedSlashStartSleepSneakSneakAttackSneakAttackedSpinKickSpinKickCatchSpinKickCaughtSpinWhackSpinWhackCatchSpinWhackCaughtStaffGroundSmashStaffHitStaffHitCatchStaffHitCaughtStaggerBackHardStaggerBackHighStopSweepSweepCatchSweepCaughtSwordFightIdleSwordFightIdleBothSwordGroundStabSwordSlashSwordSlashCatchSwordSlashCaughtSwordSlashParriedSwordSneakAttackSwordSneakAttackedSwordUprightParryTalkIdleTempanimUpunchUpunchCatchUpunchCaughtWalkWallJumpBackWallJumpFrontWallJumpLeftWallJumpLeftKickWallJumpRightWallJumpRightKickWindUpPunchWindUpPunchBlockedWolfCrouchWolfIdleWolfLandHardWolfLandingWolfRunWolfRunningWolfSlapWolfStop
Campaigns
Dialogues
Endgood.txtEndharsh.txtExample.txtalphawolf.txtambush.txtapril.txtapril2.txtclover.txtclover2.txtguard.txtguards.txtjack.txtjack2.txtjack3.txtjack4.txtjackguards.txtking.txtking2.txtprotest.txtraidercamp.txtraiderchief.txtraiderguard.txtraiders.txtraiderscout.txtraiderscout2.txtskipper.txtskipper2.txtskipper3.txttrixie.txttrixie2.txtturner.txtturner10.txtturner2.txtturner3.txtturner4.txtturner5.txtturner6.txtturner7.txtturner8.txtturner81.txtturner82.txtturner9.txtwolfpatrol.txt
Maps
Lugaru1.jsonLugaru10.jsonLugaru11.jsonLugaru12.jsonLugaru13.jsonLugaru14.jsonLugaru15.jsonLugaru16.jsonLugaru17.jsonLugaru18.jsonLugaru19.jsonLugaru2.jsonLugaru20.jsonLugaru21.jsonLugaru22.jsonLugaru23.jsonLugaru24.jsonLugaru25.jsonLugaru26.jsonLugaru27.jsonLugaru28.jsonLugaru29.jsonLugaru3.jsonLugaru30.jsonLugaru31.jsonLugaru4.jsonLugaru5.jsonLugaru6.jsonLugaru7.jsonLugaru8.jsonLugaru9.jsonjendraz1.jsonjendraz10.jsonjendraz11.jsonjendraz12.jsonjendraz13.jsonjendraz14.jsonjendraz15.jsonjendraz16.jsonjendraz17.jsonjendraz18.jsonjendraz19.jsonjendraz2.jsonjendraz20.jsonjendraz21.jsonjendraz22.jsonjendraz23.jsonjendraz24.jsonjendraz25.jsonjendraz26.jsonjendraz27.jsonjendraz28.jsonjendraz29.jsonjendraz3.jsonjendraz30.jsonjendraz31.jsonjendraz32.jsonjendraz33.jsonjendraz34.jsonjendraz35.jsonjendraz36.jsonjendraz37.jsonjendraz38.jsonjendraz39.jsonjendraz4.jsonjendraz40.jsonjendraz41.jsonjendraz5.jsonjendraz6.jsonjendraz7.jsonjendraz8.jsonjendraz9.jsonmap1.jsonmap10.jsonmap11.jsonmap12.jsonmap13.jsonmap14.jsonmap2.jsonmap3.jsonmap4.jsonmap5.jsonmap6.jsonmap7.jsonmap8.jsonmap9.jsonsvenalpha.jsonsvencanyon.jsonsvenchasm.jsonsvenclimb.jsonsvencouncil.jsonsvendawn.jsonsvendecoy.jsonsvendefend.jsonsvendoor.jsonsvenearl.jsonsvenfireice.jsonsvenforest.jsonsvenfort.jsonsvengrotto.jsonsvenheaven.jsonsvenmeeting.jsonsvenninja.jsonsvenninjabefore.jsonsvenredbw.jsonsvenredbw2.jsonsvenredbw3.jsonsvenredbw4.jsonsvenredbw5.jsonsvenredbwafter.jsonsvenroad.jsonsvenruins.jsonsvenshan.jsonsvenskip.jsonsvensthwrong.jsonsventemple.jsonsventemple2.jsonsventhrone.jsontask1.jsontask10.jsontask11.jsontask12.jsontask13.jsontask14.jsontask15.jsontask16.jsontask17.jsontask18.jsontask2.jsontask3.jsontask4.jsontask5.jsontask6.jsontask7.jsontask8.jsontask9.jsontutorial.json
Models
Belt.solidBody.solidBody2.solidBody3.solidBody4.solidBody5.solidBody6.solidBody7.solidBodyLow.solidBox.solidBush.solidChimney.solidCool.solidCornea.solidEye.solidHawk.solidIris.solidLeaves.solidPlatform.solidRabbit.solidRock.solidSpike.solidStaff.solidSword.solidThrowingKnife.solidTreeTrunk.solidTunnel.solidWall.solidWeird.solidWolf.solidWolf2.solidWolf3.solidWolf4.solidWolf5.solidWolf6.solidWolf7.solidWolfLow.solid
Skeleton
Sounds
Alarm.oggBark.oggBark2.oggBark3.oggBarkGrowl.oggBreak.oggBroken.oggBushRustle.oggClank1.oggClank2.oggClank3.oggClank4.oggClawSlice.oggConsoleFail.oggConsoleSuccess.oggDesertAmbient.oggFire.oggFireEnd.oggFireStart.oggFleshStab.oggFleshStabRemove.oggFootStepGrass1.oggFootStepGrass2.oggFootStepSnow1.oggFootStepSnow2.oggFootStepStone1.oggFootStepStone2.oggGrowl.oggGrowl2.oggHawk.oggHeavyImpact.oggHighWhoosh.oggJump.oggKnifeDraw.oggKnifeSheathe.oggKnifeSlice.oggKnifeSwish.oggLand.oggLand1.oggLand2.oggLowWhoosh.oggMetalHit.oggMidWhoosh.oggMoveWhoosh.oggMusic1Desert.oggMusic1Grass.oggMusic1Snow.oggMusic2.oggMusic3.oggRabbitAttack.oggRabbitAttack2.oggRabbitAttack3.oggRabbitAttack4.oggRabbitChitter.oggRabbitChitter2.oggRabbitPain.oggRabbitPain2.oggSkid.oggSnarl.oggSnarl2.oggSnowSkid.oggSplatter.oggStaffBody.oggStaffBreak.oggStaffHead.oggSwordSlice.oggSwordStaff.oggThud.oggWhoosh.oggWhooshHit.oggWind.ogg
Textures
Belt.pngBlood.pngBloodApril.pngBloodClover.pngBloodFlame.pngBloodFur.pngBloodJack.pngBloodKnife.pngBloodKnifeLight.pngBloodParticle.pngBloodParticleInverse.pngBloodTrixie.pngBodyprint.pngBoulder.jpgBoulderDesert.jpgBoulderSnow.jpgBreak.pngBush.pngBushDesert.pngBushSnow.pngClFeng.pngClHuo.pngClShan.pngClShui.pngCloud.pngCloudImpact.pngCursor.pngDesertBox.jpgDesertCl.pngDesertTree.pngEarWrap.pngEndGame.pngEyelid.pngFancyPants.pngFancyPantsCamo.pngFancyPantsCamoArctic.pngFancyPantsCamoDesert.pngFire.jpgFlame.pngFont.pngFontMono.pngFootWrap.pngFootprint.pngFootprintSand.pngFur.jpgFur2.pngFurBlack.jpgFurBlackWhite.jpgFurBrown.jpgFurBrownWhite.jpgFurChocolate.jpgFurDarko.jpgFurDavid.jpgFurLynx.jpgFurOpal.jpgFurOtter.jpgFurSable.jpgFurWhite.jpgFurWolfDark.jpgFurWolfGrey.jpgFurWolfLizard.jpgFurWolfSnow.jpgGi.pngGiBottom.pngGiTeared.pngGiTop.pngGrassBox.jpgGrassDirt.jpgGrassDirt2.jpgHawk.pngHeadBand.pngHeightMap.pngKnife.pngLeaf.pngLeatherArmor.pngLeatherPants.pngLeatherWristLeft.pngLeatherWristRight.pngLogo.pngLongSleeve.pngLugaru.pngMapArrow.pngMapBox.pngMapCircle.pngMask.pngMossRock.jpgNewGame.pngOptions.pngPants.pngQuit.pngResume.pngRock.jpgRock2.jpgSand.jpgSandSlope.jpgScar.pngShadow.pngShine.pngShirt.pngShirtFemale.png
Skybox(grass)
Skybox(sand)
Skybox(snow)
Smoke.pngSnow.jpgSnow.pngSnowBox.jpgSnowFlake.pngSnowTree.pngSplinter.pngStaff.jpgSword.jpgSwordBlood.jpgSwordBloodLight.jpgTooth.pngTree.pngWireframe.jpgWolfBloodFur.pngWorld.pngempire
temple
Dist
Docs
Misc
README.mdRELEASE-NOTES.mdSource
Animation
Animation.cppAnimation.defAnimation.hppJoint.cppJoint.hppMuscle.cppMuscle.hppSkeleton.cppSkeleton.hpp
Audio
Devtools
Environment
Game.cppGame.hppGameDraw.cppGameInitDispose.cppGameTick.cppGlobals.cppGraphic
Decal.cppDecal.hppModels.cppModels.hppSprite.cppSprite.hppStereo.cppStereo.hppText.cppText.hppTexture.cppTexture.hppgamegl.hpp
Level
Awards.cppAwards.defAwards.hppBonuses.defCampaign.cppCampaign.hppDialog.cppDialog.hppHotspot.cppHotspot.hpp
Lugaru.rcMath
Menu
Objects
Platform
Thirdparty
Tutorial.cppTutorial.hppUser
Utils
Folders.cppFolders.hppImageIO.cppImageIO.hppInput.cppInput.hppbinio.hpack.cprivate.cprivate.hunpack.c
Version.hpp.inmain.cpp
28
lugaru/.appveyor.yml
Normal file
28
lugaru/.appveyor.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# This is pretty useless, but it sets the version of the build
|
||||||
|
version: 0.0.0.build.{build}
|
||||||
|
|
||||||
|
# Force configuration
|
||||||
|
configuration: Debug
|
||||||
|
|
||||||
|
# Use Visual Studio 2015 base image
|
||||||
|
image: Visual Studio 2015
|
||||||
|
|
||||||
|
# enforce the location, since we want predictable cmake things
|
||||||
|
clone_folder: c:\projects\osslugaru\lugaru
|
||||||
|
|
||||||
|
# Build for 32-bit and 64-bit
|
||||||
|
platform:
|
||||||
|
- Win32
|
||||||
|
- Win64
|
||||||
|
|
||||||
|
# Prep work (CMake VS project generation)
|
||||||
|
before_build:
|
||||||
|
- cd c:\projects\osslugaru\lugaru
|
||||||
|
- set PATH=C:\Program Files (x86)\MSBuild\14.0\BIN;%PATH%
|
||||||
|
- if %PLATFORM% == Win32 cmake . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=C:\projects\osslugaru\lugaru\msvc32-build
|
||||||
|
- if %PLATFORM% == Win64 cmake . -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=C:\projects\osslugaru\lugaru\msvc64-build
|
||||||
|
|
||||||
|
# Tell it what to build
|
||||||
|
build:
|
||||||
|
project: lugaru.sln
|
||||||
|
parallel: true
|
30
lugaru/.clang-format
Normal file
30
lugaru/.clang-format
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
BasedOnStyle: Mozilla
|
||||||
|
---
|
||||||
|
Language: Cpp
|
||||||
|
AccessModifierOffset: -4
|
||||||
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
AlwaysBreakAfterDefinitionReturnType: None
|
||||||
|
AlwaysBreakAfterReturnType: None
|
||||||
|
AlignAfterOpenBracket: true
|
||||||
|
AlignOperands: true
|
||||||
|
ColumnLimit: 0
|
||||||
|
ConstructorInitializerIndentWidth: 4
|
||||||
|
ContinuationIndentWidth: 4
|
||||||
|
IndentWidth: 4
|
||||||
|
SpacesInCStyleCastParentheses: false
|
||||||
|
Standard: Cpp11
|
||||||
|
BreakBeforeBraces: Custom
|
||||||
|
BraceWrapping:
|
||||||
|
AfterClass: true
|
||||||
|
AfterControlStatement: false
|
||||||
|
AfterEnum: true
|
||||||
|
AfterFunction: true
|
||||||
|
AfterNamespace: true
|
||||||
|
AfterObjCDeclaration: false
|
||||||
|
AfterStruct: true
|
||||||
|
AfterUnion: true
|
||||||
|
BeforeCatch: false
|
||||||
|
BeforeElse: false
|
||||||
|
IndentBraces: false
|
||||||
|
...
|
14
lugaru/.doozer.json
Normal file
14
lugaru/.doozer.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"targets": {
|
||||||
|
"centos7-x86_64": {
|
||||||
|
"buildenv": "centos7-x86_64",
|
||||||
|
"builddeps": ["/usr/bin/cmake3", "pkgconfig(libjpeg)", "pkgconfig(openal)", "pkgconfig(sdl2)", "pkgconfig(glu)", "pkgconfig(libpng)", "pkgconfig(zlib)", "pkgconfig(vorbis)", "pkgconfig(vorbisfile)", "pkgconfig(ogg)", "make"],
|
||||||
|
"buildcmd": ["cmake3 . -DCMAKE_INSTALL_PREFIX=/opt/osslugaru/lugaru/gcc-build", "make -j4"]
|
||||||
|
},
|
||||||
|
"macosx": {
|
||||||
|
"buildenv": "osx",
|
||||||
|
"buildcmd": ["cmake . -DCMAKE_INSTALL_PREFIX=/opt/osslugaru/lugaru/gcc-build", "make -j4"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
4
lugaru/.gitattributes
vendored
Normal file
4
lugaru/.gitattributes
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
*.cpp eol=lf
|
||||||
|
*.h eol=lf
|
||||||
|
*.md eol=lf
|
||||||
|
*.txt eol=lf
|
20
lugaru/.gitignore
vendored
Normal file
20
lugaru/.gitignore
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
bin
|
||||||
|
run
|
||||||
|
Xcode/build
|
||||||
|
Xcode/*.xcodeproj/*.mode1v3
|
||||||
|
Xcode/*.xcodeproj/*.pbxuser
|
||||||
|
build*
|
||||||
|
*~
|
||||||
|
.*.swp
|
||||||
|
*.aps
|
||||||
|
lugaru
|
||||||
|
lugaru.exe
|
||||||
|
cmake_install.cmake
|
||||||
|
cmake-build
|
||||||
|
CMakeFiles
|
||||||
|
CMakeCache.txt
|
||||||
|
Makefile
|
||||||
|
cscope.*
|
||||||
|
Data/users
|
||||||
|
Data/config.txt
|
||||||
|
Source/Version.hpp
|
113
lugaru/.gitlab-ci.yml
Normal file
113
lugaru/.gitlab-ci.yml
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
image: fedora:latest
|
||||||
|
|
||||||
|
cache:
|
||||||
|
key: dnf-cache
|
||||||
|
paths:
|
||||||
|
- dnf-cache/
|
||||||
|
|
||||||
|
variables:
|
||||||
|
YUMDNF: dnf
|
||||||
|
EXTRA_REPO_INST_COMMAND: /bin/true
|
||||||
|
EXTRA_REPO_CONFIGURE_COMMAND: /bin/true
|
||||||
|
CMAKE_PACKAGE: "/usr/bin/cmake"
|
||||||
|
DEPENDENCY_PACKAGES: "pkgconfig(openal) pkgconfig(sdl2) pkgconfig(glu) pkgconfig(libpng) pkgconfig(libjpeg) pkgconfig(vorbis) pkgconfig(vorbisfile) pkgconfig(ogg) pkgconfig(jsoncpp)"
|
||||||
|
COMMON_PACKAGES: "$COMPILER_PACKAGES $CMAKE_PACKAGE make $DEPENDENCY_PACKAGES"
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- $EXTRA_REPO_INST_COMMAND
|
||||||
|
- $EXTRA_REPO_CONFIGURE_COMMAND
|
||||||
|
- $YUMDNF --setopt=cachedir=`pwd`/${YUMDNF}-cache --quiet --assumeyes install $COMMON_PACKAGES
|
||||||
|
|
||||||
|
build_oldgcc:
|
||||||
|
image: centos:8
|
||||||
|
cache:
|
||||||
|
key: yum-cache
|
||||||
|
paths:
|
||||||
|
- yum-cache/
|
||||||
|
variables:
|
||||||
|
YUMDNF: yum
|
||||||
|
EXTRA_REPO_INST_COMMAND: "yum --setopt=cachedir=`pwd`/yum-cache --quiet --assumeyes install epel-release yum-utils"
|
||||||
|
EXTRA_REPO_CONFIGURE_COMMAND: "yum-config-manager --enable PowerTools"
|
||||||
|
CMAKE_PACKAGE: "/usr/bin/cmake3"
|
||||||
|
COMPILER_PACKAGES: "gcc gcc-c++"
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- export CC=gcc; export CXX=g++
|
||||||
|
- mkdir -p x86_64-linux-gnu-oldgcc oldgcc-build; cd x86_64-linux-gnu-oldgcc
|
||||||
|
- cmake3 .. -DCMAKE_INSTALL_PREFIX=/builds/${CI_PROJECT_PATH}/oldgcc-build
|
||||||
|
- make -j4; make install
|
||||||
|
artifacts:
|
||||||
|
expire_in: 14d
|
||||||
|
paths:
|
||||||
|
- ./oldgcc-build
|
||||||
|
tags:
|
||||||
|
- shared
|
||||||
|
|
||||||
|
build_gcc:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
COMPILER_PACKAGES: "gcc gcc-c++"
|
||||||
|
script:
|
||||||
|
- export CC=gcc; export CXX=g++
|
||||||
|
- mkdir -p x86_64-linux-gnu-gcc gcc-build; cd x86_64-linux-gnu-gcc
|
||||||
|
- cmake .. -DCMAKE_INSTALL_PREFIX=/builds/${CI_PROJECT_PATH}/gcc-build
|
||||||
|
- make -j4; make install
|
||||||
|
artifacts:
|
||||||
|
expire_in: 14d
|
||||||
|
paths:
|
||||||
|
- ./gcc-build
|
||||||
|
tags:
|
||||||
|
- shared
|
||||||
|
|
||||||
|
build_clang:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
COMPILER_PACKAGES: "clang"
|
||||||
|
script:
|
||||||
|
- export CC=clang; export CXX=clang++
|
||||||
|
- mkdir -p x86_64-linux-gnu-clang clang-build; cd x86_64-linux-gnu-clang
|
||||||
|
- cmake .. -DCMAKE_INSTALL_PREFIX=/builds/${CI_PROJECT_PATH}/clang-build
|
||||||
|
- make -j4; make install
|
||||||
|
artifacts:
|
||||||
|
expire_in: 14d
|
||||||
|
paths:
|
||||||
|
- ./clang-build
|
||||||
|
tags:
|
||||||
|
- shared
|
||||||
|
|
||||||
|
build_mingw32:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
COMPILER_PACKAGES: "mingw32-gcc mingw32-gcc-c++ mingw32-binutils mingw32-headers"
|
||||||
|
DEPENDENCY_PACKAGES: "mingw32-libjpeg-turbo mingw32-libpng mingw32-SDL2 mingw32-libvorbis mingw32-libogg mingw32-openal-soft mingw32-jsoncpp"
|
||||||
|
script:
|
||||||
|
- export PKG_CONFIG_LIBDIR="/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig"
|
||||||
|
- export PATH=/usr/i686-w64-mingw32/bin:$PATH
|
||||||
|
- mkdir -p i686-w64-mingw32 mingw32-build; cd i686-w64-mingw32
|
||||||
|
- cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=/builds/${CI_PROJECT_PATH}/mingw32-build
|
||||||
|
- make -j4; make install
|
||||||
|
artifacts:
|
||||||
|
expire_in: 14d
|
||||||
|
paths:
|
||||||
|
- ./mingw32-build
|
||||||
|
tags:
|
||||||
|
- shared
|
||||||
|
|
||||||
|
build_mingw64:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
COMPILER_PACKAGES: "mingw64-gcc mingw64-gcc-c++ mingw64-binutils mingw64-headers"
|
||||||
|
DEPENDENCY_PACKAGES: "mingw64-libjpeg-turbo mingw64-libpng mingw64-SDL2 mingw64-libvorbis mingw64-libogg mingw64-openal-soft mingw64-jsoncpp"
|
||||||
|
script:
|
||||||
|
- export PKG_CONFIG_LIBDIR="/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig"
|
||||||
|
- export PATH=/usr/x86_64-w64-mingw32/bin:$PATH
|
||||||
|
- mkdir -p x86_64-w64-mingw32 mingw64-build; cd x86_64-w64-mingw32
|
||||||
|
- cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw64.cmake -DCMAKE_INSTALL_PREFIX=/builds/${CI_PROJECT_PATH}/mingw64-build
|
||||||
|
- make -j4; make install
|
||||||
|
artifacts:
|
||||||
|
expire_in: 14d
|
||||||
|
paths:
|
||||||
|
- ./mingw64-build
|
||||||
|
tags:
|
||||||
|
- shared
|
||||||
|
|
18
lugaru/AUTHORS
Normal file
18
lugaru/AUTHORS
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Original developer:
|
||||||
|
|
||||||
|
David Rosen, Wolfire Games
|
||||||
|
|
||||||
|
Contributors to the open source project, in alphabetical order:
|
||||||
|
|
||||||
|
Alexander Monakov
|
||||||
|
Côme Chilliet (MCMic)
|
||||||
|
David Rosen
|
||||||
|
Harley Laue
|
||||||
|
Jendraz
|
||||||
|
Neal Gompa
|
||||||
|
Philtron R.
|
||||||
|
Rémi Verschelde (akien)
|
||||||
|
Ryan C. Gordon (icculus)
|
||||||
|
sf17k
|
||||||
|
Silb
|
||||||
|
Vadim Trochinsky
|
347
lugaru/CMakeLists.txt
Normal file
347
lugaru/CMakeLists.txt
Normal file
@ -0,0 +1,347 @@
|
|||||||
|
project(lugaru)
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
|
include(FindPkgConfig)
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
|
||||||
|
### Helpers
|
||||||
|
|
||||||
|
set(SRCDIR "${CMAKE_CURRENT_SOURCE_DIR}/Source")
|
||||||
|
|
||||||
|
if(UNIX AND NOT APPLE)
|
||||||
|
set(LINUX TRUE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
### CMake config
|
||||||
|
|
||||||
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
|
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
||||||
|
endif()
|
||||||
|
message(STATUS "CMake build type: ${CMAKE_BUILD_TYPE}")
|
||||||
|
|
||||||
|
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-parentheses -pedantic --std=gnu++11 ${CMAKE_CXX_FLAGS}")
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Build architectures for OSX")
|
||||||
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11" CACHE STRING
|
||||||
|
"Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value")
|
||||||
|
set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.11.sdk" CACHE PATH
|
||||||
|
"The product will be built against the headers and libraries located inside the indicated SDK.")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(WIN32 AND MINGW)
|
||||||
|
# Recent mingw requires this, see https://sourceforge.net/p/mingw-w64/bugs/818/
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(LINUX)
|
||||||
|
option(SYSTEM_INSTALL "Enable system-wide installation, with hardcoded data directory defined with CMAKE_INSTALL_DATADIR" OFF)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
### Version
|
||||||
|
|
||||||
|
# Version for the current (stable) or next (development) release
|
||||||
|
set(LUGARU_VERSION_MAJOR 1)
|
||||||
|
set(LUGARU_VERSION_MINOR 3)
|
||||||
|
set(LUGARU_VERSION_PATCH 0)
|
||||||
|
|
||||||
|
# MAJOR.MINOR, or MAJOR.MINOR.PATCH if PATCH != 0
|
||||||
|
set(LUGARU_VERSION_NUMBER "${LUGARU_VERSION_MAJOR}.${LUGARU_VERSION_MINOR}")
|
||||||
|
if(LUGARU_VERSION_PATCH)
|
||||||
|
set(LUGARU_VERSION_NUMBER "${LUGARU_VERSION_NUMBER}.${LUGARU_VERSION_PATCH}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Set to "" for stable (tagged) builds, "-dev" for dev builds
|
||||||
|
set(LUGARU_VERSION_SUFFIX "-dev") # development
|
||||||
|
#set(LUGARU_VERSION_SUFFIX "") # stable
|
||||||
|
|
||||||
|
# Set to 7-char git commit hash if available, otherwise "".
|
||||||
|
# On stable (tagged) builds, this is ignored.
|
||||||
|
set(LUGARU_VERSION_HASH "")
|
||||||
|
if(LUGARU_VERSION_SUFFIX STREQUAL "-dev" AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
|
||||||
|
find_package(Git)
|
||||||
|
if(GIT_FOUND)
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
|
||||||
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
|
OUTPUT_VARIABLE "LUGARU_VERSION_HASH"
|
||||||
|
ERROR_QUIET
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
message(STATUS "Git commit hash: ${LUGARU_VERSION_HASH}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(LUGARU_VERSION_RELEASE "" CACHE STRING "Optional release string, e.g. for distro packages release number")
|
||||||
|
|
||||||
|
# Final string built from the above constants, following the scheme:
|
||||||
|
# MAJOR.MINOR[.PATCH][-dev] [(git HASH)] [[RELEASE]]
|
||||||
|
set(LUGARU_VERSION_STRING "${LUGARU_VERSION_NUMBER}${LUGARU_VERSION_SUFFIX}")
|
||||||
|
if(NOT LUGARU_VERSION_HASH STREQUAL "")
|
||||||
|
set(LUGARU_VERSION_STRING "${LUGARU_VERSION_STRING} (git ${LUGARU_VERSION_HASH})")
|
||||||
|
endif()
|
||||||
|
if(NOT LUGARU_VERSION_RELEASE STREQUAL "")
|
||||||
|
set(LUGARU_VERSION_STRING "${LUGARU_VERSION_STRING} [${LUGARU_VERSION_RELEASE}]")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Version string: ${LUGARU_VERSION_STRING}")
|
||||||
|
configure_file(${SRCDIR}/Version.hpp.in ${SRCDIR}/Version.hpp ESCAPE_QUOTES @ONLY)
|
||||||
|
|
||||||
|
|
||||||
|
### Sources
|
||||||
|
|
||||||
|
set(LUGARU_SRCS
|
||||||
|
${SRCDIR}/main.cpp
|
||||||
|
${SRCDIR}/Animation/Animation.cpp
|
||||||
|
${SRCDIR}/Animation/Joint.cpp
|
||||||
|
${SRCDIR}/Animation/Muscle.cpp
|
||||||
|
${SRCDIR}/Animation/Skeleton.cpp
|
||||||
|
${SRCDIR}/Audio/openal_wrapper.cpp
|
||||||
|
${SRCDIR}/Audio/Sounds.cpp
|
||||||
|
${SRCDIR}/Devtools/ConsoleCmds.cpp
|
||||||
|
${SRCDIR}/Environment/Lights.cpp
|
||||||
|
${SRCDIR}/Environment/Skybox.cpp
|
||||||
|
${SRCDIR}/Environment/Terrain.cpp
|
||||||
|
${SRCDIR}/Graphic/Decal.cpp
|
||||||
|
${SRCDIR}/Graphic/Models.cpp
|
||||||
|
${SRCDIR}/Graphic/Sprite.cpp
|
||||||
|
${SRCDIR}/Graphic/Stereo.cpp
|
||||||
|
${SRCDIR}/Graphic/Text.cpp
|
||||||
|
${SRCDIR}/Graphic/Texture.cpp
|
||||||
|
${SRCDIR}/Level/Awards.cpp
|
||||||
|
${SRCDIR}/Level/Campaign.cpp
|
||||||
|
${SRCDIR}/Level/Dialog.cpp
|
||||||
|
${SRCDIR}/Level/Hotspot.cpp
|
||||||
|
${SRCDIR}/Math/Frustum.cpp
|
||||||
|
${SRCDIR}/Math/XYZ.cpp
|
||||||
|
${SRCDIR}/Menu/Menu.cpp
|
||||||
|
${SRCDIR}/Objects/Object.cpp
|
||||||
|
${SRCDIR}/Objects/Person.cpp
|
||||||
|
${SRCDIR}/Objects/PersonType.cpp
|
||||||
|
${SRCDIR}/Objects/Weapons.cpp
|
||||||
|
${SRCDIR}/Platform/PlatformUnix.cpp
|
||||||
|
${SRCDIR}/Platform/PlatformWindows.cpp
|
||||||
|
${SRCDIR}/User/Account.cpp
|
||||||
|
${SRCDIR}/User/Settings.cpp
|
||||||
|
${SRCDIR}/Utils/Folders.cpp
|
||||||
|
${SRCDIR}/Utils/ImageIO.cpp
|
||||||
|
${SRCDIR}/Utils/Input.cpp
|
||||||
|
${SRCDIR}/Utils/pack.c
|
||||||
|
${SRCDIR}/Utils/private.c
|
||||||
|
${SRCDIR}/Utils/unpack.c
|
||||||
|
${SRCDIR}/Game.cpp
|
||||||
|
${SRCDIR}/GameDraw.cpp
|
||||||
|
${SRCDIR}/GameInitDispose.cpp
|
||||||
|
${SRCDIR}/GameTick.cpp
|
||||||
|
${SRCDIR}/Globals.cpp
|
||||||
|
${SRCDIR}/Tutorial.cpp
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
set(LUGARU_H
|
||||||
|
${SRCDIR}/Animation/Animation.hpp
|
||||||
|
${SRCDIR}/Animation/Joint.hpp
|
||||||
|
${SRCDIR}/Animation/Muscle.hpp
|
||||||
|
${SRCDIR}/Animation/Skeleton.hpp
|
||||||
|
${SRCDIR}/Audio/openal_wrapper.hpp
|
||||||
|
${SRCDIR}/Audio/Sounds.hpp
|
||||||
|
${SRCDIR}/Devtools/ConsoleCmds.hpp
|
||||||
|
${SRCDIR}/Environment/Lights.hpp
|
||||||
|
${SRCDIR}/Environment/Skybox.hpp
|
||||||
|
${SRCDIR}/Environment/Terrain.hpp
|
||||||
|
${SRCDIR}/Graphic/Decal.hpp
|
||||||
|
${SRCDIR}/Graphic/gamegl.hpp
|
||||||
|
${SRCDIR}/Graphic/Models.hpp
|
||||||
|
${SRCDIR}/Graphic/Sprite.hpp
|
||||||
|
${SRCDIR}/Graphic/Stereo.hpp
|
||||||
|
${SRCDIR}/Graphic/Text.hpp
|
||||||
|
${SRCDIR}/Graphic/Texture.hpp
|
||||||
|
${SRCDIR}/Level/Campaign.hpp
|
||||||
|
${SRCDIR}/Level/Dialog.hpp
|
||||||
|
${SRCDIR}/Level/Hotspot.hpp
|
||||||
|
${SRCDIR}/Math/Frustum.hpp
|
||||||
|
${SRCDIR}/Math/XYZ.hpp
|
||||||
|
${SRCDIR}/Math/Random.hpp
|
||||||
|
${SRCDIR}/Menu/Menu.hpp
|
||||||
|
${SRCDIR}/Objects/Object.hpp
|
||||||
|
${SRCDIR}/Objects/Person.hpp
|
||||||
|
${SRCDIR}/Objects/PersonType.hpp
|
||||||
|
${SRCDIR}/Objects/Weapons.hpp
|
||||||
|
${SRCDIR}/Platform/Platform.hpp
|
||||||
|
${SRCDIR}/Thirdparty/optionparser.h
|
||||||
|
${SRCDIR}/User/Account.hpp
|
||||||
|
${SRCDIR}/User/Settings.hpp
|
||||||
|
${SRCDIR}/Utils/binio.h
|
||||||
|
${SRCDIR}/Utils/Folders.hpp
|
||||||
|
${SRCDIR}/Utils/ImageIO.hpp
|
||||||
|
${SRCDIR}/Utils/Input.hpp
|
||||||
|
${SRCDIR}/Utils/private.h
|
||||||
|
${SRCDIR}/Game.hpp
|
||||||
|
${SRCDIR}/Tutorial.hpp
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
set(LUGARU_OBJS "")
|
||||||
|
if(WIN32)
|
||||||
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Lugaru.res
|
||||||
|
COMMAND ${CMAKE_RC_COMPILER}
|
||||||
|
-o ${CMAKE_CURRENT_BINARY_DIR}/Lugaru.res
|
||||||
|
-i${SRCDIR}/Lugaru.rc
|
||||||
|
DEPENDS ${SRCDIR}/Lugaru.rc
|
||||||
|
)
|
||||||
|
set(LUGARU_OBJS "Lugaru.res")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
set(PLATFORM_LIBS "-framework Carbon -framework Cocoa -framework OpenGL -framework OpenAL")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
# TODO: Work on supporting "GLVND" instead.
|
||||||
|
set(OpenGL_GL_PREFERENCE LEGACY)
|
||||||
|
find_package(OpenGL REQUIRED)
|
||||||
|
|
||||||
|
# Windows is funky about OpenAL detection
|
||||||
|
if(WIN32)
|
||||||
|
pkg_check_modules(OPENAL openal REQUIRED)
|
||||||
|
set(OPENAL_LIBRARY ${OPENAL_LIBRARIES})
|
||||||
|
else()
|
||||||
|
find_package(OpenAL REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# macOS has problems with using pkgconfig to find SDL2
|
||||||
|
if(APPLE)
|
||||||
|
find_package(sdl2 REQUIRED)
|
||||||
|
else()
|
||||||
|
pkg_check_modules(SDL2 sdl2 REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_package(PNG REQUIRED)
|
||||||
|
find_package(JPEG REQUIRED)
|
||||||
|
|
||||||
|
pkg_check_modules(VORBISFILE vorbisfile REQUIRED)
|
||||||
|
pkg_check_modules(JSONCPP jsoncpp REQUIRED)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${OPENAL_INCLUDE_DIR}
|
||||||
|
${JPEG_INCLUDE_DIR}
|
||||||
|
${PNG_INCLUDE_DIR}
|
||||||
|
${OPENGL_INCLUDE_DIR}
|
||||||
|
${SDL2_INCLUDE_DIRS}
|
||||||
|
${VORBISFILE_INCLUDE_DIR}
|
||||||
|
${JSONCPP_INCLUDE_DIRS}
|
||||||
|
${CMAKE_SOURCE_DIR}/Source
|
||||||
|
)
|
||||||
|
|
||||||
|
set(LUGARU_LIBS ${OPENAL_LIBRARY} ${PNG_LIBRARY} ${JPEG_LIBRARY} ${SDL2_LIBRARIES} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ${VORBISFILE_LIBRARIES} ${JSONCPP_LIBRARIES} ${PLATFORM_LIBS})
|
||||||
|
|
||||||
|
|
||||||
|
### Definitions
|
||||||
|
|
||||||
|
add_executable(lugaru ${LUGARU_SRCS} ${LUGARU_H} ${LUGARU_OBJS})
|
||||||
|
target_link_libraries(lugaru ${LUGARU_LIBS})
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
add_definitions(-DBinIO_STDINT_HEADER=<stdint.h>)
|
||||||
|
if(MINGW)
|
||||||
|
# An alternative would be to use _WIN32 consistently instead of WIN32
|
||||||
|
add_definitions(-DWIN32)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
add_definitions(-DPLATFORM_LINUX=1 -DPLATFORM_UNIX=1 -DBinIO_STDINT_HEADER=<stdint.h>)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
if(NOT CMAKE_INSTALL_PREFIX AND WIN32)
|
||||||
|
set(CMAKE_INSTALL_PREFIX "C:/Lugaru")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# OS-specific installation paths
|
||||||
|
|
||||||
|
set(LUGARU_DOCDIR ${CMAKE_INSTALL_PREFIX})
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
set(LUGARU_APP_ROOT ${CMAKE_INSTALL_PREFIX}/Lugaru.app)
|
||||||
|
set(LUGARU_BINDIR ${LUGARU_APP_ROOT}/Contents/MacOS)
|
||||||
|
set(LUGARU_RESDIR ${LUGARU_APP_ROOT}/Contents/Resources)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Actual installation instructions
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru.exe DESTINATION ${CMAKE_INSTALL_PREFIX})
|
||||||
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${CMAKE_INSTALL_PREFIX})
|
||||||
|
if(MINGW)
|
||||||
|
set(DLL_ROOT ${CMAKE_FIND_ROOT_PATH}/bin)
|
||||||
|
# We need the shared libgcc, but it can have different names based on arch/config/version.
|
||||||
|
# Ideally we'd check what our deps and lugaru.exe actually require, but for now it's a hack.
|
||||||
|
# Based off Mageia/Fedora MinGW toolchain, might not work on other distros or Windows
|
||||||
|
if(EXISTS ${DLL_ROOT}/libgcc_s_seh-1.dll)
|
||||||
|
set(LIBGCC_S libgcc_s_seh-1.dll)
|
||||||
|
elseif(EXISTS ${DLL_ROOT}/libgcc_s_dw2-1.dll)
|
||||||
|
set(LIBGCC_S libgcc_s_dw2-1.dll)
|
||||||
|
elseif(EXISTS ${DLL_ROOT}/libgcc_s_sjlj-1.dll)
|
||||||
|
set(LIBGCC_S libgcc_s_sjlj-1.dll)
|
||||||
|
endif()
|
||||||
|
# FIXME: Filter out unneeded DLLs when building against some internal deps
|
||||||
|
install(FILES ${DLL_ROOT}/${LIBGCC_S}
|
||||||
|
${DLL_ROOT}/libjpeg-62.dll
|
||||||
|
${DLL_ROOT}/libjsoncpp.dll
|
||||||
|
${DLL_ROOT}/libogg-0.dll
|
||||||
|
${DLL_ROOT}/libpng16-16.dll
|
||||||
|
${DLL_ROOT}/libssp-0.dll
|
||||||
|
${DLL_ROOT}/libstdc++-6.dll
|
||||||
|
${DLL_ROOT}/libvorbis-0.dll
|
||||||
|
${DLL_ROOT}/libvorbisfile-3.dll
|
||||||
|
${DLL_ROOT}/libwinpthread-1.dll
|
||||||
|
${DLL_ROOT}/OpenAL32.dll
|
||||||
|
${DLL_ROOT}/SDL2.dll
|
||||||
|
${DLL_ROOT}/zlib1.dll
|
||||||
|
DESTINATION ${CMAKE_INSTALL_PREFIX})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(LINUX)
|
||||||
|
if(SYSTEM_INSTALL)
|
||||||
|
add_definitions(-DDATA_DIR="${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}")
|
||||||
|
set(LUGARU_DOCDIR ${CMAKE_INSTALL_DOCDIR})
|
||||||
|
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
# Trailing '/' is significant, it installs and _renames_ Data/ as the destination folder
|
||||||
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data/ DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/Dist/Linux/lugaru.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/Dist/Linux/lugaru.metainfo.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo)
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/Dist/Linux/lugaru.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps)
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/Dist/Linux/lugaru.6 DESTINATION ${CMAKE_INSTALL_MANDIR}/man6)
|
||||||
|
else()
|
||||||
|
message("You are building Lugaru without having enabled the SYSTEM_INSTALL option. It will default to looking for the data in the 'Data' directory next to the binary.")
|
||||||
|
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru DESTINATION ${CMAKE_INSTALL_PREFIX})
|
||||||
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${CMAKE_INSTALL_PREFIX})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru DESTINATION ${LUGARU_BINDIR})
|
||||||
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${LUGARU_APP_ROOT})
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/Dist/OSX/Lugaru.icns DESTINATION ${LUGARU_RESDIR})
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/Dist/OSX/Info.plist DESTINATION ${LUGARU_APP_ROOT}/Contents)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/AUTHORS
|
||||||
|
${CMAKE_SOURCE_DIR}/CONTENT-LICENSE.txt
|
||||||
|
${CMAKE_SOURCE_DIR}/COPYING.txt
|
||||||
|
${CMAKE_SOURCE_DIR}/README.md
|
||||||
|
${CMAKE_SOURCE_DIR}/RELEASE-NOTES.md
|
||||||
|
${CMAKE_SOURCE_DIR}/Docs/DEVTOOLS.txt
|
||||||
|
${CMAKE_SOURCE_DIR}/Docs/README.Empire.txt
|
||||||
|
${CMAKE_SOURCE_DIR}/Docs/README.SevenTasks.txt
|
||||||
|
${CMAKE_SOURCE_DIR}/Docs/README.Temple.txt
|
||||||
|
DESTINATION ${LUGARU_DOCDIR})
|
113
lugaru/COMPILING.md
Normal file
113
lugaru/COMPILING.md
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
# Compiling
|
||||||
|
|
||||||
|
As it stands, the version of Lugaru in this repository supports Linux, OSX
|
||||||
|
and Windows. Not all toolchains are tested, thus we would welcome help from
|
||||||
|
new contributors especially regarding MSVC and OSX support.
|
||||||
|
|
||||||
|
## Common dependencies
|
||||||
|
|
||||||
|
You will need the following development libraries and tools, usually
|
||||||
|
available via your package manager (dnf, urpmi, apt, brew, etc.):
|
||||||
|
|
||||||
|
- CMake
|
||||||
|
- SDL2
|
||||||
|
- Mesa OpenGL Utility library (GLU)
|
||||||
|
- LibJPEG (TurboJPEG)
|
||||||
|
- LibPNG
|
||||||
|
- OpenAL Soft
|
||||||
|
- Ogg, Vorbis and Vorbisfile
|
||||||
|
|
||||||
|
## GNU/Linux
|
||||||
|
|
||||||
|
Both GCC and Clang are supported as compilers. Define the `CC` and `CXX` env
|
||||||
|
variables according to the compiler you want to use, if not the default one.
|
||||||
|
Then build with:
|
||||||
|
|
||||||
|
```
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
The resulting `lugaru` binary will expect to find the `Data/` folder next to
|
||||||
|
it, so either copy `build/lugaru` in the main directory, or create a symbolic
|
||||||
|
link to run the game.
|
||||||
|
|
||||||
|
### Packaging
|
||||||
|
|
||||||
|
If you want to package Lugaru for a GNU/Linux distribution, or if you want to
|
||||||
|
install it system-wide locally, you need to set the `SYSTEM_INSTALL` CMake
|
||||||
|
option, and (optionally) define the CMAKE_INSTALL_BINDIR and _DATADIR if they
|
||||||
|
differ from the default ones (`bin` and `share` appended to the prefix).
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake -DSYSTEM_INSTALL=ON \
|
||||||
|
-DCMAKE_INSTALL_BINDIR=games \
|
||||||
|
-DCMAKE_INSTALL_DATADIR=share/games \
|
||||||
|
..
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
|
|
||||||
|
## Mac OSX
|
||||||
|
|
||||||
|
The instructions are similar to the GNU/Linux ones, provided you have
|
||||||
|
installed Xcode and the required dependencies (e.g. via homebrew).
|
||||||
|
|
||||||
|
## Windows
|
||||||
|
|
||||||
|
As of now, only MinGW32 and MinGW64 are supported, and were only tested by
|
||||||
|
cross-compiling from Linux.
|
||||||
|
|
||||||
|
### MSVC
|
||||||
|
|
||||||
|
Help needed :)
|
||||||
|
|
||||||
|
### MinGW on Windows
|
||||||
|
|
||||||
|
Help needed :)
|
||||||
|
|
||||||
|
### Cross-compiling from Linux
|
||||||
|
|
||||||
|
Cross-compiling for Windows using MinGW32 and MinGW64 was tested on Fedora
|
||||||
|
and Mageia. The instructions may vary for other distros, do not hesitate to
|
||||||
|
send a merge request to update them if need be.
|
||||||
|
|
||||||
|
You will need to install the `mingw32-` or `mingw64-` variants of the
|
||||||
|
dependencies listed above.
|
||||||
|
|
||||||
|
#### MinGW32
|
||||||
|
|
||||||
|
First you will need to setup some environment variables:
|
||||||
|
```
|
||||||
|
export PKG_CONFIG_LIBDIR="/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig"
|
||||||
|
export PATH=/usr/i686-w64-mingw32/bin:$PATH
|
||||||
|
```
|
||||||
|
|
||||||
|
Then build:
|
||||||
|
```
|
||||||
|
mkdir build-mingw32 && cd build-mingw32
|
||||||
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=install
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
```
|
||||||
|
|
||||||
|
The `make install` step should copy the `Data/` and required DLLs from the
|
||||||
|
system to `build-mingw32/install`.
|
||||||
|
|
||||||
|
#### MinGW64
|
||||||
|
|
||||||
|
The instructions are similar to those for MinGW32:
|
||||||
|
|
||||||
|
```
|
||||||
|
export PKG_CONFIG_LIBDIR="/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig"
|
||||||
|
export PATH=/usr/x86_64-w64-mingw32/bin:$PATH
|
||||||
|
```
|
||||||
|
```
|
||||||
|
mkdir build-mingw64 && cd build-mingw64
|
||||||
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw64.cmake -DCMAKE_INSTALL_PREFIX=install
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
```
|
63
lugaru/CONTENT-LICENSE.txt
Normal file
63
lugaru/CONTENT-LICENSE.txt
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
# Lugaru assets licenses
|
||||||
|
|
||||||
|
## Wolfire assets (CC-BY-SA 3.0 Unported)
|
||||||
|
|
||||||
|
All assets from the original Lugaru game (including Lugaru HD assets)
|
||||||
|
are distributed under the Creative Commons Attribution-Share Alike license
|
||||||
|
in version 3.0 Unported (CC-BY-SA 3.0 Unported):
|
||||||
|
http://creativecommons.org/licenses/by-sa/3.0/
|
||||||
|
|
||||||
|
Attribution to Wolfire Games: http://www.wolfire.com
|
||||||
|
|
||||||
|
Those assets are all the files in the `Data` folder, except from the
|
||||||
|
ones listed below with different licenses or credits.
|
||||||
|
|
||||||
|
|
||||||
|
## OSS Lugaru assets (CC-BY-SA 4.0 International)
|
||||||
|
|
||||||
|
Data/Textures/ClFeng.png
|
||||||
|
Data/Textures/ClHuo.png
|
||||||
|
Data/Textures/ClShan.png
|
||||||
|
Data/Textures/ClShui.png
|
||||||
|
|
||||||
|
|
||||||
|
## Slib assets (CC-BY-SA 3.0 Unported)
|
||||||
|
|
||||||
|
https://web.archive.org/web/20161213062413/http://forums.wolfire.com/viewtopic.php?f=7&t=1066
|
||||||
|
|
||||||
|
These assets are from the Temple campaign by Slib under CC-BY-SA 3.0 Unported:
|
||||||
|
|
||||||
|
Data/Campaign/temple.txt
|
||||||
|
|
||||||
|
Data/Maps/sven*
|
||||||
|
|
||||||
|
Data/Textures/DesertCl.png
|
||||||
|
Data/Textures/GiTop.png
|
||||||
|
Data/Textures/GiTeared.png
|
||||||
|
Data/Textures/GiBottom.png
|
||||||
|
Data/Textures/Mask.png
|
||||||
|
Data/Textures/temple/World.png
|
||||||
|
|
||||||
|
|
||||||
|
## Jendraz assets (CC-BY-SA 4.0 International)
|
||||||
|
|
||||||
|
https://web.archive.org/web/20161213062036/http://forums.wolfire.com/viewtopic.php?f=7&t=3797
|
||||||
|
|
||||||
|
These assets are from the Empire campaign by Jendraz, licensed under CC-BY-SA
|
||||||
|
4.0 International:
|
||||||
|
|
||||||
|
Data/Campaigns/empire.txt
|
||||||
|
|
||||||
|
Data/Maps/jendraz*
|
||||||
|
|
||||||
|
|
||||||
|
## Philtron R. assets (CC-BY-SA 4.0 International)
|
||||||
|
|
||||||
|
https://web.archive.org/web/20161214063840/http://forums.wolfire.com/viewtopic.php?f=7&t=4633
|
||||||
|
|
||||||
|
These assets are from the Seven Tasks campaign by Philtron R., licensed under
|
||||||
|
CC-BY-SA 4.0 International:
|
||||||
|
|
||||||
|
Data/Campaign/seventasks.txt
|
||||||
|
|
||||||
|
Data/Maps/task*
|
339
lugaru/COPYING.txt
Normal file
339
lugaru/COPYING.txt
Normal file
@ -0,0 +1,339 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Lesser General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License.
|
BIN
lugaru/Data/Animations/BackFlip
Normal file
BIN
lugaru/Data/Animations/BackFlip
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/BackHandspring
Normal file
BIN
lugaru/Data/Animations/BackHandspring
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/BlockHighLeft
Normal file
BIN
lugaru/Data/Animations/BlockHighLeft
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/BlockHighLeftStrike
Normal file
BIN
lugaru/Data/Animations/BlockHighLeftStrike
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Climb
Normal file
BIN
lugaru/Data/Animations/Climb
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Crouch
Normal file
BIN
lugaru/Data/Animations/Crouch
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/CrouchDrawRight
Normal file
BIN
lugaru/Data/Animations/CrouchDrawRight
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/CrouchRemoveKnife
Normal file
BIN
lugaru/Data/Animations/CrouchRemoveKnife
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/CrouchStab
Normal file
BIN
lugaru/Data/Animations/CrouchStab
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Dead1
Normal file
BIN
lugaru/Data/Animations/Dead1
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Dead2
Normal file
BIN
lugaru/Data/Animations/Dead2
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Dead3
Normal file
BIN
lugaru/Data/Animations/Dead3
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Dead4
Normal file
BIN
lugaru/Data/Animations/Dead4
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/DodgeBack
Normal file
BIN
lugaru/Data/Animations/DodgeBack
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/DrawLeft
Normal file
BIN
lugaru/Data/Animations/DrawLeft
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/DrawRight
Normal file
BIN
lugaru/Data/Animations/DrawRight
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/DropKick
Normal file
BIN
lugaru/Data/Animations/DropKick
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Dying
Normal file
BIN
lugaru/Data/Animations/Dying
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/FightIdle
Normal file
BIN
lugaru/Data/Animations/FightIdle
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/FightSideStep
Normal file
BIN
lugaru/Data/Animations/FightSideStep
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Flip
Normal file
BIN
lugaru/Data/Animations/Flip
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/GetUpFromBack
Normal file
BIN
lugaru/Data/Animations/GetUpFromBack
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/GetUpFromFront
Normal file
BIN
lugaru/Data/Animations/GetUpFromFront
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/HangOn
Normal file
BIN
lugaru/Data/Animations/HangOn
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/HurtIdle
Normal file
BIN
lugaru/Data/Animations/HurtIdle
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Idle
Normal file
BIN
lugaru/Data/Animations/Idle
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/JumpCatch
Normal file
BIN
lugaru/Data/Animations/JumpCatch
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/JumpCaught
Normal file
BIN
lugaru/Data/Animations/JumpCaught
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/JumpDown
Normal file
BIN
lugaru/Data/Animations/JumpDown
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/JumpUp
Normal file
BIN
lugaru/Data/Animations/JumpUp
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Kill
Normal file
BIN
lugaru/Data/Animations/Kill
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/KnifeFightIdle
Normal file
BIN
lugaru/Data/Animations/KnifeFightIdle
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/KnifeSlashCatch
Normal file
BIN
lugaru/Data/Animations/KnifeSlashCatch
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/KnifeSlashCaught
Normal file
BIN
lugaru/Data/Animations/KnifeSlashCaught
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/KnifeSneakAttack
Normal file
BIN
lugaru/Data/Animations/KnifeSneakAttack
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/KnifeSneakAttacked
Normal file
BIN
lugaru/Data/Animations/KnifeSneakAttacked
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/KnifeThrow
Normal file
BIN
lugaru/Data/Animations/KnifeThrow
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/LandHard
Normal file
BIN
lugaru/Data/Animations/LandHard
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Landing
Normal file
BIN
lugaru/Data/Animations/Landing
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/LeftFlip
Normal file
BIN
lugaru/Data/Animations/LeftFlip
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/LowKick
Normal file
BIN
lugaru/Data/Animations/LowKick
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/RabbitKick
Normal file
BIN
lugaru/Data/Animations/RabbitKick
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/RabbitKickCatch
Normal file
BIN
lugaru/Data/Animations/RabbitKickCatch
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/RabbitKickCaught
Normal file
BIN
lugaru/Data/Animations/RabbitKickCaught
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/RabbitRunning
Normal file
BIN
lugaru/Data/Animations/RabbitRunning
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/RabbitTackle
Normal file
BIN
lugaru/Data/Animations/RabbitTackle
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/RabbitTackledBack
Normal file
BIN
lugaru/Data/Animations/RabbitTackledBack
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/RabbitTackledFront
Normal file
BIN
lugaru/Data/Animations/RabbitTackledFront
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/RabbitTackling
Normal file
BIN
lugaru/Data/Animations/RabbitTackling
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/RemoveKnife
Normal file
BIN
lugaru/Data/Animations/RemoveKnife
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/RightFlip
Normal file
BIN
lugaru/Data/Animations/RightFlip
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Roll
Normal file
BIN
lugaru/Data/Animations/Roll
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Run
Normal file
BIN
lugaru/Data/Animations/Run
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Sit
Normal file
BIN
lugaru/Data/Animations/Sit
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SlashFollow
Normal file
BIN
lugaru/Data/Animations/SlashFollow
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SlashFollowed
Normal file
BIN
lugaru/Data/Animations/SlashFollowed
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SlashStart
Normal file
BIN
lugaru/Data/Animations/SlashStart
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Sleep
Normal file
BIN
lugaru/Data/Animations/Sleep
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Sneak
Normal file
BIN
lugaru/Data/Animations/Sneak
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SneakAttack
Normal file
BIN
lugaru/Data/Animations/SneakAttack
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SneakAttacked
Normal file
BIN
lugaru/Data/Animations/SneakAttacked
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SpinKick
Normal file
BIN
lugaru/Data/Animations/SpinKick
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SpinKickCatch
Normal file
BIN
lugaru/Data/Animations/SpinKickCatch
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SpinKickCaught
Normal file
BIN
lugaru/Data/Animations/SpinKickCaught
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SpinWhack
Normal file
BIN
lugaru/Data/Animations/SpinWhack
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SpinWhackCatch
Normal file
BIN
lugaru/Data/Animations/SpinWhackCatch
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SpinWhackCaught
Normal file
BIN
lugaru/Data/Animations/SpinWhackCaught
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/StaffGroundSmash
Normal file
BIN
lugaru/Data/Animations/StaffGroundSmash
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/StaffHit
Normal file
BIN
lugaru/Data/Animations/StaffHit
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/StaffHitCatch
Normal file
BIN
lugaru/Data/Animations/StaffHitCatch
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/StaffHitCaught
Normal file
BIN
lugaru/Data/Animations/StaffHitCaught
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/StaggerBackHard
Normal file
BIN
lugaru/Data/Animations/StaggerBackHard
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/StaggerBackHigh
Normal file
BIN
lugaru/Data/Animations/StaggerBackHigh
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Stop
Normal file
BIN
lugaru/Data/Animations/Stop
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Sweep
Normal file
BIN
lugaru/Data/Animations/Sweep
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SweepCatch
Normal file
BIN
lugaru/Data/Animations/SweepCatch
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SweepCaught
Normal file
BIN
lugaru/Data/Animations/SweepCaught
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SwordFightIdle
Normal file
BIN
lugaru/Data/Animations/SwordFightIdle
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SwordFightIdleBoth
Normal file
BIN
lugaru/Data/Animations/SwordFightIdleBoth
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SwordGroundStab
Normal file
BIN
lugaru/Data/Animations/SwordGroundStab
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SwordSlash
Normal file
BIN
lugaru/Data/Animations/SwordSlash
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SwordSlashCatch
Normal file
BIN
lugaru/Data/Animations/SwordSlashCatch
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SwordSlashCaught
Normal file
BIN
lugaru/Data/Animations/SwordSlashCaught
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SwordSlashParried
Normal file
BIN
lugaru/Data/Animations/SwordSlashParried
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SwordSneakAttack
Normal file
BIN
lugaru/Data/Animations/SwordSneakAttack
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SwordSneakAttacked
Normal file
BIN
lugaru/Data/Animations/SwordSneakAttacked
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/SwordUprightParry
Normal file
BIN
lugaru/Data/Animations/SwordUprightParry
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/TalkIdle
Normal file
BIN
lugaru/Data/Animations/TalkIdle
Normal file
Binary file not shown.
BIN
lugaru/Data/Animations/Tempanim
Normal file
BIN
lugaru/Data/Animations/Tempanim
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user