aseprite-animalcrossing-qrcode-gen

所属分类:图形图象
开发工具:Lua
文件大小:2243KB
下载次数:0
上传日期:2020-08-05 12:44:52
上 传 者sh-1993
说明:  一个方便的动物交叉二维码发生器为Aseprite。
(A handy animal crossing qrcode generator for Aseprite.)

文件列表:
CHANGELOG (312, 2020-06-25)
LICENSE (1068, 2020-06-25)
assets (0, 2020-06-25)
assets\data-dumper.lua (8034, 2020-06-25)
assets\generate-models.lua (2250, 2020-06-25)
assets\models.blend (1200844, 2020-06-25)
assets\models.obj (396264, 2020-06-25)
assets\template.png (205, 2020-06-25)
generate-qrcode.lua (3309, 2020-06-25)
lib (0, 2020-06-25)
lib\generator.lua (5661, 2020-06-25)
lib\helper.lua (7471, 2020-06-25)
lib\matrix.lua (35909, 2020-06-25)
lib\palettes.lua (6235, 2020-06-25)
lib\previewer.lua (6113, 2020-06-25)
lib\qrencode.lua (57292, 2020-06-25)
models (0, 2020-06-25)
models\dress-half-sleeve.lua (67994, 2020-06-25)
models\dress-long-sleeve.lua (88493, 2020-06-25)
models\dress-no-sleeve.lua (38127, 2020-06-25)
models\shirt-half-sleeve.lua (64956, 2020-06-25)
models\shirt-long-sleeve.lua (85493, 2020-06-25)
models\shirt-no-sleeve.lua (35109, 2020-06-25)
screenshot (0, 2020-06-25)
screenshot\models.gif (203723, 2020-06-25)
screenshot\patterns.png (415, 2020-06-25)
screenshot\qrcode-1.png (820912, 2020-06-25)
screenshot\qrcode-2.png (844891, 2020-06-25)
settings.lua (82, 2020-06-25)

# Animal Crossing QRCode Generator for Aseprite This is a custom script for generate Animal Crossing QRCode in [Aseprite](http://www.aseprite.org/). Works on aseprite v1.2.18 or later. ## Install 1. Download the repo as Zip file. 2. Open Aseprite, Select `File > Scripts > Open Scripts Folder`. 3. Extract the zip in the Scripts folder, and rename it to `animalcrossing`. 4. Restart Aseprite. P.S. the `lib` and `models` folders are necessary parts of this script, so please leave it with `generate-qrcode.lua`. You can also attach a shortcut to this script, e.g. `ctrl+g`, more instruction can be found at [this post](https://community.aseprite.org/t/aseprite-scripts-collection/3599). ## Type Currently, the generator supports the 32 x 32 basic custom design and *** x *** pro design. The 32 x 32 sprite can generates plain easel (paint), knit cap and horned hat. The *** x *** sprite can geneartes shirt and dress with half sleeves, long sleeves or without sleeves. ## Usage 1. Setup a Sprite with `32px` or `***px` width and height. 2. Change Color Mode to `Indexed`. 3. Setup a palette with no more than 16 colors (including transparent). 4. Enjoy drawing. 5. Export QRCode by clicking `File > Scripts > animalcrossing > generate-qrcode`. 6. Edit the Title/Author/Town in the dialog. 7. Click `Generate` button to create a new sprite with QRCode. 8. Scan the QRCode with Nintendo Switch mobile app. ![screenshot-1](./screenshot/qrcode-1.png) ![screenshot-2](./screenshot/qrcode-2.png) ### User Preference Aseprite doesn't support user preference at the moment this script had been made. But you could create or edit the `settings.lua` in the script folder to pre-fill your detail, so that you don't need to refill these setting every time you want to generate the QRCode. ```lua -- settings.lua return { title = 'Untitled', author = 'Mutoo', town = 'Aseprite', } ``` ## Pattern You may draw anything on 32 x 32 sprite, but for *** x *** sprite, you should draw with a certain pattern, so that the plugin could generate the clothing type correctly. patterns For shirt type, it would use the top section with bottom section for sleeves. And it would ignore the middle section. For dress type, it would also use the middle section for extra space, since it's longer then shirt. The top section and the middle section can be divided into left and right parts. The right part is for front side, vice versa. The bottom section is for sleeves, and the left part is for right arm (sounds odd, but you may think about the model is facing at you), vice versa. The short sleeves use 50% horizontal space of each sleeve. And for sleeveless type, it just ignores the bottom section. ## Design Preview Now we have a 3D model to preview the design. If you are creating a ***px pro design, you can preview the design with selected design type in the other sprite. Just drag the preview sprite to the left edge of window to dock it beside your design. You could rotation the model by clicking the arrow buttons, or reload the UV texture when you change your design by clicking the `Reload UV` button. ![3d-design-preivew](./screenshot/models.gif) ## Limitation The palette is limit to 16 colors with transparent, and when being exported to qrcode, it would be converted to the closest colors in the internal palette (check `lib/palettes.lua` for reference). N.B. The design will not be editable on both Animal Crossing New Leaf or Animal Crossing New Horizons due to the lack of user identification in the data. ## License MIT ## Credits Thanks [Thulinma](https://github.com/Thulinma/) for creating the [ACNLPatternTool Web App](https://acpatterns.com/). The ACNL data layout and palettes are extracted from that repo and ported to Lua language. Thanks Patrick Gundlach for creating the [luaqrcode](http://speedata.github.io/luaqrcode/docs/qrencode.html).

近期下载者

相关文件


收藏者