Hello, i made a simple map editor that i wanted to share. Im a beginner in c++, and programming in general, so thats why i wanted a opinion on this code i wrote.
I attached a rar so u can download the program. And i attached another one with the code.
If you want to the code, you are free to use it as you wish.
I had to upload the rar with exe on other site since its too big for attachment.
http://speedy.sh/GkzyH/map-editor.rar--------------- GENERAL: HOW TO USE ----------------------
FEATURES:
Keybinds:
R - Create Layer
T - Delete layer
Q - Previous Layer
E - Next Layer
C - Set Tile Collision
X - Hide Tile Collision Indicators
G - Hide Tile (Set visibility)
H - Hide Layer (Set layer visibility)
L - Save Map
W A S D - move through palette
UP DOWN LEFT RIGHT - navigate through map
Map Editor
Good practices, avoiding bugs or unexpected behavior:
- Map size (x and y) should be dividable with the tile size.
- Saving often is advisible, and it only takes a fraction of a second.
- Found a bug ? Write/Report it immediatly.
Notes:
- You can create unlimited number of tiles.
- All tiles in a newly created layer will be transparent but VISIBLE. (Transparent tile from tileset)
- You can only delete the last layer unlike creating, and the active layer has to be that one also.
- Hidden layer, hidden transparent tile might at first look can seem like something is bugged, but likely is not.
- Its save to close anyway once you save the map.
Known bugs:
- None found.
To-Do (top->down priority):
- Fix new bugs if found.
- Make it more exepction-safe. (e.g. typing the map name with space inbetween will not crash the editor
- New brushes for faster editing. (Rectangle 2x2 and bigger sizes)
Pls try to explain the mistakes i made, tell me if i made some grave mistakes that i should fix.
im also having trouble finding the right coding style (cant decide if i should put an underscore in parameters and similar)
code can crash if u do something you re not supposed, or type random stuff in console when asked something else.
THX