r/lua • • 3d ago

Project I made an open source map editing tool for LOVE2d+g3d games

https://github.com/666mayn/LOVE2d-g3d-map-editor

You can easily integrate this simple g3d map editor into your game project to make creating maps a breeze, as long as it has g3d repo library. The editor doesn't interfere with or require other libraries. I just thought I'd share for any solo devs making a g3d love2d game. It essentially expects you to have 'map_editor/' in your root folder with all of the files in the LOVE2d-g3d-native-map-editor repo inside, and then you just write in your calls to open it in your game + save your texture types to the appropriate files. I'm really trying to get this out for the very few projects there seem to be for LOVE2d+g3d, I know it can be of great use to these specific developers, and developers looking for swift options in solo game development, as LOVE2d has been such a cherished engine for such development. That said, after about a year of playing around with LOVE2d and g3d, I decided this is just about the best tool I've made for my own solo development, and that I'd share. So here it is. Updated, polished, and packaged for integration.

15 Upvotes

10 comments sorted by

2

u/666mayn 3d ago

If this is against the rules, I will remove the post, just trying to share the tool for love2d devs

2

u/Overall-Speed8026 3d ago

I think everything is okay

2

u/emilrueh 3d ago edited 3d ago

would love to see some example outputs or screenshots, either here or straight in your repo's readme to visualize what this is actually doing

2

u/666mayn 2d ago edited 2d ago

Love this idea and will be executing this, hopefully if I get a few hours today I'll post a follow up with some in-editor screenshots and clips.

Edit: All repos updated to include in-app screenshots ('reference_screenshots/')

2

u/emilrueh 2d ago

looks great, though one more suggestion would be to put at least one of the images right at the top of your readme right after the short description so it can shine with colors immediately!

1

u/666mayn 2d ago

Good call, I'll do that, thanks for the feedback!

1

u/666mayn 2d ago

For those just now seeing this, there are now added screenshots in the repo, so you can see what it looks like to use the editor in your own projects. Updates coming for a few small fixes. Thanks for checking it out!

1

u/Inst2f 2d ago

Can you compare it with Tiled

1

u/666mayn 2d ago edited 2d ago

Yeah! My map editor is an in-engine (in-game) 3D Voxel editor, it's built to be used with the groverburger/g3d repository, you can build maps, export them, and test them, all inside of the in-engine editor ran through your own game. You can even wire it to existing textures in your game and place them like minecraft blocks in the editor, followed by one-button testing for ease, and one-button exporting for ease. All built around workflow for the developer. Tiled builds maps by making a tiled file that then has to be translated by a tool you build yourself, or manually, which is undesirable in many situations. The only things Tiled can do that this is can't is create new textures. This isn't a texture creator, more akin to a texture applicator.

0

u/AutoModerator 3d ago

Hi! It looks like you're posting about Love2D which implements its own API (application programming interface) and most of the functions you'll use when developing a game within Love will exist within Love but not within the broader Lua ecosystem. However, we still encourage you to post here if your question is related to a Love2D project but the question is about the Lua language specifically, including but not limited to: syntax, language idioms, best practices, particular language features such as coroutines and metatables, Lua libraries and ecosystem, etc.

If your question is about the Love2D API, start here: https://love2d-community.github.io/love-api/

If you're looking for the main Love2D community, most of the active community members frequent the following three places:

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.