Skip to content

Commit

Permalink
chore: cleaning a mess in the repository
Browse files Browse the repository at this point in the history
---
That fs differencies -.-
  • Loading branch information
CosmoMyzrailGorynych committed Oct 4, 2017
1 parent aed24a6 commit eaed76b
Show file tree
Hide file tree
Showing 96 changed files with 29,502 additions and 29,120 deletions.
540 changes: 270 additions & 270 deletions .eslintrc.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions .pug-lintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "clock"
}
{
"extends": "clock"
}
90 changes: 45 additions & 45 deletions .stylintrc
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
{
"blocks": false,
"brackets": "never",
"colons": "never",
"colors": "always",
"commaSpace": "always",
"commentSpace": "always",
"cssLiteral": "never",
"customProperties": [],
"depthLimit": false,
"duplicates": true,
"efficient": "always",
"exclude": [],
"extendPref": false,
"globalDupe": false,
"groupOutputByFile": true,
"indentPref": false,
"leadingZero": "always",
"maxErrors": false,
"maxWarnings": false,
"mixed": false,
"mixins": [],
"namingConvention": "camelCase",
"namingConventionStrict": false,
"none": "never",
"noImportant": false,
"parenSpace": false,
"placeholders": false,
"prefixVarsWithDollar": "never",
"quotePref": false,
"reporterOptions": {
"columns": ["lineData", "severity", "description", "rule"],
"columnSplitter": " ",
"showHeaders": false,
"truncate": true
},
"semicolons": "never",
"sortOrder": false,
"stackedProperties": "never",
"trailingWhitespace": "never",
"universal": false,
"valid": true,
"zeroUnits": "never",
"zIndexNormalize": false
}
{
"blocks": false,
"brackets": "never",
"colons": "never",
"colors": "always",
"commaSpace": "always",
"commentSpace": "always",
"cssLiteral": "never",
"customProperties": [],
"depthLimit": false,
"duplicates": true,
"efficient": "always",
"exclude": [],
"extendPref": false,
"globalDupe": false,
"groupOutputByFile": true,
"indentPref": false,
"leadingZero": "always",
"maxErrors": false,
"maxWarnings": false,
"mixed": false,
"mixins": [],
"namingConvention": "camelCase",
"namingConventionStrict": false,
"none": "never",
"noImportant": false,
"parenSpace": false,
"placeholders": false,
"prefixVarsWithDollar": "never",
"quotePref": false,
"reporterOptions": {
"columns": ["lineData", "severity", "description", "rule"],
"columnSplitter": " ",
"showHeaders": false,
"truncate": true
},
"semicolons": "never",
"sortOrder": false,
"stackedProperties": "never",
"trailingWhitespace": "never",
"universal": false,
"valid": true,
"zeroUnits": "never",
"zIndexNormalize": false
}
86 changes: 43 additions & 43 deletions app/ct.libs/background.js
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
/***************************************
[ background cotomod ]
[(c) Cosmo Myzrail Gorynych]
***************************************/

ct.background = {
'types': { },
'pattern': function (name,gxname) {
var c = document.createElement('canvas');
c.width = ct.graphs[gxname].width;
c.height = ct.graphs[gxname].height;
var cc = c.getContext('2d');
cc.drawImage(ct.graphs[gxname].atlas,ct.graphs[gxname].frames[0][0],ct.graphs[gxname].frames[0][1],ct.graphs[gxname].width,ct.graphs[gxname].height,0,0,ct.graphs[gxname].width,ct.graphs[gxname].height);
var pat = ct.x.createPattern(c,"repeat");
pat.method = 'pattern';
pat.width = c.width;
pat.height = c.height;
ct.background.types[name] = pat;
},
'solid': function (name,color) {
var pat = color;
pat.method = 'solid';
ct.background.types[name] = pat;
},
'add': function (name,depth) {
var copy = {
type: 'BACKGROUND',
events: function () {
var m = ct.x.fillStyle;
ct.x.fillStyle = ct.background.types[this.link];
ct.x.save();
ct.x.translate(-ct.rooms.current.x,-ct.rooms.current.y)
ct.x.fillRect(ct.rooms.current.x,ct.rooms.current.y,ct.width,ct.height);
ct.x.restore();
ct.x.fillStyle = m;
},
'link': name,
'depth': depth
};
ct.stack.push(copy);
},
};

/***************************************
[ background cotomod ]
[(c) Cosmo Myzrail Gorynych]
***************************************/

