All Projects → dpt → The-Great-Escape-in-C

dpt / The-Great-Escape-in-C

Licence: other
Classic ZX Spectrum game "The Great Escape" rewritten in portable C

Programming Languages

c
50402 projects - #5 most used programming language
objective c
16641 projects - #2 most used programming language
CMake
9771 projects
C++
36643 projects - #6 most used programming language
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to The-Great-Escape-in-C

The-Great-Escape
Classic ZX Spectrum game "The Great Escape" reverse engineered
Stars: ✭ 69 (-27.37%)
Mutual labels:  isometric, zx-spectrum, retrogaming
HeadOverHeels
The free and open source remake of game Head over Heels
Stars: ✭ 15 (-84.21%)
Mutual labels:  remake, isometric
freeserf.net
Settlers 1 clone written in C#
Stars: ✭ 97 (+2.11%)
Mutual labels:  remake, port
packard-belle-desktop
Building website with packard-belle UI library and react-rnd
Stars: ✭ 44 (-53.68%)
Mutual labels:  remake, reimplementation
Webamp
Winamp 2 reimplemented for the browser
Stars: ✭ 8,268 (+8603.16%)
Mutual labels:  port, reimplementation
nox-decomp
Unofficial Nox (2000) port to Linux using decompiled code from https://playnox.xyz
Stars: ✭ 21 (-77.89%)
Mutual labels:  remake, reimplementation
o2r
Open Rodent's Revenge is a C++ remake of the famous Microsoft game "Rodent's Revenge" (1991).
Stars: ✭ 22 (-76.84%)
Mutual labels:  remake
rsc-client
🎮 runescape classic web client
Stars: ✭ 45 (-52.63%)
Mutual labels:  remake
encounter
Remaking the classic C64 game in WebGL.
Stars: ✭ 45 (-52.63%)
Mutual labels:  remake
Dune-II---The-Maker
A remake of the classic Dune 2 - The Building of a Dynasty (by Westwood Studios) with several enhancements. Like: higher screenresolutions, zooming, multiselect, skirmish play, etc.
Stars: ✭ 232 (+144.21%)
Mutual labels:  remake
Hover
Hover is a work-in-progress port of Hover.
Stars: ✭ 58 (-38.95%)
Mutual labels:  remake
Corsixth
Open source clone of Theme Hospital
Stars: ✭ 2,481 (+2511.58%)
Mutual labels:  remake
stuntcarremake
A port of Stunt Car Remake to OpenPandora, Linux and Emscripten. Status: Working
Stars: ✭ 44 (-53.68%)
Mutual labels:  remake
Coogle
A shot-for-shot remake of the Google Login Page.
Stars: ✭ 34 (-64.21%)
Mutual labels:  remake
LibSerialPort.jl
Julia wrapper for the libserialport c library
Stars: ✭ 54 (-43.16%)
Mutual labels:  port
Settlers.ts
A Web Settlers 4 Clone/Remake in TypeScript
Stars: ✭ 19 (-80%)
Mutual labels:  remake
ualbion
A remake of the 1995 RPG Albion (requires data from an install of the original game)
Stars: ✭ 87 (-8.42%)
Mutual labels:  remake
Jspaint
🎨 Classic MS Paint, REVIVED + ✨Extras
Stars: ✭ 5,972 (+6186.32%)
Mutual labels:  remake
SuperMarioBros
A work-in-progress remake of the original Super Mario Bros. for NES, in the browser using canvas and P5JS.
Stars: ✭ 23 (-75.79%)
Mutual labels:  remake
Zombusters
🕹️ A retro style zombies shooter with cool isometric pixel art for Windows and MacOS
Stars: ✭ 41 (-56.84%)
Mutual labels:  isometric

“The Great Escape” Ported to C

Build status

© David Thomas, 2013-2022

17th April 2022

Demo

Overview

This is a port to C of “The Great Escape”: the classic isometric 3D game for the 48K Sinclair ZX Spectrum in which you execute a daring escape from a wartime prison camp. Very loosely based on the film of the same name, it was created by Denton Designs and published in 1986 by Ocean Software.

