andy This is a thread for talking about what I've been doing here, and discussing how to improve it. This site is a Flarum forum with one custom extension installed: https://github.com/andybalaam/flarum-ext-rabbitescape-leveleditor That extension embeds the level editor: https://github.com/andybalaam/rabbit-escape-level-editor The Flarum extension is a tiny bit of PHP and mostly JavaScript. The level editor is written in Elm. Contributions and suggestions are welcomed for both to make this site better.
andy Things I have done so far: Worked out how to get Flarum running locally Worked out how to make a Flarum extension Upgraded the level editor to Elm 0.19 Made a view-only mode for the level editor Fixed the level editor to look in the right place for images Added a full-screen button Allow hiding/showing the code of a level in the post
andy Things I plan to do: Allow editing a level when you edit a post (this will take a bit of doing I think because the level editor at the moment assumes it has the whole screen at its disposal) Improve the level editor, combining all the "choose rabbit/block/token" things into one, and adding a separate "remove" button. https://github.com/andybalaam/rabbit-escape-level-editor/issues/2 Suggestions welcome.
tttppp andy Perhaps having a selection of recently used buttons? Perhaps just one? This would help when drawing the background, as I seemed to flick between dirt and remove a lot. Maybe a quick way to remove things from the current layer you're adding to?
andy Nice to have: Direct link so we pull a level out of git instead of pasting it into the forum. https://github.com/andybalaam/rabbit-escape-level-editor/issues/3
andy Also needed: Allow properties of objects e.g. :*=r{prop1=val} https://github.com/andybalaam/rabbit-escape-level-editor/issues/4
andy Also: Display the abilities available and number to save in View mode. https://github.com/andybalaam/rabbit-escape-level-editor/issues/5
andy tttppp I have toyed with the idea of clicking again removing the thing you are doing i.e. if you are adding dirt blocks and you add one extra, if you click again as if trying to re-add it, it will disappear. Sounds like that might work with what you were doing? https://github.com/andybalaam/rabbit-escape-level-editor/issues/6
andy I have now added the level editor for actually editing levels. Please try it out and tell me what works and doesn't work. Todo: Image or something attractive instead of "<show level editor>"? https://github.com/andybalaam/rabbit-escape-level-editor/issues/7 Fix problem where many "<show code>"s appear e.g. if you like and unlike a post lots of times https://github.com/andybalaam/rabbit-escape-level-editor/issues/10 Allow exiting the level editor when the code does not parse https://github.com/andybalaam/rabbit-escape-level-editor/issues/11 Is it OK that there is only a "save" button to exit editing the level? You are not actually saving because you go back into "edit post" mode. Is it OK that to edit a level you have to click "...", then "Edit", then "<show level editor>"? Is it too many steps?
tttppp #rMO r#r# #t# #O# :author_name=tttppp :bash=5 :bridge=2 :brolly=1 :block=1 :name=Flag N I think this might be possible, but I was mainly testing the level editor on my phone.
tttppp I found the save button easily. I did not find out how to edit the level. Maybe that answers those two questions?
andy Maybe "Show Level Editor" should be a button next to "Post Discussion"/"Post Reply"? With a colourful icon to draw attention to it.
andy @tttppp was it clear you needed to "Post Reply" after clicking the Save button in the level editor?
andy I made a video on how to create levels and posted it here: https://www.artificialworlds.net/rabbit-escape/create-levels.html
tttppp It was clear to me. The post might have more information than just the level. E.g. I added a little message explaining it.