dpt / the-great-escape-in-c Goto Github PK
View Code? Open in Web Editor NEWClassic ZX Spectrum game "The Great Escape" rewritten in portable C
Home Page: http://www.davespace.co.uk/the.great.escape/
Classic ZX Spectrum game "The Great Escape" rewritten in portable C
Home Page: http://www.davespace.co.uk/the.great.escape/
I saw a GtEscape build crashing on ArcEm, Arculator and ArchiEmu but only when configured for ARM2, not ARM250. In fact it locked the virtual machines solid. After some digging I found that the OSLib that I link against isn't 26/32-bit neutral. The 32-bit version uses MRS instructions and they somehow work on emulated ARM250's, but not on emulated ARM2's.
Add a full-screen mode to the RISC OS build. This won't multitask and will perhaps speed up the game on ARM2 to an acceptable level.
We now build against GCCSDK's SharedCLibrary support. This requires a 'new' SCL, which will have to be supplied alongside !GtEscape for older systems.
We currently only support sound on systems fitted with 16-bit sound. Try to work out how to make it work on 8-bit systems too.
Hi,
The headers of the source file say "It is free software provided without warranty in the interests of education and software preservation.". I'm not sure what this exactly would mean.
Kind regards
Complete the CMake build work. In particular CMake builds on Windows will need to be supported.
I tryed to build on Linux.
Both running:
The-Great-Escape-in-C/platform/generic$ gcc -I../../include sdlmain.c -o tge
or
The-Great-Escape-in-C/platform/generic$ make -f SDL.mk build
it stop with this error:
sdlmain.c: In function ‘key_handler’:
sdlmain.c:102:41: error: incompatible type for argument 2 of ‘zxkeyset_for_port’
102 | return zxkeyset_for_port(port, state->keys);
| ~~~~~^~~~~~
| |
| zxkeyset_t
In file included from sdlmain.c:19:
../../include/ZXSpectrum/Keyboard.h:99:56: note: expected ‘const zxkeyset_t *’ but argument is of type ‘zxkeyset_t’
99 | int zxkeyset_for_port(uint16_t port, const zxkeyset_t *keystate);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~
sdlmain.c: In function ‘sdl_key_pressed’:
sdlmain.c:221:32: error: incompatible type for argument 1 of ‘zxkeyset_setchar’
221 | *keys = zxkeyset_setchar(*keys, k->keysym.sym);
| ^~~~~
| |
| zxkeyset_t
../../include/ZXSpectrum/Keyboard.h:104:35: note: expected ‘zxkeyset_t *’ but argument is of type ‘zxkeyset_t’
104 | void zxkeyset_setchar(zxkeyset_t *keystate, int c);
| ~~~~~~~~~~~~^~~~~~~~
sdlmain.c:223:34: error: incompatible type for argument 1 of ‘zxkeyset_clearchar’
223 | *keys = zxkeyset_clearchar(*keys, k->keysym.sym);
| ^~~~~
| |
| zxkeyset_t
../../include/ZXSpectrum/Keyboard.h:109:37: note: expected ‘zxkeyset_t *’ but argument is of type ‘zxkeyset_t’
109 | void zxkeyset_clearchar(zxkeyset_t *keystate, int c);
| ~~~~~~~~~~~~^~~~~~~~
sdlmain.c: In function ‘main’:
sdlmain.c:326:21: error: incompatible types when assigning to type ‘zxkeyset_t’ from type ‘long long unsigned int’
326 | state.keys = 0ULL;
| ^~~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.