Giter VIP home page Giter VIP logo

ptitseb / friking-shark Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 0.0 190.15 MB

Port of Friking Shark (remake of Flying Shark) on the OpenPandora, Odroid and most Linux. Also with AmigaOS4 support. Status: Working (using gl4es).

Home Page: https://boards.openpandora.org/topic/5600375-friking-shark/

License: Other

C++ 46.78% C 52.64% CMake 0.56% Shell 0.01%
gl4es opengl shoot-em-up shmup opensource linux

friking-shark's People

Contributors

cletomartin avatar davegorst avatar meneky avatar ptitseb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

friking-shark's Issues

Does nt compile 'png_info {aka struct png_info_def}'

I have this error in copmile:


[ 59%] Building CXX object 
CMakeFiles/GameGraphics.dir/GameGraphics/OpenGLTexture.cpp.o
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp: In 
function ‘bool LoadPngFile(const char*, unsigned int, unsigned int*, unsigned 
int*, unsigned char**)’:
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:130:23: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:130:68: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:133:21: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:134:22: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:135:34: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:141:53: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:143:35: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:145:42: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:154:59: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:155:62: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:155:78: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:160:53: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:160:69: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:164:35: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:167:62: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:169:36: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
make[2]: *** [CMakeFiles/GameGraphics.dir/GameGraphics/OpenGLTexture.cpp.o] 
Error 1
make[1]: *** [CMakeFiles/GameGraphics.dir/all] Error 2
make: *** [all] Error 2
[dglent@localhost friking-shark-read-only]$

System: Mageia 2
Kernel: 3.3.8-desktop-2.mga2

libpng packages installed:
lib64png-devel-1.5.12-1.mga2
lib64png12_0-1.2.50-1.mga2
lib64png15_15-1.5.12-1.mga2



Original issue reported on code.google.com by [email protected] on 23 Sep 2012 at 11:16

amigaos4 build

Hi !
Tried to build SDL2 version for amigaos4 , and tryint to use CMAKE as i am on crosscompiler, so can use that one.

That what i tried:

cd friking-shark-master

mkdir build
cd build
cmake
-DCMAKE_SYSTEM_NAME=Generic
-DCMAKE_SYSTEM_VERSION=1
-DSDL=ON
-DCMAKE_C_COMPILER="/usr/local/amiga/bin/ppc-amigaos-gcc"
-DCMAKE_CXX_COMPILER="/usr/local/amiga/bin/ppc-amigaos-g++"
-DCMAKE_LINKER="/usr/local/amiga/bin/ppc-amigaos-ld"
-DCMAKE_AR="/usr/local/amiga/bin/ppc-amigaos-ar"
-DCMAKE_RANLIB="/usr/local/amiga/bin/ppc-amigaos-ranlib"
-DCMAKE_FIND_ROOT_PATH="/usr/local/amiga/ppc-amigaos/"
-DZLIB_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/"
-DZLIB_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/lib/libz.a"
-DPNG_PNG_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/libpng12/"
-DPNG_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/lib/libpng12.a"
-DOPENGL_gl_LIBRARY="libgl4es.a"
-DOPENAL_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/lib/libopenal.a"
-DOPENAL_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/AL/"
-DTIFF_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/"
-DTIFF_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/lib/libtiff.a"
-DJPEG_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/"
-DJPEG_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/newlib/lib/libjpeg_8b.a"
..

It the says :

CMake Error at CMakeLists.txt:21 (FIND_PACKAGE):
By not providing "FindSDL2.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "SDL2", but
CMake did not find one.

Could not find a package configuration file provided by "SDL2" with any of
the following names:

SDL2Config.cmake
sdl2-config.cmake

Add the installation prefix of "SDL2" to CMAKE_PREFIX_PATH or set
"SDL2_DIR" to a directory containing one of the above files. If "SDL2"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!

I tried to remove from CMakeList.txt : FIND_PACKAGE(SDL2 REQUIRED) (as i will link everything manually at end anyway), so , it then cry about non possibility to build shared versions and will use static instead (that ok), but then at end:

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:

XINERAMA_LIBRARY
linked by target "GameGraphics" in directory /d/friking-shark-master
XRANDR_LIBARY
linked by target "GameGraphics" in directory /d/friking-shark-master

