Git Product home page Git Product logo

Comments (6)

jubalh avatar jubalh commented on June 5, 2024

Here we are just using bmp files too.

My goal was to switch to Tiled map editor, and then use tmx to parse the files.

I also created an issue about adding a raylib example to tmx. Also pinged @raysan5 about it. But so far it seems noone had time (me neither).

Good luck, @titus-shoats

from raymario.

raysan5 avatar raysan5 commented on June 5, 2024

Hi @titus-shoats and @jubalh! Completely agree that creating the maps directly on a .txt file or even using pixel colors on a .bmp file is cumbersome.

Using a tile editor like Tiled or tIDE is desired but raylib can not import that data, a tmx importer should be used... but tmx fileformat is not simple, it has a lot of features and importing it to raylib requires some work.

Fortunately, right now I'm working on a set of small tools for gamedev, based on raylib. Planning to build a simple and easy-to-use tile editor very soon.

I'll keep you updated!

from raymario.

jubalh avatar jubalh commented on June 5, 2024

@raysan5 sounds nice.

I think many people already are familiar with Tiled and use it in other projects.
Having in example on how to use the tmx C library (mentioned above) with raylib would in my opinion:

  • help bring new people to raylib who already use something else (love2d for example) for prototyping , did their maps with tiled (most lua folks probabably) and now want to use C to get something nice
  • help existing raylib users to easily create maps

Using Tiled would also distribute the workload. I understand you are doing many things, and maintaining a seperate tile map editor might be just too troublesome at times. Supporting an existing tool and sharing responsibilities sounds to me like the way to go.

Here is an example showing how people use tmx with sdl. They have another one for allegro. For someone who knows the internals of raylib, it should be fairly easy to modify that example to show how its done with raylib.

from raymario.

titus-shoats avatar titus-shoats commented on June 5, 2024

Yea I think allegro has a few tutorials on how to use tiled/tmx with their platform. But either way, @raysan5 please keep me updated whenever your done with your tile editor for raylib. Thanks

from raymario.

raysan5 avatar raysan5 commented on June 5, 2024

Hi @jubalh, please, don't misunderstood me, you're right, supporting Tiled tmx format is undoubtly the best option for most of the users that are already familiar with this amazing tool but tmx is a complex format with lot of features and also requires an additional external library.

My idea is creating a simple tool to just export a plain .txt or .bmp that can be directly imported and used by raylib with a couple of simple functions. Something way smaller than Tiled and simpler than tmx format. Also for the fun of creating it.

from raymario.

jubalh avatar jubalh commented on June 5, 2024

I understand. But I am not sure why you say that tmx is complicated, I mean I dont understand why that matters. I am not suggestring rewriting but using the existing tmx lib.

from raymario.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.