Difference between revisions of "How to create smooth levels using Inkscape"

From X-Moto
Jump to: navigation, search
 
Line 10: Line 10:
 
== Draw the level ==
 
== Draw the level ==
  
Using Inkscape
+
Open Inkscape.
 +
 
 +
[[Image:inkscape-empty.png]]
 +
 
 +
Press Shift+Ctrl+D to open file properties and choose the file dimensions. They must be in pixel unit (px).
 +
 
 +
[[Image:inskcape-preferences.png]]
 +
 
 +
You're ready to draw your level using Inskcape. See Inskcape howto's from the help menu.
 +
 
 +
[[Image:inskcape-drawn.png]]
 +
 
 +
== Transform all objects into paths ==
 +
 
 +
Inskcape deals with its own shapes like stars, circles, ... so you have to convert them to path of vertex.
 +
Disclaimer: don't put objects properties before transforming them to paths ! Else properties will be lost... Inkscape remove them.
 +
 
 +
 
  
 
== Level objects properties ==
 
== Level objects properties ==
  
Sprites, blocks and entities properties
+
Once your level is drawn, you have to put entities, blocks and sprites properties.
 +
 
  
 
== Generate level file ==
 
== Generate level file ==
  
 
  $ python svg2lvl.py level.svg 100 level.lvl [level.lua]
 
  $ python svg2lvl.py level.svg 100 level.lvl [level.lua]

Revision as of 11:18, 12 August 2006

To be completed when i'll be more motivated to take screenshots...


Required softwares

  • Inkscape (>= 0.43)
  • Python (>= 2.4)
  • Svg2lvl converter (need to put converter files somewhere in a cvs before)

Draw the level

Open Inkscape.

Inkscape-empty.png

Press Shift+Ctrl+D to open file properties and choose the file dimensions. They must be in pixel unit (px).

Inskcape-preferences.png

You're ready to draw your level using Inskcape. See Inskcape howto's from the help menu.

Inskcape-drawn.png

Transform all objects into paths

Inskcape deals with its own shapes like stars, circles, ... so you have to convert them to path of vertex. Disclaimer: don't put objects properties before transforming them to paths ! Else properties will be lost... Inkscape remove them.


Level objects properties

Once your level is drawn, you have to put entities, blocks and sprites properties.


Generate level file

$ python svg2lvl.py level.svg 100 level.lvl [level.lua]