Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [AGK] Tiled Streaming Maps

Author
Message
nonom
6
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Picking mushrooms
Posted: 1st Jan 2018 02:51 Edited at: 2nd Jan 2018 12:23
Hi, I tried the tiled importers in our forums, they work great for maps with 64x64 but I'm my case I need support for huge maps.

So I was writing a little code and it works fine streaming a map of 400x400 tiles

Now I'm having some issues to scroll the view with SetViewOffset; I would like to move the player sprite around the world. Any clue how could I do that?



TestMap.csv attached

Happy new 2018 mates!

Attachments

Login to view attachments
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Jan 2018 16:26
Did you try my latest Tiled version? (see signature) It's way faster than any previous version due to how it reads the file into a memblock and operates on a binary level instead of text. It should handle a large map like yours.
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
nonom
6
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Picking mushrooms
Posted: 1st Jan 2018 16:59 Edited at: 2nd Jan 2018 02:09
I tried all of them, the latest version throws an exception loading maps over 64x64. At least in my case with 1 layer and just painting one tile.

But by other side, what I'm learning from you have no price. Thanks
nonom
6
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Picking mushrooms
Posted: 1st Jan 2018 22:54 Edited at: 2nd Jan 2018 12:30
First post updated!

Note: I'm just using Tiled to write a huge csv map filled of 0s and 1s

If you are looking for a Tiled Loader please check
https://forum.thegamecreators.com/thread/219035

Login to post a reply

Server time is: 2024-09-30 11:19:27
Your offset time is: 2024-09-30 11:19:27