Skip to content

Commit

Permalink
Update engine to 1.0.0
Browse files Browse the repository at this point in the history
Including a lot of cleanup + bugfixes, more features, and an example program
  • Loading branch information
ISSOtm committed Sep 8, 2020
1 parent b5d123d commit 069a916
Show file tree
Hide file tree
Showing 18 changed files with 2,134 additions and 836 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "example/hardware.inc"]
path = example/hardware.inc
url = git@github.com:gbdev/hardware.inc.git
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Eldred Habert
Copyright (c) 2018-2020 Eldred Habert

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# gb-vwf
A Variable-Width Font engine for the Game Boy.
A very powerful Variable-Width Font engine for the Game Boy & Game Boy Color.

For detailed instructions, including installation and usage, please check [the wiki](https://github.com/ISSOtm/gb-vwf/wiki) out.

Bugs can be checked out and reported on [the issue tracker](https://github.com/ISSOtm/gb-vwf/issues), or by bugging me on the GBDev Discord, which you can find [here](https://gbdev.io).

## Licensing

The VWF engine itself is licensed under the MIT license; the example program is public domain, assets included.

According to US law, fonts cannot be copyrighted. You can find some [here](https://github.com/pinobatch/bitmap-fonts/tree/master/vwf).
10 changes: 10 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*.vwf
*.2bpp
*.o
*.gb
*.sym
*.map
charmap.asm
*.sn*
*.sav
*.srm
Binary file added example/border_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/border_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/border_vert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions example/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -e

for font in fonts/*.png; do
python3 ../make_font.py $font ${font%.png}.vwf
done
rgbasm -Wall -Wextra -o vwf_config.o vwf_config.asm > charmap.asm

rgbgfx -h -o button.2bpp button.png
rgbgfx -o border_top.2bpp border_top.png
rgbgfx -o border_vert.2bpp border_vert.png
rgbgfx -o border_bottom.2bpp border_bottom.png
rgbasm -Wall -Wextra -o main.o main.asm
rgblink -d -n vwf.sym -m vwf.map -o vwf.gb vwf_config.o main.o
rgbfix -v -p 0xff -m 0x11 vwf.gb
rm fonts/*.vwf charmap.asm button.2bpp border_top.2bpp border_vert.2bpp border_bottom.2bpp main.o vwf_config.o
Binary file added example/button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/fonts/BaseSeven.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/fonts/BaseSevenBold_vx8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/fonts/optix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/fonts/optixBold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions example/hardware.inc
Submodule hardware.inc added at 3082d5
Loading

0 comments on commit 069a916

Please sign in to comment.