-- Configuring incomplete, errors occurred!

I probably can set them to some void nulls , but probably they need to be removed from CMake if "-DSDL=ON" is used ?

Crash in netbooks in the very beggining of the first level

Reproduced in EeePc and Aspire One (Intel 945 graphics board).

Crash in igldev32.dll (intel driver).

Crash is partially localized, is has something to do with particle effect state 
changes when rendering the shadow map.

Particle effects should not be rendered in the shadow map as they do not cast 
shadows, but making so should not crash the driver.

The problem can be fixed just by not calling RenderParticleStages in the shadow 
generation stage, but further analysis is needed to track down the root cause 
of the problem

Original issue reported on code.google.com by [email protected] on 18 Aug 2011 at 10:12

0

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 28 Jun 2015 at 8:39

Render issue in window mode

Hi @ptitSeb

I am working on a web port of friking shark right now.

Game works so far, but I have issues with rendering the game in windowed view (I prefer to not have FullScreen enabled by default):

The MainMenu entries are overlapping the viewport, that means they are not scaled. When I click on Options for example the positioning is correct.

Same overlapping for New Game dialog.

Funny thing is: when I switch to FullScreen with STRG+ALT+ENTER from MainMenu positioning of the viewport is wrong, too. But when I enter Options afterwards, the text of Options dialog is presented in full height -> correctly.

I have not tested whether this is coming from Emscripten, but I doubt it. I've ported some game already and not had this kinda issue yet.

I have set

System="GameGUI"
Class="CGameGUIManager"
Name="GUIManager"
Data
{
Screen
{
	FullScreen=0
	WindowReferenceSystem=1
	CenterWindow=0
	VerticalSync=0
	Resolution
	{	
		w=640
		h=480
	}
	WindowRect
	{
		w=640
		h=480
	}
}
}

and are now continueing to figure out whats going wrong...

Have a nice weekend
midzer

Could not find X11 lib with xlib-dev installed

cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/local/share/cmake-2.8/Modules/FindX11.cmake:381 (MESSAGE):
  Could not find X11
Call Stack (most recent call first):
  CMakeLists.txt:11 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!

Original issue reported on code.google.com by [email protected] on 11 Nov 2011 at 1:45

Won't build on ArchLinux

What steps will reproduce the problem?
1. check out svn
2. cmake .
3. make -j2

The building fails with this output:

