Skip to content
Benedikt S. Vogler edited this page Apr 5, 2016 · 3 revisions

The map editor can be opened by entering "editor" in the console (console commands) or calling the method WE.startEditor(). it can be leaved by pressing the ESC key.

![screenshot of editor tools](https://github.com/BSVogler/WurfelEngineSDK/wiki/editor tools.png)

The editor has some tools which work like in a drawing application.

The Tools

  • The pen tool allows drawing of blocks. A "click drag" only uses the z level used for placing the first block when the mouse went down.
  • The bucket tool allows filling a rectangular field. Click, drag and release to fill an area.
  • The paint roller tool allows replacing the material of already set blocks.
  • The cursor tool allows selecting entities to move or delete them. Selected entities can be moved when the cursor has the drag cursor. Selected entities can be deleted by pressing the del key.
  • The entity tool allows placing entities. Entities must be registered to the editor. AbstractEntity.registerEntity(String name, Class<? extends AbstractEntity> entityClass);
  • The eraser tool is bound to the right mouse button. It can bind to the left mouse button by selecting it with the left mouse button

To change the value of a block or entity the text field below the tools can be used.

Keyboard commands

  • Q, R : move selected entities up or down
  • Shift + WASD: scroll faster
  • Command + Z: undo
  • Command + Shift + Z: redo
  • DEL: delete entities
Clone this wiki locally