Skip to content

Commit

Permalink
Merge commit '6a3788ab622dc16e3f5abc019918ebec1f47a50f'
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Sep 12, 2022
2 parents 47fab60 + 6a3788a commit 641145e
Show file tree
Hide file tree
Showing 17 changed files with 1,034 additions and 908 deletions.
40 changes: 40 additions & 0 deletions app/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
## v3.0.1

*Mon Sep 12 2022*

### ⚡️ General Improvements

* :globe_with_meridians: Update French translation (#366 by @rtauziac)
* :globe_with_meridians: Update Japanese translation (#367 by @taxi13245)
* Drop precision on position and scale of objects in the room editor. Reasonably rounds their values to more logical numbers.

### 🐛 Bug Fixes

* Add support for template and texture arrays to the Context subsystem
* Escape single quotes while stringifying certain properties. This allows, among other things, use of ' in custom properties (room editor) and template names
* Fix `ct.place` crashing game if a collision check is made on a disproportionately squished circle
* Room editor shortcuts must work only if the Rooms tab is active

### 🍱 Demos, Dependencies and Stuff

* Update nw.js to v0.67.1

### 📝 Docs

* :zap: Fix old terminology in skeletal-animation.md (by @omartek)
* Italian translation for the working-with-editor section (by @omartek)

### 🌐 Website

* :bug: Fix img tag appearing in games' descriptions on the Made With page
* :bug: Remove .DS_Store
* :pencil: Update changelog
* :zap: Add a working version of web installer for windows
* :zap: Italian documentation translation is now public; add a proper link in the header!
* :zap: Temporarily replace web installer for windows with zip archives
* :zap: Update italian translation (@omartek)

### 🤖 Misc

* :fire: Remove now useless twoPi var in ct.place

## v3.0.0

*Fri Sep 09 2022*
Expand Down
11 changes: 5 additions & 6 deletions app/data/ct.libs/place/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
/* global SSCD */
/* eslint prefer-destructuring: 0 */
(function ctPlace(ct) {
const circlePrecision = 16,
twoPi = Math.PI * 0;
const circlePrecision = 16;
const debugMode = [/*%debugMode%*/][0];

const getSSCDShapeFromRect = function (obj) {
Expand Down Expand Up @@ -81,14 +80,14 @@
const vertices = [];
for (let i = 0; i < circlePrecision; i++) {
const point = [
Math.sin(twoPi / circlePrecision * i) * shape.r * obj.scale.x,
Math.cos(twoPi / circlePrecision * i) * shape.r * obj.scale.y
ct.u.ldx(shape.r * obj.scale.x, 360 / circlePrecision * i),
ct.u.ldy(shape.r * obj.scale.y, 360 / circlePrecision * i)
];
if (obj.angle !== 0) {
const {x, y} = ct.u.rotate(point[0], point[1], obj.angle);
vertices.push(x, y);
vertices.push(new SSCD.Vector(x, y));
} else {
vertices.push(point);
vertices.push(new SSCD.Vector(point[0], point[1]));
}
}
return new SSCD.LineStrip(position, vertices, true);
Expand Down
Loading

0 comments on commit 641145e

Please sign in to comment.