/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp: In function 
‘bool LoadPngFile(const char*, unsigned int, unsigned int*, unsigned int*, 
unsigned char**)’:
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:128:116: erreur: 
‘png_voidp_NULL’ was not declared in this scope
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:129:25: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:129:25: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:129:70: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:129:70: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:132:23: attention : 
‘png_info_struct::width’ is deprecated (declared at /usr/include/png.h:655) 
[-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:132:23: attention : 
‘png_info_struct::width’ is deprecated (declared at /usr/include/png.h:655) 
[-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:133:24: attention : 
‘png_info_struct::height’ is deprecated (declared at 
/usr/include/png.h:656) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:133:24: attention : 
‘png_info_struct::height’ is deprecated (declared at 
/usr/include/png.h:656) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:134:36: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:134:36: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:140:55: attention : 
‘png_info_struct::height’ is deprecated (declared at 
/usr/include/png.h:656) [-Wdeprecated-declarations]

I think ArchLinux might have some new version of a png lib that the game uses.

Original issue reported on code.google.com by [email protected] on 11 Nov 2011 at 1:06

Black screen on windows 7 64 bits

What steps will reproduce the problem?

1.I have installed game and library form creative labs
2.I have executed it game starts and i see a black screen i can hear sound whne 
i move cursor but i can't see anything
3.Run as administrator not helps, run as compatibility w xp sp3 not works
computer is sony vaio vgn-21s sysem windows 7 64 bits
Thanks


Original issue reported on code.google.com by [email protected] on 20 Oct 2011 at 6:20

Attachments:

Tanks fired do not shows the typicall "sprite"

In Friking Shark, when you shoot down a tank, it doesn't shows the hole in the 
ground previously seen in Flyin Shark.
Look at the pic from wikipedia: 
http://en.wikipedia.org/wiki/Sky_Shark
Would you implement this on next versions?


Original issue reported on code.google.com by [email protected] on 21 Nov 2011 at 4:28

Crash on Windows 7 64-bit

What steps will reproduce the problem?

1.Launch the game on Windows 7 64-bit (as a normal user or as Administrator)

What is the expected output? What do you see instead?

The screen displays "Loading" briefly (less than one second) then the 
application crashes (and Windows looks for a solution, without success). No 
error logs were found in the application directories. 

What version of the product are you using? On what operating system?

Installed FrikingSharkSetup-v1.01-Beta.exe
Windows 7 Home Premium Service Pack 1 64-bit 
Intel Core i7-2630QM @ 2.00 GHz
Mobile Intel(R) HD Graphics
DirectX 11
Realtek High Definition Audio

Please provide any additional information below.
DirectX information (collected using dxdiag 64-bit):



Original issue reported on code.google.com by [email protected] on 17 Oct 2011 at 1:07

Crashes on Win XP

What steps will reproduce the problem?
1. Win XP SP3, 32bit
2. Installing Friking Shark
3. Starting it - at Loading Screen it crashes with the regular Windows XP crash 
message

What is the expected output? What do you see instead?
Should see the starting screen after the loading screen but it crashes when 
loading.

What version of the product are you using? On what operating system?
WinXP SP3, 32bit

Please provide any additional information below.
No idea what to write here, it's a regular WinXP SP3 installation, 32bit. 
Hundreds of other games installed, mostly without any problems. Friking Shark 
crashes at loading screen.

Original issue reported on code.google.com by [email protected] on 22 Oct 2011 at 3:36

Treating warnings as errors causing compile to fail under Linux & gcc-4.5 in OpenGL code

It seems like treating warnings as errors is turned on by default in the 
Makefile.

Lots of these types of errors in OpenGLShader.cpp, and one in OpenGLRender.cpp :

OpenGLShader.cpp:159:126: error: converting to non-pointer type 
‘GLhandleARB’ from NULL

It compiles fine if you use "(GLhandleARB) NULL".

Similar issues with needing to cast NULL to Colormap and Cursor in 
./GameGraphics/OpenGLViewport.cpp :

OpenGLViewport.cpp:263:15: error: converting to non-pointer type ‘Colormap’ 
from NULL
OpenGLViewport.cpp:264:19: error: converting to non-pointer type ‘Cursor’ 
from NULL
OpenGLViewport.cpp: In member function ‘virtual void 
COpenGLViewport::Destroy()’:
OpenGLViewport.cpp:538:21: error: converting to non-pointer type ‘Cursor’ 
from NULL
OpenGLViewport.cpp:551:17: error: converting to non-pointer type ‘Colormap’ 
from NULL

It looks to be compiling again successfully after casting these. Can't wait to 
have a go at this - it looks very nifty.

Cheers,
Dave.

Original issue reported on code.google.com by [email protected] on 10 Jun 2011 at 10:56

win7 x64 ultimate load problem

What steps will reproduce the problem?
1. Saving
2. Closing the game
3. Running the game again
4. Load button is grey even if it saved normally last time

What is the expected output? What do you see instead?

Load button is grey even if it saved normally last time (it showed in the save 
list that it was in there)

What version of the product are you using? On what operating system?

Beta 1.01 in win 7 ultimate x64

Please provide any additional information below.



Original issue reported on code.google.com by [email protected] on 3 Dec 2012 at 7:41

Music/Sounds not playing in low-end PCs

Reproduced in Aspire One and EeePC.

The problem arises when OpenAL supports less sources than required, it is not 
clean when that happens, and there is no way to query OpenAL about its maximun.

It is necessary to change the current source allocation scheme, it is too naive 
to work in these scenarios.

Original issue reported on code.google.com by [email protected] on 19 Aug 2011 at 1:37

Sometimes sphere particle emitter emits no particle

The problem arises when the emitter is configured to emit particles by rate.
If the frame rate is too slow or the time interval is to small it can happen 
that the first frame to process is also the last one, and no particle is 
emitted.

Original issue reported on code.google.com by [email protected] on 21 Aug 2011 at 5:42

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.