ct.background = {
'types': { },
'pattern': function (name,gxname) {
var c = document.createElement('canvas');
c.width = ct.graphs[gxname].width;
c.height = ct.graphs[gxname].height;
var cc = c.getContext('2d');
cc.drawImage(ct.graphs[gxname].atlas,ct.graphs[gxname].frames[0][0],ct.graphs[gxname].frames[0][1],ct.graphs[gxname].width,ct.graphs[gxname].height,0,0,ct.graphs[gxname].width,ct.graphs[gxname].height);
var pat = ct.x.createPattern(c,"repeat");
pat.method = 'pattern';
pat.width = c.width;
pat.height = c.height;
ct.background.types[name] = pat;
},
'solid': function (name,color) {
var pat = color;
pat.method = 'solid';
ct.background.types[name] = pat;
},
'add': function (name,depth) {
var copy = {
type: 'BACKGROUND',
events: function () {
var m = ct.x.fillStyle;
ct.x.fillStyle = ct.background.types[this.link];
ct.x.save();
ct.x.translate(-ct.rooms.current.x,-ct.rooms.current.y)
ct.x.fillRect(ct.rooms.current.x,ct.rooms.current.y,ct.width,ct.height);
ct.x.restore();
ct.x.fillStyle = m;
},
'link': name,
'depth': depth
};
ct.stack.push(copy);
},
};

ct.libs += ' background';
48 changes: 24 additions & 24 deletions app/ct.libs/canvas.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
ct.canvas = {
'create': function (w,h) {
var canv = document.createElement("canvas");
canv.setAttribute('width', w);
canv.setAttribute('height', h);
canv.x = canv.getContext("2d");
return canv;
},
'drawTile': function (canv, img,imgindex, x, y) {
canv.x.drawImage(ct.graphs[img].atlas,ct.graphs[img]['frames'][imgindex][0],ct.graphs[img]['frames'][imgindex][1],ct.graphs[img].width,ct.graphs[img].height,x-ct.graphs[img].x,y-ct.graphs[img].y,ct.graphs[img].width,ct.graphs[img].height);
},
'drawTileExt': function (canv,img,imgindex,x,y,hs,vs,r,a) {
canv.x.save();
canv.x.globalAlpha = a;
canv.x.translate(x-ct.rooms.current.x,y-ct.rooms.current.y);
canv.x.rotate(r*Math.PI/180);
canv.x.scale(hs,vs);
canv.x.drawImage(ct.graphs[img].atlas,ct.graphs[img]['frames'][imgindex][0],ct.graphs[img]['frames'][imgindex][1],ct.graphs[img].width,ct.graphs[img].height,-ct.graphs[img].x,-ct.graphs[img].y,ct.graphs[img].width,ct.graphs[img].height);
canv.x.restore();
},
'appendTo': function (canv,id) {
document.getElementById(id).appendChild(canv);
}
};
ct.canvas = {
'create': function (w,h) {
var canv = document.createElement("canvas");
canv.setAttribute('width', w);
canv.setAttribute('height', h);
canv.x = canv.getContext("2d");
return canv;
},
'drawTile': function (canv, img,imgindex, x, y) {
canv.x.drawImage(ct.graphs[img].atlas,ct.graphs[img]['frames'][imgindex][0],ct.graphs[img]['frames'][imgindex][1],ct.graphs[img].width,ct.graphs[img].height,x-ct.graphs[img].x,y-ct.graphs[img].y,ct.graphs[img].width,ct.graphs[img].height);
},
'drawTileExt': function (canv,img,imgindex,x,y,hs,vs,r,a) {
canv.x.save();
canv.x.globalAlpha = a;
canv.x.translate(x-ct.rooms.current.x,y-ct.rooms.current.y);
canv.x.rotate(r*Math.PI/180);
canv.x.scale(hs,vs);
canv.x.drawImage(ct.graphs[img].atlas,ct.graphs[img]['frames'][imgindex][0],ct.graphs[img]['frames'][imgindex][1],ct.graphs[img].width,ct.graphs[img].height,-ct.graphs[img].x,-ct.graphs[img].y,ct.graphs[img].width,ct.graphs[img].height);
canv.x.restore();
},
'appendTo': function (canv,id) {
document.getElementById(id).appendChild(canv);
}
};
ct.libs += "canvas";
Loading

0 comments on commit eaed76b

Please sign in to comment.