That's why I mentioned converting from SVG format to JSON data. Then you can just paste the resulting JSON code directly into your JavaScript and access it's data with your game's code (because it will then be a part of your game's code). Unless you want to use the SVG as art all you seem to need to get from it are object…
Nothing is working. I read alot stuff and got more near to the destination via AJAX. Firefox seems to allow easy access to SVG which was created during runtime but NOT when they are just loaded via <object> tag. Via Ajax and jQuery i load it now after the site was loaded and trought that i got access but NOT via the easy…
Ah, that's absolutely right! I hadn't thought about that. Just shows my inexperience in the matter :poly136: I think you could frankenstein a script together that could write your final JavaScript for you given both the input of your level JSON and your game code. That way you wouldn't have to copy/paste manually during…
It's more a prototype :) I don't think that i can handle a whole game alone. When i see that the gameplay is cool and a coder wants to make it "right" then maybe. But until this happens i play around with gameplay some circles and boxes as elements :)
What exactly are you trying to do? SVG is a form of XML, you can open them up in notepad to get at the individual data elements. Maybe this link will help you with putting a SVG in your HTML. Looks like the <embed> tag works fine for a .SVG file. You can also open up the SVG in notepad and copy everything below the…