Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] PNG2C rewrite in Golang #91

Merged
merged 27 commits into from
Dec 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b870b4c
Replace with Go version
spookbench Nov 11, 2023
1119db2
Fix assets with broken palettes
spookbench Nov 11, 2023
3586c39
Handle passing multiple instances of the same flag
spookbench Nov 11, 2023
032f9ae
Fix 'shared' param in templates
spookbench Nov 11, 2023
a3da4f5
Merge branch 'master' into png2c-rewrite
spookbench Nov 21, 2023
622510f
Crop image manually
spookbench Nov 21, 2023
7bfbb78
Fix single sprites
spookbench Nov 21, 2023
b3b1772
Handle 'dirty' palettes
spookbench Nov 22, 2023
4bf9d4a
Merge branch 'master' into png2c-rewrite
spookbench Nov 26, 2023
800d99a
Use new palette structure
spookbench Nov 26, 2023
a54e4ab
Merge branch 'png2c-rewrite' of github.com:cahirwpz/ghostown-electric…
spookbench Nov 26, 2023
bb9fa87
Fix attached sprites
spookbench Nov 26, 2023
778d6f9
Clean up code
spookbench Nov 26, 2023
bdeb3e0
Support grayscale images
spookbench Nov 26, 2023
ffd6751
Remove tests
spookbench Nov 27, 2023
285ed61
Store colors as uint32
spookbench Dec 5, 2023
b5e5cb7
Clean up and add comments
spookbench Dec 6, 2023
3de0c30
Additional comments
spookbench Dec 8, 2023
105cda4
Merge branch 'png2c-rewrite' of github.com:cahirwpz/ghostown-electric…
spookbench Dec 8, 2023
149294b
Minor cleanups.
cahirwpz Dec 10, 2023
f626fa9
Modify util.Planar to output linear / interlaved bitplanes.
cahirwpz Dec 10, 2023
3c10245
Remove old Python script.
cahirwpz Dec 10, 2023
732ff62
Convert CRLF to LF.
cahirwpz Dec 10, 2023
49d6e20
A few minor bug fixes.
cahirwpz Dec 10, 2023
001a669
Palette goes first.
cahirwpz Dec 10, 2023
0903926
Fix problem when all 256 colors are used.
cahirwpz Dec 10, 2023
4cd2dfb
Inline CleanPalette since it's used only once.
cahirwpz Dec 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ CONV2D := $(TOPDIR)/tools/conv2d.py
GRADIENT := $(TOPDIR)/tools/gradient.py
TMXCONV := $(TOPDIR)/tools/tmxconv/tmxconv
PCHG2C := $(TOPDIR)/tools/pchg2c/pchg2c
PNG2C := $(TOPDIR)/tools/png2c.py
PNG2C := $(TOPDIR)/tools/png2c/png2c
PSF2C := $(TOPDIR)/tools/psf2c.py
SYNC2C := $(TOPDIR)/tools/sync2c/sync2c
SVG2C := $(TOPDIR)/tools/svg2c/svg2c
Expand Down
2 changes: 1 addition & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TOPDIR := $(realpath ..)

SUBDIRS := dumphunk dumpilbm maketmx pchg2c ptdump sync2c tmxconv svg2c
SUBDIRS := dumphunk dumpilbm maketmx pchg2c ptdump sync2c tmxconv svg2c png2c

include $(TOPDIR)/build/common.mk
Loading