Over here I reverse engineered the original game from a binary snapshot of the Spectrum version, decoding the graphics, data tables and all of the logic. Originally written in Z80 assembly language, I have translated it into portable C code where now builds and runs exactly like the original on macOS, Windows and RISC OS but without the need of an emulator.

The portable C sources have allowed builds for the web, using emscripten and even the BBC Micro, via a Raspberry Pi second processor.

Project Write-up

http://www.davespace.co.uk/the.great.escape/ (2019)

Goals of the Project

  1. Fully disassemble, document and understand the original game.
    • Attempting to reimplement the game logic forces you to explore every nook and cranny of the game logic, enabling a complete reimplementation to be made and the original code fully understood.
  2. Reimplement The Great Escape in portable C code.
    • While being as accurate a recreation of the original as possible.
  3. Fix some bugs in the original game.
  4. Analyse the before-and-after metrics.
    • How much bigger and slower is the compiled C reimplementation compared to the original game?
    • What can we learn from the original’s tight coding techniques?
  5. Provide a basis for porting the game to contemporary systems of the ZX Spectrum.

Running the Game

The port is an exact recreation of the ZX Spectrum version of The Great Escape including the input device selection menu. It builds and runs on macOS, Windows and RISC OS. The macOS version is currently the "best" featuring the menu music and sound effects which the Windows port lacks.

When you start the game hit 0 to start - this will let you define your preferred keys. You could also choose 3 for Sinclair (keys 6/7/8/9/0). The macOS port will let you choose Kempston and use the arrow keys and . for fire.

There are various other controls which vary by OS. On macOS consult the menus for keyboard shortcuts.

The front-ends attempt to always preserve the game's aspect ratio and snap to whole pixels.

Current Builds

Port Maintained? Notes
macOS CMake Yes My default build; the most likely to be up-to-date. To build use cd <src> && mkdir build && cd build && cmake .. && cmake --build ., or build.sh which does the same.
macOS native Probably To build open up the Xcode project platform/osx/The Great Escape.xcodeproj and build that using ⌘B. Run using ⌘R.
Windows CMake Yes CMake build - like above
Windows native Probably Needs Visual Studio 2013. Trunk build lacks sound and UI niceties (but there are improvements on a branch somewhere...) To build open up the Visual Studio solution platform/windows/TheGreatEscape/TheGreatEscape.sln and build that using F7. Run using F5.
RISC OS Yes Runs on RISC OS 3.1 or later. Sound requires a Risc PC or later with a 16-bit sound system. To build this uses GCCSDK and CMake. If you're nutty enough to want to build the RISC OS version then you might want to talk to me first, or take a look at riscos-ci-build.sh.
Makefile Occasionally This builds a minimal headless (no display) version of the game for testing. It runs the game for 100,000 iterations of the main loop then stops.
SDL Perhaps SDL build. No sound or UI niceties and broken timing.
Browser, via emscripten Maybe Try it here using the arrow keys and . for fire. This uses the SDL build but targets emscripten. The structure of the game is not exactly amenable to the browser world (the RISC OS build has a similar issues).

Consult the github actions file for exact build commands.

Components

TheGreatEscape

This is the main game reimplemented in a single (static) library.

ZXSpectrum

Defines an interface to a virtual ZX Spectrum to which the game talks, replacing the bare-metal IN and OUT instructions and providing a screen to draw to, its border, a keyboard and a speaker. This can convert the Spectrum screen memory to 4bpp or 32bpp pixel formats pretty quickly.

Source Layout

./
    include/            - public headers
        TheGreatEscape/
        ZXSpectrum/
    libraries/          - sources
        TheGreatEscape/
            include/    - private headers
        ZXSpectrum/
    platform/           - platform-specific source
        generic/        - generic Makefile build environment
        osx/            - Xcode build environment
        riscos/         - RISC OS build environment
        windows/        - Windows build environment

Chat

Join the chat at https://gitter.im/The-Great-Escape/Lobby

Related Links

Porting Chuckie Egg

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].