DescentBB
http://www.descentbb.net/

[svg,python,pygame,xml] Amazing project I'm working on.
http://www.descentbb.net/viewtopic.php?f=7&t=22132
Page 1 of 1

Author:  Isaac [ Sun May 31, 2015 5:05 pm ]
Post subject:  [svg,python,pygame,xml] Amazing project I'm working on.

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:

Image

I'll then edit line three of convert.py and add foresttest.svg.
Here's convert.py: http://pastebin.com/miM2bSsE
convert.py requires the file template.py http://pastebin.com/UYZXpQuY
In the terminal i'll run
Code:
$ python convert.py


It will print:
Code:
------------------------------

   COUNT OBJECTS IN FILE:38   
------------------------------


Then it will make test.py, the pygame program.

Then I'll type:
Code:
$ python test.py

and this will appear:
Image

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.

Author:  fliptw [ Tue Jun 02, 2015 1:59 pm ]
Post subject:  Re: [svg,python,pygame,xml] Amazing project I'm working on.

your better off making your own editor, rather than trying to hamfist poor old inkscape into doing it for you.

its also the wrong work flow for game design.

Author:  Isaac [ Tue Jun 02, 2015 2:43 pm ]
Post subject:  Re: [svg,python,pygame,xml] Amazing project I'm working on.

fliptw wrote:
your better off making your own editor, rather than trying to hamfist poor old inkscape into doing it for you.

its also the wrong work flow for game design.


Because... edit: **crickets**

Author:  fliptw [ Tue Jun 02, 2015 6:12 pm ]
Post subject:  Re: [svg,python,pygame,xml] Amazing project I'm working on.

graphics aren't game play.

Author:  Isaac [ Tue Jun 02, 2015 7:00 pm ]
Post subject:  Re: [svg,python,pygame,xml] Amazing project I'm working on.

fliptw wrote:
graphics aren't game play.


Well thank you for your feedback. I will take that into consideration.

Page 1 of 1 All times are UTC-06:00
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/