Tool for assembling modular assets?
Tool for assembling modular assets?
Does anyone know of a tool for the purpose of assembling modular assets such as Buch's and Skorpio's modular spaceship parts?
Does anyone know of a tool for the purpose of assembling modular assets such as Buch's and Skorpio's modular spaceship parts?
I'm not specifically aware of one, but I'd imagine it would be fairly easy to make something like that in Javascript.
I'd have a canvas and a selection of modules, which you can drag onto the canvas, then flip and rotate them (probably in 90 degree increments). For building space ships, a mirror image feature would also be really handy.
Thoughts?
I imagine something like the following:
Component description format
Model description format
Model generation rules description format
Simple human/machine readable/editable formats based on JSON, YAML or somesuch.
Component description format file accompanies an image file of component sprites: describing geometry, connection and classification data for each component.
Model description format specifies a model assembled from components, describing the component heirarchy.
Model generation rules description format specifies further restrictions beyond the full set of permutations.
GUIs like you describe to help create component descriptions and model description would certainly be cool too.
EDIT: Grr! How do you post code without the whitespace getting stripped? Component description example
[
{
"id": "wing1",
"bounds": [[0, 0,], [64, 64]],
"classification": {
"type": "wing",
"handedness": "left"
"mirrorable": "true",
"faction": "pirate"
}
"connectors": [
{
"id": "base",
"position": [64, 32],
"normal": [1, 0]
"required": "true"
"classification": {
"type": "wingSmall",
"handedness": "left"
"gender": "male",
}
},
{
"id": "weapon1",
"position": [0, 32],
"normal": [0, -1]
"required": "full"
"classification": {
"type": "weaponSmall",
"gender": "female",
}
}
]
}
]
Model description example
{
"id": "Billy's cool pirate ship",
"mirror": "true"
"root": {
"id": "chassis3",
"connections": [
"cockpit": {
"id": "cockpit76",
"connections": [
"weaponLeft": {
"id": "laserSmall",
}
]
}
"engine": {
"id": "engine4",
}
"wingLeft": {
"id": "wing1",
"connections": [
"weapon0": {
"id": "missilesCluster",
},
"weapon1": {
"id": "laserMedium",
}
]
}
]
}
}
Red warrior needs caffeine badly.
Hmm, wouldn't that be something Tiled could be easily modified to do?
--
http://freegamedev.net
yea Tiled sounds like a good idea. most of the grunt work is already done
Wouldn't that restrict the modules to all being on a grid layout?