Search the Community
Showing results for tags 'spacewar'.
-
I was thinking of a space combat game where you can design your own ship and give it an order (in form of AI) and put it up online so it can combat other players ship. (using Phaser) Its in really early stage, all I did for now is a graphic editor for create ingame graphics (2D vector graphics) as following Data saved as following (you can copy the string and load in the editor) {"metadata":{"id":"60884e90-0452-2ab4-4f9a-f137c5059ff7","name":"DefaultCruiser","description":"Default Cruiser","type":"1"},"shape":[{"color":"#bfbfaf","polygon":[{"x":21,"y":0},{"x":12,"y":4},{"x":6,"y":13},{"x":8,"y":24},{"x":17,"y":31},{"x":21,"y":31}]},{"color":"#bfbfaf","polygon":[{"x":21,"y":0},{"x":30,"y":4},{"x":36,"y":13},{"x":34,"y":24},{"x":25,"y":31},{"x":21,"y":31}]},{"color":"#bfbfaf","polygon":[{"x":19,"y":31},{"x":19,"y":53},{"x":23,"y":53},{"x":23,"y":31}]},{"color":"#bfbfaf","polygon":[{"x":19,"y":34},{"x":17,"y":39},{"x":17,"y":49},{"x":19,"y":53}]},{"color":"#bfbfaf","polygon":[{"x":23,"y":34},{"x":25,"y":39},{"x":25,"y":49},{"x":23,"y":53}]},{"color":"#bfbfaf","polygon":[{"x":17,"y":41},{"x":5,"y":46},{"x":5,"y":50},{"x":17,"y":45}]},{"color":"#bfbfaf","polygon":[{"x":25,"y":41},{"x":37,"y":46},{"x":37,"y":50},{"x":25,"y":45}]},{"color":"#bfbfaf","polygon":[{"x":2,"y":36},{"x":4,"y":36},{"x":5,"y":39},{"x":5,"y":56},{"x":4,"y":58},{"x":2,"y":58},{"x":1,"y":56},{"x":1,"y":39}]},{"color":"#bfbfaf","polygon":[{"x":38,"y":36},{"x":40,"y":36},{"x":41,"y":39},{"x":41,"y":56},{"x":40,"y":58},{"x":38,"y":58},{"x":37,"y":56},{"x":37,"y":39}]},{"color":"#ff0066","polygon":[{"x":41,"y":39},{"x":42,"y":41},{"x":42,"y":54},{"x":41,"y":56}]},{"color":"#ff0066","polygon":[{"x":1,"y":39},{"x":0,"y":41},{"x":0,"y":54},{"x":1,"y":56}]},{"color":"#ff0066","polygon":[{"x":5,"y":39},{"x":6,"y":41},{"x":6,"y":54},{"x":5,"y":56}]},{"color":"#ff0066","polygon":[{"x":37,"y":39},{"x":36,"y":41},{"x":36,"y":54},{"x":37,"y":56}]},{"color":"#ff0066","polygon":[{"x":17,"y":49},{"x":19,"y":55},{"x":20,"y":56},{"x":22,"y":56},{"x":23,"y":55},{"x":25,"y":49},{"x":23,"y":53},{"x":19,"y":53}]},{"color":"#000066","polygon":[{"x":12,"y":6},{"x":21,"y":1},{"x":30,"y":6},{"x":31,"y":8},{"x":21,"y":2},{"x":11,"y":8}]},{"color":"#000066","polygon":[{"x":19,"y":37},{"x":18,"y":39},{"x":18,"y":49},{"x":20,"y":52},{"x":22,"y":52},{"x":24,"y":49},{"x":24,"y":39},{"x":23,"y":37}]},{"color":"#9c9cc4","polygon":[{"x":20,"y":38},{"x":19,"y":39},{"x":19,"y":49},{"x":20,"y":51},{"x":22,"y":51},{"x":23,"y":49},{"x":23,"y":39},{"x":22,"y":38}]},{"color":"#a9a99c","polygon":[{"x":11,"y":8},{"x":9,"y":10},{"x":9,"y":11},{"x":20,"y":4},{"x":22,"y":4},{"x":33,"y":11},{"x":33,"y":10},{"x":31,"y":8},{"x":21,"y":2}]},{"color":"#a9a99c","polygon":[{"x":8,"y":13},{"x":10,"y":24},{"x":14,"y":27},{"x":11,"y":12}]},{"color":"#a9a99c","polygon":[{"x":34,"y":13},{"x":32,"y":24},{"x":28,"y":27},{"x":31,"y":12}]},{"color":"#a9a99c","polygon":[{"x":14,"y":22},{"x":15,"y":28},{"x":18,"y":30},{"x":25,"y":30},{"x":27,"y":28},{"x":28,"y":22},{"x":26,"y":25},{"x":23,"y":28},{"x":19,"y":28},{"x":16,"y":25}]}]} You can visit the link at http://spacewar.mirrorofearth.com/graphicEditor/ and try the editor out, it can save a json string of the vertexes and color. If anyone find its interesting and make some images, please post it here with the saved json and image