GauntletLevelEditor
Unity Editor tool used for designing, drawing, and exporting 2D levels for a Gauntlet-like game, using UIElements and Scriptable Objects.
Install / Use
/learn @AlessandroPro/GauntletLevelEditorREADME
Gauntlet Level Editor
Imported from GitLab. <br> All relevant C# code is in /Assets/Editor/.
This is a C# Unity Editor Tool used for designing, drawing, and exporting 2D level maps based on the classic Gauntlet video game: <br> https://www.youtube.com/watch?v=7mMJio2MO6w
This tool includes windows for creating and designing prefabs (enemies, spawn factories, items, ground tiles, etc.) and a map editor window for designing levels through the placement of these prefabs. With the click of a button, all maps will be bundled together and exported (including all sprite assets and object data in the form of json files). This data can then be easily loaded into a separately written C++ Gauntlet game, outside of Unity. <br> Map and prefab data is managed internally through scriptable objects that are saved within the Unity project, in case you want to close Unity and open it again to continue working another time. This repo already contains a few maps and prefabs already created, saved under Assets/Resources/Gauntlet/.
Main Window:
How to use this tool:
Go to Tools -> Gauntlet Level Editor to launch the editor.
To start editing a level, select an existing level from the object field in the left pane, or create a new one with the "Create New Level" button of the size of your choosing. You can also select an existing game, and open one of its levels to edit.
There is currently one game in this repo, with 4 levels. Add levels to the game using the buttons on the left. You can have more than one "game", each with its own list of levels. If you create any new objects (game, levels, prefabs), they will automatically be put in the correct folders.
Use the "Create/Edit Prefab" button in the right to open a sub window depending on your selection. From this window, you can create or select a prefab scriptable object and select its sprite, and edit its information, then you can use thatsprite to draw on the map.
DRAWING:
Select a prefab from the list in the right pane, and click or drag along tiles to paint on the map. Check the 'Erase Mode' box to erase the tiles you click or drag on. There are 3 layers, rendered in order. You can choose the layer to paint on. You can also choose which layers are visible.
EXPORTING (to the game):
You must have a "Game" scriptable object loaded in the top left object field in order to export, as well as a player in the player field in the left pane. A "Game" consists of a list of levels and one player object. All of the map objects are being saved when exporting, along with the player in the first level.
When the "Save Game Data" button is clicked, a file dialog will open asking for a save directory (not file). You MUST choose the Assets folder of where a C++ Gauntlet game project resides, within it's GauntletGame/Build/Assets folder. So, you'll need a C++ Gauntlet game to test exporting and loading into the game. <br> Once the folder is selected, the export will begin:
- a level json file will be created for each level in the game and put into the /Levels folder.
- A json file with the list of levels in the game will also be placed in the /Levels folder.
- Textures and prefabs, and their meta files, will be created/copied into their respective /Prefabs or /Images folder. Files with the same name will be overwritten.
With an instance of the Gauntlet Game, all you need to do is run the game and it should play as expected.
SAVING (tool data):
All data within the scriptable objects are saved, even when Unity closes, so all work done in the tool should be safe upon closing.
EXISTING ASSETS:
Assets/Resources/Gauntlet/GameSprites -> drag these sprites into prefab object sprite fields (these will be drawn) Assets/Resources/Gauntlet/GameData -> scriptable objects for each game Assets/Resources/Gauntlet/LevelData -> scriptable objects for each level Assets/Resources/Gauntlet/Prefabs -> scriptable objects for each prefab that can be drawn on the map
The following screenshots show the main level editor window with the right side popup window for creating/editing prefabs.
Related Skills
clearshot
Structured screenshot analysis for UI implementation and critique. Analyzes every UI screenshot with a 5×5 spatial grid, full element inventory, and design system extraction — facts and taste together, every time. Escalates to full implementation blueprint when building. Trigger on any digital interface image file (png, jpg, gif, webp — websites, apps, dashboards, mockups, wireframes) or commands like 'analyse this screenshot,' 'rebuild this,' 'match this design,' 'clone this.' Skip for non-UI images (photos, memes, charts) unless the user explicitly wants to build a UI from them. Does NOT trigger on HTML source code, CSS, SVGs, or any code pasted as text.
openpencil
2.0kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
HappyColorBlend
HappyColorBlendVibe Project Guidelines Project Overview HappyColorBlendVibe is a Figma plugin for color palette generation with advanced tint/shade blending capabilities. It allows designers to
Flyaro-waffle-app
Waffle Delight - Full Stack MERN Application Rules & Documentation Project Overview A comprehensive waffle delivery application built with MERN stack featuring premium UI/UX, admin management, a
