Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (777)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [WoW-2D] TiledMap Parsing  (Read 563 times)
0 Members and 1 Guest are viewing this topic.
Offline SolitudeGaming

Senior Devvie


Medals: 7
Projects: 2



« Posted 2018-11-11 15:58:43 »

Hey everyone!

While working on WoW-2D, I had to build my own Tiled parser which I've done before. If anyone has experience with parsing out TiledMaps (tmx) themselves, I need some pointers on how I could possibly make the code I've done even faster.
With my current code, a 50x50 map takes between 200-300ms to load. Here is my gist with all of the parsing/generation code: Tiled Gist

More specifically, if you look at the class 'TiledLayer,' I'm looking for a way to make that generation faster. If anyone has any pointers, please let me know Smiley

Thank you!
Offline ral0r2
« Reply #1 - Posted 2018-11-11 16:53:40 »

Link to your Gist doesnt work for me.
May I ask why you decided to build your own parser and not taking the one of your engine or an open source one?
Offline SolitudeGaming

Senior Devvie


Medals: 7
Projects: 2



« Reply #2 - Posted 2018-11-12 01:14:15 »

Link to your Gist doesnt work for me.
May I ask why you decided to build your own parser and not taking the one of your engine or an open source one?
My GitHub got flagged, most likely due to their spam-detection system. Some people have gotten wrongfully flagged when posting gists. Working on getting it fixed.
I wrote my own parser because my project will require specifics later down the road that Slick2D doesn't offer and, frankly, I don't like how Slicks Tiled parsing/rendering works. I haven't looked at any open-source parsers yet. I also wrote my own parser just so I have the knowledge in mind, really. I've written my own before.
Pages: [1]
  ignore  |  Print  
 
 

 
hadezbladez (288 views)
2018-11-16 13:46:03

hadezbladez (157 views)
2018-11-16 13:41:33

hadezbladez (289 views)
2018-11-16 13:35:35

hadezbladez (70 views)
2018-11-16 13:32:03

EgonOlsen (2133 views)
2018-06-10 19:43:48

EgonOlsen (2151 views)
2018-06-10 19:43:44

EgonOlsen (1363 views)
2018-06-10 19:43:20

DesertCoockie (1966 views)
2018-05-13 18:23:11

nelsongames (1599 views)
2018-04-24 18:15:36

nelsongames (2247 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!