BASIC

Author Topic: Tiled Map Loader and Generic Tile Map Renderer  (Read 2999 times)

Offline GarBenjamin

  • Mr. Drawsprite
  • **
  • Posts: 81
    • View Profile
Hello GLBasic developers.

I recently came to these forums in my quest to try out GLBasic (one of many frameworks on my list).

Although I did not spend much time with the language I wanted to give something back to this community. I appreciate you answering my questions about web development support in GLBasic and just being all around nice folks.

So... I have released the code I created to load Tiled Maps and to render those maps (or any maps for that matter).

You can download it from here (bottom of the page):
http://garsgames.com/blog/game-development/testing-2d-game-development-systems/review-glbasic-2d-game-development/

Keep on coding! :)
« Last Edit: 2015-Oct-10 by GarBenjamin »

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1142
    • View Profile
    • My GLBasic code archiv
Hi and thank you for your feedback. I did not try your code, but I did read your review. I want to add a few points (that you probably found out since you started anyways, but who knows):
  • You can use all premium features in free version too, not only all build targets (like you tried with HTML5), but also all other features like 3D, network, Inline etc. Then your program will be build in Testmode and only run for a few minutes, but thats enough to learn and test those features.
  • Its correct that GLBasic does not support full OOP (at least not without Inline C++), but you can add functions to Types, so you can accees your types/classes data with this methods. So thats at least some basic OOO and it really helps to keep your project structured, design logical modules and avoid code duplication.
  • IMHO HTML5 development stopped in the middle and was never really finished. But the last time I tried it (ages ago) it was working (and running in browser of cause) to some basic degree. You just need to follow some special way that HTML demands your project to be layouted, just compiling your normal GLBasic program would not work unfortunately. Check this Thread
  • Also note that there was a Community approach to write a GLBasic HTML5 compiler that worked pretty well. See this thread from there you get to his personal website, the project website and the Github project. Note that I did not try it for ages.

hope this will help you, in case you decide to stick here for some more time.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Offline GarBenjamin

  • Mr. Drawsprite
  • **
  • Posts: 81
    • View Profile
Thanks!

I will grab the 123Basic compiler from GitHub and check it out.

As much as I am tempted to actually dig into the source and try to upgrade it I really don't want to go down that rabbit hole. I originally started my quest to check out other 2D game development frameworks so I could get more done (game dev wise) in less time.

So I will try to just download test it out and leave it at that!

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4116
    • View Profile
    • Portfolio
Nice code!

If your primary reason is a search for web dev only, as you stated a few times, there sure are other tools to specifically fit your bill, code and object wise.
Each and every tool with its own problems as you shall discover, but coding is the art of going around ;)
One main feature on GLB is its native support, so knowledge goes on as you switch tools.

GLB has a bootstart on html5, but it is limited on what its use can do in comparison with what GLB can do on other more native platforms.
The full GLB+html5 is still unknown to most of us, specially on the testing level.
I have seem some advanced users here doing nice stuff with it, not final projects, but ´demos´ that gets there.
By that I´m convinced that it works, how, is another question (that also includes the debugging framework you talked before and how to embend it on a page).

If you decide to stick around and put some time into it, we may all figure it out.
Otherwise, I heard some LUA based coding tools for html5 are ok, and some users here do so on multiple coding tools (and we all came from other tools(me=AMOS)) and they may be able to share more alternatives to your current case, as you probably saw on the off topic subject, where we once in while talk about newer/older dev tools.

Here is Albert´s post of html5 version of Wampu´s absolutely marvelous code:
https://dl.dropboxusercontent.com/u/292449/html5/Iso/isometricdemo.html

Of course take a read on the original thread should you want:
 http://www.glbasic.com/forum/index.php?topic=8152.0

Cheers!

edit: be aware that this GLB html´s code is from april 2013...some configs in app may not be supported on today´s browsers as they constantly change stuff. Click on the red stripes to pull down configurations.

edit2: That rabbit hole you stated does not need to be that deep as looking into the 123´s source, surface testing GLB´s html5 stuff should do, but I think you may need the help of the more html5 coders here to boot should they be around.
« Last Edit: 2015-Aug-11 by erico »

Offline GarBenjamin

  • Mr. Drawsprite
  • **
  • Posts: 81
    • View Profile
I am just trying to find the best all around 2D game development framework.

For me "best" is defined as:

  • "normal" code-oriented development style (I use graphics programs to create graphics, I use Map Editors to build maps, I write code to bring it all together)
  • supports multiple platforms: Desktop (Windows, Linux, Mac) and Web (HTML5 and / or OpenFL)
  • lends itself to Rapid Game Development (I want to get as much done as quickly as possible so basically this just means having a strong foundation of game programming oriented commands I can use)

Basically the reason I am looking for web support is because these days it is the easiest most common way of sharing demos, previews, examples and so forth. Maybe 1 in a 1,000 people will download a game (or demo) compared to perhaps 1 in 10 being willing to try an online version of the very same thing. Web apps are just seen as way more accessible requiring far less investment on the part of the user.

When it comes to actually releasing stuff for sale I would use the desktop platforms. Getting the people's interest and the "try before you buy" comes from the online version.

I just spent an hour messing around with the compiler and never was able to get it to actually work. I think mainly because I do not know what arguments to feed it. More than that I went into the source and hard-coded the information specific to the test I was trying to compile and it made it past that part and failed on something else.

At this point I am going to continue on my list and check out one or two more items.

If I get some more time it might be an interesting project just to mess around with HTML5 in GLBasic. Right now I just don't want to get sidetracked from what I set out to do originally. :)

« Last Edit: 2015-Aug-12 by GarBenjamin »

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4116
    • View Profile
    • Portfolio
Your call.

I lately stumbled into this other engine:
http://www.xojo.com/

I did not read much about it yet, was thinking about asking people around here for such as a friend of mine, mac owner, was interested.
Maybe it fits you as well.