Skip to content

Commit ac2e1a4

Browse files
committed
Add Simple Layer Analyzer for ASEPRITE with visibility detection
- Implemented a console-only tool to analyze layer visibility in ASEPRITE files. - Fixed the "black box" issue by dynamically detecting visible and hidden layers. - Added functionality to save individual visible layers as PNG files for inspection. - Improved error handling for loading ASEPRITE files and layer images. Cleaning up (BI/BM)
1 parent b0db794 commit ac2e1a4

26 files changed

+347
-1869
lines changed

ASEPRITE/ASEPRITE-INFO.BAS

Lines changed: 119 additions & 108 deletions
Large diffs are not rendered by default.

ASEPRITE/ASEPRITE.BAS

Lines changed: 0 additions & 478 deletions
This file was deleted.

ASEPRITE/ASEPRITE.BI

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@
1313
'
1414
$INCLUDEONCE
1515

16-
$CONSOLE
17-
1816
' DEBUG CONTROL
1917
' Set to 1 to enable debug output, 0 to disable
20-
CONST ASEPRITE_DEBUG_MODE = 1 ' Set to 1 for detailed debugging output
18+
$IF ASEPRITE_DEBUG_MODE = 1 THEN
19+
$CONSOLE
20+
CONST ASEPRITE_DEBUG_MODE = 1 ' Set to 1 for detailed debugging output
21+
$ELSE
22+
CONST ASEPRITE_DEBUG_MODE = 0
23+
$END IF
2124

2225
' Compression support provided by QB64PE built-in _INFLATE$ function
2326
' No external libraries required!

ASEPRITE/ASEPRITE.BM

Lines changed: 217 additions & 265 deletions
Large diffs are not rendered by default.

ASEPRITE/DEBUG_COMPOSITE_WORKING.BAS

Lines changed: 0 additions & 78 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CALL load_aseprite_image(filename, ase_img)
1515

1616
IF ase_img.is_valid = 0 THEN
1717
PRINT "Failed to load ASEPRITE: "; ase_img.error_message
18-
SYSTEM
18+
SYSTEM 0
1919
END IF
2020

2121
PRINT "Loaded: "; ase_img.layer_count; " layers, "; ase_img.frame_count; " frames"
@@ -25,14 +25,14 @@ composite = create_composite_image_from_aseprite&(ase_img)
2525

2626
IF composite = -1 OR composite = 0 THEN
2727
PRINT "Composite creation failed"
28-
SYSTEM
28+
SYSTEM 0
2929
END IF
3030

3131
_SAVEIMAGE "composite_debug_lib.png", composite
3232
PRINT "Saved composite_debug_lib.png"
3333

3434
_FREEIMAGE composite
3535

36-
SYSTEM
36+
SYSTEM 1
3737

3838
'$INCLUDE:'ASEPRITE.BM'

0 commit comments

Comments
 (0)