Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / svg and shape editor
- - By sylvain303 Date 2017-01-14 17:29
Hi,

Long time ago, here : https://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=7742;hl=editor

I was looking for some code already produced, that can be freely modified for a game editor (load, save, mouse click, tool selector, undo/redo, etc.)

The idea was to load an image and visually set a path over the picture. Then save the path as an asset to be loaded by the game to have a shape associated with the image.

Not only for collision  but also for modeling some area for a qix game like.

Do you know such code, or just svg code, or shape editor for chipmunk shape…

Any suggestion is welcome.
I'm coding it in ruby + gosu.

Sylvain.
Parent - By sylvain303 Date 2017-01-17 08:09
Some hint here about relations between svg primitives and image drawing with rmagick: https://rmagick.github.io/usage.html#drawing_on

>ImageMagick supports a set of 2D drawing commands that are very similar to the commands and elements defined by
> the W3C's Scalable Vector Graphics (SVG) 1.1 Specification. In RMagick, each command (called a primitive) is implemented
> as a method in the Draw class.


How do you build your shape (the polygon or the list of geometrical shape) for chipmunk associated with any element of the game, the player sprite or any monster or the playground?
Up Topic Gosu / Gosu Exchange / svg and shape editor

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill