Git Product home page Git Product logo

gish's Introduction

How to compile (Linux)

Make sure CMake and the development libraries for SDL, OpenAL and Vorbis are installed. In Debian-based systems, you need to install the following packages:

sudo apt-get install libsdl1.2-dev libopenal-dev libvorbis-dev

Then simply issue

mkdir build && cd build
cmake ..
make

How to compile (Windows with VS2008)

Download and install the required libraries:

In Visual Studio add to your include-paths:

  • ...\libvorbis-1.3.1\include
  • ...\libogg-1.2.0\include
  • C:\Program Files\OpenAL 1.1 SDK\include
  • ...\SDL-1.2.14_VC8\include
  • ...\SDL_mixer-1.2.11\include

In Visual Studio add to your library-paths:

  • ...\libvorbis-1.3.1\win32\VS2008\libvorbisfile\Win32\Debug
  • ...\libogg-1.2.0\win32\VS2008\Win32\Debug
  • ...\libvorbis-1.3.1\win32\VS2008\libvorbis\Win32\Debug
  • C:\Program Files\OpenAL 1.1 SDK\libs\Win32
  • ...\SDL_mixer-1.2.11\lib
  • ...\SDL-1.2.14_VC8\lib

Open gish.sln and compile.

You will need the following files to be present:

  • OpenAL32.dll
  • SDL.DLL

How to compile (Mac OS X)

Open the Xcode project in the main directory. 'Get info' on the Gish executable and change its working directory to "Project Directory" If the build fails, check the dependencies. The Xcode project currently does not use the ./externals directory:

  • Frameworks: Cocoa, SDL, OpenAL, Ogg, Vorbis Ogg and Vorbis Frameworks built from from http://xiph.org/downloads/ and installed in /Library/Frameworks/.
  • libpng; macports is an option. Change appropriate search paths: Change (Gish target -> get info -> "Header Search Paths") to point to libpng headers. (e.g. /opt/local/include/libpng14/) Using recursive header search of /opt/local/include may slow things down or present conflicts, not recommended.

Note: If you own the original assets, you can use them simply by changing the working directory mentioned above to /Applications/Gish.app/Contents/Resources An note of caution, this will use the original apps user file as well.

How to play

Simply run ./gish or gish.exe. There are some assets included (codenamed the FreeGish project), making Gish a completely free game! There is also one level available, freegish.lvl, you'll find it under "Custom Levels". Try it and replace what you don't like.

If you own the original assets, you may also copy those into this directory. You'll need:

  • animation
  • level
  • music
  • sound
  • texture
  • tile01 ... tile07

Note: this branch has been merged with SysLord, who added a few fun features, documented in Note-SysLord.markdown

gish's People

Contributors

acieroid avatar asmageddon avatar blinry avatar chewi avatar etam avatar frozencow avatar jorisvddonk avatar mlsteele avatar shish avatar spinkham avatar syslord avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gish's Issues

Compiling error on Alpine Armv7 (multiple definition)

Good afternoon, I encountered the following problem during compilation:

...
[ 98%] Building C object CMakeFiles/gish.dir/main.c.o
[100%] Linking C executable /home/thesame/GitProjects/gish/gish
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/custom.c.o:(.bss+0x0): multiple definition of `fread2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/custom.c.o:(.bss+0x4): multiple definition of `fwrite2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/game.c.o:(.bss+0x0): multiple definition of `numofobjectrenders'; CMakeFiles/gish.dir/game/editor.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/game.c.o:(.bss+0x4): multiple definition of `objectrender'; CMakeFiles/gish.dir/game/editor.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/gametexture.c.o:(.bss+0x0): multiple definition of `fread2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/gametexture.c.o:(.bss+0x4): multiple definition of `fwrite2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/high.c.o:(.bss+0x0): multiple definition of `fread2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/high.c.o:(.bss+0x4): multiple definition of `fwrite2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/level.c.o:(.bss+0x0): multiple definition of `fread2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/level.c.o:(.bss+0x4): multiple definition of `fwrite2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/lighting.c.o:(.bss+0x0): multiple definition of `numofobjectrenders'; CMakeFiles/gish.dir/game/editor.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/lighting.c.o:(.bss+0x4): multiple definition of `objectrender'; CMakeFiles/gish.dir/game/editor.c.o:(.bss+0x4): first defined here/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/music.c.o:(.bss+0x0): multiple definition of `fread2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/music.c.o:(.bss+0x4): multiple definition of `fwrite2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/player.c.o:(.bss+0x0): multiple definition of `fread2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/player.c.o:(.bss+0x4): multiple definition of `fwrite2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/prerender.c.o:(.bss+0x0): multiple definition of `numofobjectrenders'; CMakeFiles/gish.dir/game/editor.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/prerender.c.o:(.bss+0x4): multiple definition of `objectrender'; CMakeFiles/gish.dir/game/editor.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/render.c.o:(.bss+0x0): multiple definition of `numofobjectrenders'; CMakeFiles/gish.dir/game/editor.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/render.c.o:(.bss+0x4): multiple definition of `objectrender'; CMakeFiles/gish.dir/game/editor.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/replay.c.o:(.bss+0x0): multiple definition of `fread2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/game/replay.c.o:(.bss+0x4): multiple definition of `fwrite2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/sdl/endian.c.o:(.bss+0x0): multiple definition of `fread2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/sdl/endian.c.o:(.bss+0x4): multiple definition of `fwrite2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/sdl/file.c.o:(.bss+0x0): multiple definition of `fread2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/sdl/file.c.o:(.bss+0x4): multiple definition of `fwrite2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x4): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/video/texture.c.o:(.bss+0x0): multiple definition of `fread2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/armv7-alpine-linux-musleabihf/13.1.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: CMakeFiles/gish.dir/video/texture.c.o:(.bss+0x4): multiple definition of `fwrite2'; CMakeFiles/gish.dir/game/block.c.o:(.bss+0x4): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/gish.dir/build.make:1001: /home/thesame/GitProjects/gish/gish] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/gish.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

