Giter Club home page Giter Club logo

dizzy's Introduction

Fantastic Dizzy Tools

This is a very simple set of scripts for extracting and viewing assets from the Fantastic Dizzy game (Copyright Codemasters, 1991). The tools work with the DOS version of the game.

The scripts contain some notes about the data formats used by the game.

License

These tools are public domain. The code may be freely incorporated into other projects, either source or binary.

Tools

The following tools are provided:

Asset Unpacker

The unpack.py script unpacks the DIZZY.NDX and DIZZY.RES files into the individual files (chunks). Although the game binary hardcodes filenames for some chunks they are accessed using a 16-bit chunk id. To unpack the chunks:

python unpack.py DIZZY.NDX DIZZY.RES

This will create a directory called out/ in the current directory with the unpacked files. The file names have the form:

out/file_<chunk_id>_<file_index>.bin

Asset Repacker

The repack.py script packs a directory of file chunks into a new DIZZY.NDX and DIZZY.RES file. To repack the out directory:

python repack.py out

This will generate a new DIZZY.NDX and DIZZY.RES file in the current directory. These can be copied to your Fantastic Dizzy game directory to modify the game.

Sprite Set Viewer

The sprite_view.py script is used to view a set of sprites. The game has five sprite sets, with hardcoded chunk indexes in the game binary. To view a sprite set:

python sprite_view.py DIZZY.NDX DIZZY.RES <sprite_set_index>

Note that the colours of some sprites may be incorrect because sprite sets can include sprites for multiple stages which have different palettes.

Stage Viewer

The stage_view.py script can be used to view the game stages. The game binary hardcodes filenames for the stages. To see the list of available stages:

python stage_view.py DIZZY.NDX DIZZY.RES

To view a stage:

python stage_view.py DIZZY.NDX DIZZY.RES tree1.stg

The arrow keys can be used to move the view and the number keys can be used to switch the layer being displayed. Stages use layers to store optional different rooms and backgrounds.

Note some colours are displayed incorrectly in stages. The palette encoding for tiles is not fully understood.

dizzy's People

Contributors

ryanmallon avatar

Stargazers

STOsha avatar  avatar  avatar Man Sun avatar Ilia Sharin avatar  avatar

Watchers

James Cloos avatar  avatar

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.