Skip to content

Commit 3d35e4a

Browse files
committed
0.0.4: fixed size bug when importing
1 parent 1eeeba2 commit 3d35e4a

5 files changed

Lines changed: 15 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The Sprites tab gives an overview of your full object's data, allowing you to ch
6868

6969
When importing an image over the current frame there is no limitation on image dimensions.
7070

71-
For importing a spritesheet, either the alpha channel or the top left pixel color will serve as transparency. Each sprites requires a minimum separation distance of at least one tile.
71+
For importing a spritesheet, either the alpha channel or the top left pixel color will serve as transparency. The fuzziness dictates the minimum separation distance between sprites.
7272

7373
Mapping output can be configured to either reduce the number of tiles, or the number of mappings. The algorithm favours fewer horizontal sprites over vertical ones.
7474

flex2.idea

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@ V2: sprite rotation http://forums.sonicretro.org/index.php?showtopic=8848&st=0&p
33
https://yarnpkg.com/en/package/node-vibrant
44
change sprite scroll speed
55
drawing mode fill !
6-
mark flex 1 as deprecated
76
S - scroll to sprite
87
s3k sonic mapping definition / conversion tools
98
add flex.json to sonic 2 disassembly
109
create new file | newFactory={(path)=>{}}
1110
04:43:53 <%Lil-G> i mean so when you do "delete unused tiles" it doesn't delete the tiles the other object uses
1211
==
1312

14-
update wiki
13+
art offset loading / arbitrary data loader tab
14+
mark sonmaped as obsolete
15+
16+
00:26:47 <%Lil-G> input https://puu.sh/yqXmB.png
17+
00:26:49 <%Lil-G> output https://puu.sh/yqXmV.png
18+
19+
00:28:33 <+Dick-Cord> Attachments from <J​orge>: https://cdn.discordapp.com/attachments/214906642741854210/382688874939547659/EHzBGDeform.png
20+
21+
00:29:01 <+Dick-Cord> Attachments from <J​orge>: https://cdn.discordapp.com/attachments/214906642741854210/382688994359508994/unknown.png

modules/components/import/get-sprite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ export function getSprite(buffer, width, height, fuzziness = 0, startOffset = 0)
156156
return {
157157
x: bbox.minX,
158158
y: bbox.minY,
159-
width: bbox.maxX - bbox.minX,
160-
height: bbox.maxY - bbox.minY,
159+
width: bbox.maxX - bbox.minX + 1,
160+
height: bbox.maxY - bbox.minY + 1,
161161
firstPos,
162162
};
163163

modules/components/import/ui-detect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export class DetectSprites extends React.Component {
8282
style={{
8383
left: bbox.x,
8484
top: bbox.y,
85-
width: bbox.width + 1,
86-
height: bbox.height + 1,
85+
width: bbox.width,
86+
height: bbox.height,
8787
}}
8888
>
8989
</div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Flex2",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"scripts": {
55
"start": "electron ./static --dev"
66
},

0 commit comments

Comments
 (0)