• Stars
    star
    172
  • Rank 221,201 (Top 5 %)
  • Language
    Rust
  • License
    Other
  • Created over 2 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Your Own Level Editor Creation Kit

Build Status Latest Version Rust Documentation

Bevy YOLECK - Your Own Level Editor Creation Kit

Yoleck is a crate for having a game built with the Bevy game engine act as its own level editor.

Features

  • Same executable can launch in either game mode or editor mode, depending on the plugins added to the app.
  • Write systems that create entities based on serializable structs - use same systems for both loading the levels and visualizing them in the editor.
  • Entity editing is done with egui widgets that edit these structs.
  • Support for external plugins that offer more visual editing.
    • One simple such plugin - Vpeol is included in the crate. It provides basic entity selection, positioning with mouse dragging, and basic camera control. It has two variants behind feature flags - vpeol_2d and vpeol_3d.
  • A knobs mechanism for more visual editing.
  • Playtest the levels inside the editor.
  • Multiple entity selection in the editor with the Shift key.

Examples:

File Format

Yoleck saves the levels in JSON files that have the .yol extension. A .yol file's top level is a tuple (actually JSON array) of three values:

  • File metadata - e.g. Yoleck version.
  • Level data (placeholder - currently an empty object)
  • List of entities.

Each entity is a tuple of two values:

  • Entity metadata - e.g. its type.
  • Entity componments - that's the user defined structs.

The reason tuples are used instead of objects is to ensure ordering - to guarantee the metadata can be read before the data. This is important because the metadata is needed to parse the data.

Yoleck generates another JSON file in the same directory as the .yol files called index.yoli. The purpose of this file is to let the game know what level are available to it (in WASM, for example, the asset server cannot look at a directory's contents). The index file contains a tuple of two values:

  • Index metadata - e.g. Yoleck version.
  • List of objects, each contain a path to a level file relative to the index file.

Versions

bevy bevy-yoleck bevy_egui
0.12 0.16, 0.17 0.23
0.11 0.15 0.22
0.11 0.13 - 0.14 0.21
0.10 0.7 - 0.12 0.20
0.9 0.5, 0.6 0.19
0.9 0.4 0.17
0.8 0.3 0.15
0.7 0.1, 0.2 0.14

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

More Repositories

1

rust-typed-builder

Compile-time type-checked builder derive
Rust
847
star
2

vim-vebugger

Yes, we do need another debugger plugin
Vim Script
425
star
3

vim-merginal

Fugitive extension to manage and merge Git branches
Vim Script
277
star
4

bevy-tnua

A floating character controller for Bevy
Rust
203
star
5

rust-smart-default

Rust macro for automatically generating default
Rust
126
star
6

vim-dutyl

Coordinate D tools to work together for you
Vim Script
79
star
7

vim-smile

The power of :smile available to everyone
Vim Script
30
star
8

bevy-egui-kbgp

Better keyboard and gamepad story for egui in Bevy
Rust
20
star
9

nvim-moonicipal

Task runner with focus on rapidly changing personal tasks
Lua
15
star
10

nu_plugin_skim

Rust
14
star
11

woab

Widgets on Actors Bridge - a GUI microframework for combining GTK with Actix
Rust
14
star
12

vim-yankitute

regex powered yank+substitute
Vim Script
13
star
13

vim-makecfg

Database of `makeprg` and `errorformat` settings
Vim Script
13
star
14

vim-casetrate

Modify the case of identifiers
Vim Script
11
star
15

vimConfig

My vim configurations
Lua
11
star
16

rust-powerset-enum

Rust
11
star
17

nvim-impairative

Lua
11
star
18

vim-omnipytent

The all powerful Pythonic task runner
Python
10
star
19

nvim-buffls

Add LSP functionality to specific Neovim buffers
Lua
9
star
20

bevy-yoetz

Rust
8
star
21

rust-inherent-pub

Rust
7
star
22

vim-erroneous

The right way to handle errors
Vim Script
7
star
23

nvim-channelot

Operate Neovim jobs from Lua coroutines
Lua
6
star
24

breeze.vim

Html navigation like vim-easymotion, tag matching, tag highlighting and DOM navigation
Python
6
star
25

nvim-days-without

Lua
6
star
26

nvim-blunder

Run commands in the builtin terminal and parse their output to the quickfix list
Lua
4
star
27

vim-integrake

Abuse Rake to do project chores around Vim
Ruby
3
star
28

vim-tabnine-completefunc

A TabNine completefunc for Vim
Vim Script
2
star
29

vim-terminalogy

Show and tell with a shell
Vim Script
2
star
30

sidekick-jam-entry-danger-doofus

Rust
1
star
31

kosem

Test wizard for semi-automatic testing
Rust
1
star
32

rust-poc-macro-emit-data

Rust
1
star
33

bevy-game-jam-1-entry

Rust
1
star