Keyboard driven 2D level editor https://sr.ht/~kikoodx/kble/
Go to file
KikooDX 98bfeb385b Open file in relative or absolute path. Delete useless conf code. 2021-02-24 09:30:48 +01:00
src Open file in relative or absolute path. Delete useless conf code. 2021-02-24 09:30:48 +01:00
.gitignore Create repository. 2021-01-24 19:22:48 +01:00
LICENSE Level uses memory allocation + LICENSE file 2021-01-26 13:10:16 +01:00
README.md Cleaned up code, implemented rectangle selection. 2021-02-02 14:49:50 +01:00
build.zig Added docstrings to structure functions. 2021-01-26 14:46:32 +01:00
kbleformat.md Framing out level loading and specify KBLE file format 2021-02-23 11:44:51 +01:00
sample.kble Open file in relative or absolute path. Delete useless conf code. 2021-02-24 09:30:48 +01:00

README.md

KBLE, a KeyBoard driven Level Editor

A work in progress level editor with extensive keyboard support. Designed for tile based 2D platformers. This is a work in progress program in unusable state.

Short term design decisions

Subject to change.

  • Efficiency, simplicity and clarity are key goals.
  • Fully keyboard driven modal editing. Mouse support is secondary.
  • GUI application made in Zig with raylib.
  • Configurable (format unknown).
  • LDtk inspired tiling rulesets.

Build instructions

Build requirements: Zig master branch, raylib. For Arch users, zig-git is available in the AUR.

$ # Clone this repository
$ git clone https://git.sr.ht/~kikoodx/kble && cd kble
$ zig build run

Press escape to close the program.

Default keybindings

Movement:

  • h: left
  • j: down
  • k: up
  • l: right
  • y: up-left
  • u: up-right
  • b: down-left
  • n: down-right

Verbs:

  • <space>: clear selection
  • d: delete selection
  • r: replace selection
  • +: increase scale (zoom)
  • -: decrease scale (dezoom)
  • =: reset scale

Modes:

  • <return>: normal mode, default
  • i: free selection mode
  • v: rectangle selection mode
  • c: camera mode [not implemented]

Mouse control

Right click and left click are the same, except right click reset selection before taking effect.

  • Click: free selection.
  • Shift + Click: rectangle selection.
  • Click while selecting: end selection.

License

Copyright (c) 2021 KikooDX

This project is under the MIT license. See LICENSE for more details.