Yar's Revenge Screenshot Shootemup - originally on the Atari 2600

A rather abstract shoot-em-up using the SDL library based on Howard Scott Warshaw's classic Atari 2600 videogame.

License: free
Requirements: SDL

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
yesyesnoyesnonoyes
Suggest an update

Comments

Error building on current debian testing:
source='sgw.cpp' object='sgw.o' libtool=no \
depfile='.deps/sgw.Po' tmpdepfile='.deps/sgw.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I..     -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -I/usr/include/SDL -D_REENTRANT  -c -o sgw.o `test -f sgw.cpp || echo './'`sgw.cpp
sgw.cpp: In member function `void SGWAudioObject::CopyStream(void*, int)':
sgw.cpp:1058: error: invalid conversion from `void*' to `Uint8*'
sgw.cpp: In member function `void SGWAudioWave::Load(char*)':
sgw.cpp:1109: error: invalid conversion from `void*' to `Uint8*'
sgw.cpp: In member function `void SGWAudioBeep::CreateBeep(int, int)':
sgw.cpp:1133: error: invalid conversion from `void*' to `Uint16*'
sgw.cpp: In member function `void SGWAudioBeep::CreateWave(void*, int, int)':
sgw.cpp:1159: error: invalid conversion from `void*' to `Uint16*'
make[2]: *** [sgw.o] Error 1
make[2]: Leaving directory `/home/jrodman/software/games/yar-0.98/yar'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jrodman/software/games/yar-0.98'
make: *** [all] Error 2
Re: can't build, bad conversions posted by anonymous on Oct 21 2003 10:38 AM
Well, I don't argue the casting to Uint8 and Uint16 is there. I did it that way because I didn't want those Uints outside the scope of sgw.cpp (which is the SDL interface library) - I didn't want SDL.h included.... It does compile on my system (Gentoo 1.4/KDevelop) and generates a warning at this point, but doesn't fail to compile.

The problem is something declared as void * being implicitly casted to something else rather than explicitly casted. I will fix the program so it compiles.

As a bodge if you are keen, I would put appropriate casts in the lines given.

Paul Robson.

Re: can't build, bad conversions posted by anonymous on Oct 21 2003 11:30 AM
Build 0.99, available from http://www.autismuk.freeserve.co.uk has had these casts fixed and should now compile happily.
Re: can't build, bad conversions posted by anonymous on Oct 22 2003 2:23 PM
Quite reactive ... but your link for the 0.99 seems broken :(
--
Tof
Re: can't build, bad conversions posted by anonymous on Oct 23 2003 2:13 PM
Err.... well I'm confused as to what happened to it 'cos I definitely uploaded it !

Freeserve are useless IMO.

Okay. I'll try and fix it soon.

Re: can't build, bad conversions posted by anonymous on Oct 26 2003 8:04 PM
(I'm the original poster) Indeed 0.99 builds (and runs) just fine on debian with gcc 3.3.2

Sorry for the hasty post, I did it before I thought of your email.

Re: can't build, bad conversions posted by anonymous on Oct 27 2003 12:51 AM
You've nothing to say 'sorry' about :) I only uploaded 0.99 yesterday.
Yar's Revenge v.0.98 (Yars' Revenge, as it was called then) compiles beautifully on Solaris UltraSparc, with SDL, and gcc 3.2.2! It definitely brings back the ole glory days of the Atari VCS (aka Atari 2600)...! A real retro classic from the early 80's on today's powerful workstations, with color & sound!

Cheers! =)

Georgie's SOLARCADE

Log in or register to rate this game or post a comment.