[svg,python,pygame,xml] Amazing project I'm working on.
Posted: Sun May 31, 2015 5:05 pm
I'm making Inkscape into a level editor for pygame. In otherwords, I'm converting an svg file to pygame objects.
I start in inkscape and just drop in a bunch of images:
I'll then edit line three of convert.py and add foresttest.svg.
Here's convert.py:
convert.py requires the file template.py
In the terminal i'll run
It will print:
Then it will make test.py, the pygame program.
Then I'll type:
and this will appear:
It's still very basic and I'm going to be spending every weekend working on this for the next few months, but at the moment it's ready to show off.
My goal is to be able to make large detailed game levels that are easy build a game in.
edit: none of the art is mine. I'm using it to help with the programming.
Also, any feedback is welcome.
I start in inkscape and just drop in a bunch of images:
I'll then edit line three of convert.py and add foresttest.svg.
Here's convert.py:
convert.py requires the file template.py
In the terminal i'll run
Code: Select all
$ python convert.py
Code: Select all
------------------------------
COUNT OBJECTS IN FILE:38
------------------------------
Then I'll type:
Code: Select all
$ python test.py
It's still very basic and I'm going to be spending every weekend working on this for the next few months, but at the moment it's ready to show off.
My goal is to be able to make large detailed game levels that are easy build a game in.
edit: none of the art is mine. I'm using it to help with the programming.
Also, any feedback is welcome.