8-bit cell hack
Parameter buffer (#6)
Adaptive window size.
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.
Subject to change.
src/conf.zig
).Runtime requirements: raylib.
https://builds.sr.ht/~kikoodx/kble
Build requirements: Zig master branch,
raylib. For Arch users, I made
kble-git
available in the AUR.
$ # Clone this repository
$ git clone https://git.sr.ht/~kikoodx/kble && cd kble
$ zig build
$ zig-cache/bin/kble
Press escape to close the program.
Not available on Windows. Accept a path to KBLE file to open.
If the file doesn't exist, the given path will be used for saving.
Defaults to level.kble
if no argument given.
$ kble #level.kble
$ kble sample.kble
$ kble $HOME/projects/kble/sample.kble
In src/conf.zig
, edit values from BEGIN USER CONFIG
.
The configuration is applied at compile time. You have the possibility to:
Repetition/parameter:
0
→ 9
: behavior similar to Vi.Movement:
h
: leftj
: downk
: upl
: righty
: up-leftu
: up-rightb
: down-leftn
: down-rightVerbs:
<space>
: clear selectiond
: delete selectionr
: replace selection with parameter+
: increase scale (zoom)-
: decrease scale (dezoom)=
: reset scaleFile (read/write):
e
: read (load) levelw
: write (save) levelkbleformat.md
for technical informations.Parameter buffer (change default value of verb calls):
p
: set parameter buffer to current parameter (defaults to 1)P
: set the tile ID the keyboard cursor is on as parameter bufferModes:
<return>
: normal mode, defaulti
: free selection modev
: rectangle selection modeI
: free unselection modeV
: rectangle unselection modec
: camera mode [not implemented]Safety backups are made when:
backup_read.kble
)backup_exit.kble
)Copyright (c) 2021 KikooDX
This project is under the MIT license. See LICENSE for more details.