level_format 1.1.0

A file format for 2D levels


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

Manual usage
Put the following dependency into your project's dependences section:

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

  • 8 downloads total

Score:
0.6
Short URL:
level_format.dub.pm