level_format ~master

A file format for 2D levels


To use this package, run the following command in your project's root directory:

Level Format

Build Status Dub package

This is a simple library which provides an interface to a custom file format designed for levels in 2D games. At the moment, the file format can only be reasonably used in a hexadecimal editor, as it is a binary format, as opposed to a text format.

Basic usage

A typical file looks like this:

Header

Map

Objects

Header section

The header section consists of two little-endian integers, one byte, and three more unused bytes. The integers are the dimensions for the map, the first being the width, the second being the height. The next byte denotes the size in bits of each map cell, the maximum being 64 bits.

Authors:
  • TheOnlyMrCat
Dependencies:
none
Versions:
1.1.0 2019-Dec-28
1.0.0 2019-Dec-28
~master 2019-Dec-28
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 1 downloads total

Score:
0.4
Short URL:
level_format.dub.pm