More information:

$ ld -v
GNU ld (GNU Binutils) 2.40

$ uname -a
Linux nokia-n900 6.3.4 #1-postmarketOS SMP PREEMPT Sun May 28 18:31:00 UTC 2023 armv7l Linux

$ gcc --version
gcc (Alpine 13.1.1_git20230527) 13.1.1 20230527

Does not compile with libpng 1.5

Gish does not compile with libpng 1.5 (on linux) because the full definition of png_info_def is no longer visible to the application.

[ 98%] Building C object CMakeFiles/gish.dir/video/texture.c.o
/home/markus/workspace/gish/video/texture.c: In function ‘loadtexturepng’:
/home/markus/workspace/gish/video/texture.c:98:14: error: dereferencing pointer to incomplete type
/home/markus/workspace/gish/video/texture.c:102:14: error: dereferencing pointer to incomplete type
/home/markus/workspace/gish/video/texture.c:102:61: error: dereferencing pointer to incomplete type
/home/markus/workspace/gish/video/texture.c:106:14: error: dereferencing pointer to incomplete type
/home/markus/workspace/gish/video/texture.c:110:14: error: dereferencing pointer to incomplete type
/home/markus/workspace/gish/video/texture.c:114:14: error: dereferencing pointer to incomplete type
/home/markus/workspace/gish/video/texture.c:114:42: error: dereferencing pointer to incomplete type
/home/markus/workspace/gish/video/texture.c:118:14: error: dereferencing pointer to incomplete type
/home/markus/workspace/gish/video/texture.c:127:21: error: dereferencing pointer to incomplete type
/home/markus/workspace/gish/video/texture.c:128:21: error: dereferencing pointer to incomplete type
make[2]: *** [CMakeFiles/gish.dir/video/texture.c.o] Error 1

Launching the game not from the same folder as the installation folder

Launching the game not from the same folder as the installation folder.

For example gish is compiled at /home/t/gish/.

Going to that directory and launching it is fine, but executing the file when not in the same directory results in white boxes.

(I remember the same problem existed when the installer on Windows XP created the broken shortcut, exactly the same white squares)

System: Ubuntu 15.04 64bit, compiled the latest tree.

Compiling failure

At the end of the make step I get this error:

[ 98%] Building C object CMakeFiles/gish.dir/video/texture.c.o
[100%] Building C object CMakeFiles/gish.dir/main.c.o
Linking C executable ../gish
/usr/bin/ld: CMakeFiles/gish.dir/game/gameobject.c.o: référence au symbole non défini «cos@@GLIBC_2.2.5»
/lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/gish.dir/build.make:1496: recipe for target '../gish' failed
make[2]: *** [../gish] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/gish.dir/all' failed
make[1]: *** [CMakeFiles/gish.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

Any idea @blinry @Feared?

Wrong dependencies installation command in README

In Debian-based systems, you need to install the following packages:
cmake libsdl1.2-dev libopenal-dev libvorbis-dev

Probably meant sudo apt-get install libsdl1.2-dev libopenal-dev libvorbis-dev?

First level thumbnail is missing

The very first level thumbnail is pink square. The console output is empty. How could I fix it?

System: Ubuntu 15.04 64bit, compiled latest tree

Compiling

First error: Vorbis Library not found.
... opened my package manager and installed it.

Second error:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SDLMIXER_INCLUDE_DIR
used as include directory in directory /home/nico/git/gish
SDLMIXER_LIBRARY
linked by target "gish" in directory /home/nico/git/gish

-- Configuring incomplete, errors occurred!

ôo

Port Gish to Android OS and other improvents

Hello! I recently ported Gish to the Android OS and added some improvements and fixed some bugs.

https://github.com/EXL/Gish (APK in Releases)

Now Gish works through the SDL2 library.

Building for GNU/Linux:

mkdir build; cd build
cmake -DCMAKE_BUILD_TYPE=Release -DGLES=Off ../gish/src/main/cpp/
make

Building for Android OS:

ANDROID_HOME="/opt/android-sdk/" ./gradlew assembleDebug

Video: https://youtu.be/GyMU2oV2LI4
Some info: http://exlmoto.ru/gish-droid (in Russian)

I would be glad if you integrate some improvements (for example, port on SDL2) into this repository.

Best regards!

Development in Visual Studio 2017

Hi everyone.

I have made improvements for developing in Visual Studio 2017 environment. You can find project files in my fork. . Branch is based of commit made in 2010 which is last where is basically not added new game features (gish resizing, libpng, and so on).

Some things to notice:

  1. It compiles with newer VS toolset (v141)
  2. SDL library needs to be recompiled with one of newest VS toolsets.

Tutorial is just gray space

Tutorial is just gray space for me, I have to click next to skip it. Any advice?

System: Ubuntu 15.04 64-bit, compiled the latest tree

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.