Skip to content

Commit

Permalink
Добавляем корректные начальные значения при импорте графики
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Aug 28, 2017
1 parent 92113d9 commit 36c1e9a
Show file tree
Hide file tree
Showing 8 changed files with 321 additions and 282 deletions.
56 changes: 56 additions & 0 deletions projects/catsteroids.ict
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"notes": "/* empty */",
"libs": {
"place": {},
"akatemplate": {
"csscss": "canvas {\n margin: 2rem auto;\n}\nbody {\n background: black;\n}"
},
"random": {},
"keyboard": {}
},
"graphs": [
{
"name": "playerShip2_blue",
"untill": 0,
"grid": [
1,
1
],
"axis": [
56,
37
],
"origname": "i1.png",
"shape": "circle",
"left": 56,
"top": 37,
"frames": 1,
"width": 112,
"height": 75,
"marginx": 0,
"marginy": 0,
"offy": 0,
"offx": 0,
"right": 56,
"bottom": 38,
"r": 12
}
],
"types": [],
"sounds": [],
"styles": [],
"rooms": [],
"graphtick": 1,
"soundtick": 0,
"roomtick": 0,
"typetick": 0,
"styletick": 0,
"starting": 0,
"settings": {
"minifyhtmlcss": false,
"minifyjs": false,
"title": "Catsteroids",
"author": "CoMiGo Games",
"site": "http://comigogames.ru/"
}
}
Binary file added projects/catsteroids/img/i1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/catsteroids/img/i1.png_prev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/catsteroids/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added projects/catsteroids/img/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
536 changes: 258 additions & 278 deletions tags/graphic-editor.tag

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions tags/graphics-panel.tag
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,16 @@ graphics-panel.panel.view
untill: 0,
grid: [1, 1],
axis: [0, 0],
marginx: 0,
marginy: 0,
offx: 0,
offy: 0,
origname: path.basename(dest),
shape: "rect",
shape: 'rect',
left: 0,
right: this.width,
right: image.width,
top: 0,
bottom: this.height
bottom: image.height
};
this.id = currentProject.graphs.length;
window.currentProject.graphs.push(obj);
Expand Down
1 change: 0 additions & 1 deletion tags/modules-panel.tag
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ modules-panel.panel.view
this.currentModuleHelp = md.render(this.currentModule.main.help || '');
this.currentModuleLicense = md.render(this.currentModule.main.license || '');
this.currentModuleLogs = md.render(this.currentModule.main.logs || '');
console.log(data);
this.update();
});
this.tab = 'moduleinfo';
Expand Down

0 comments on commit 36c1e9a

Please sign in to comment.