Users browsing this thread: 1 Guest(s)
Extracting sprites from HTML5 game?
#1
Anyone could tell me how to do it?
Reply
Thanked by:
#2
This is actually quite simple.
Here is what I will use to make my example: http://www.ahlgreen.net/WP/5/index.html
If you open the code of said page (press F12 or CTRL+U), you will see a line like this:
"<body onload="Sburb.initialize('JterniaDeploy','levels/tsestuck/openbound.xml','true');">"
(This line is specifically for this game. It would normally look like this: "<script type="text/javascript" src="SOMEFILENAME"></script>")
With something as simple as this, you can just go into the URL and replace index.html with "levels/tsestuck/openbound.xml". Doing so, will send you to this page: http://www.ahlgreen.net/WP/5/levels/tses...nbound.xml
Here you'll be able to see all the code in that file. (Normally a Javascript file, but an xml file for this game.)
Whatever file you get into, you'll want to look for stuff with .png.
Once you've found something like "interface/icons_spade.png", you'd replace "levels/tsestuck/openbound.xml" with "interface/icons_spade.png", but because of the way this game was made, you'll want  to write "resources/tsestuck/interface/icons_spade.png" instead of "interface/icons_spade.png". This will lead you to the image (http://www.ahlgreen.net/WP/5/resources/t..._spade.png), which you can easilly download.

If you have any questions, let me know.

- MadCreativity
Reply
Thanked by:
#3
but how do i do to get the assets in this website
https://emea.iframed.cn.dmti.cloud/conte...index.html
Reply
Thanked by:


Forum Jump: